Bug 167998 - Move private methods from WKContentObservation.h to a separate header file
Summary: Move private methods from WKContentObservation.h to a separate header file
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Aakash Jain
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-08 09:46 PST by Aakash Jain
Modified: 2017-02-08 11:48 PST (History)
5 users (show)

See Also:


Attachments
Proposed patch (9.40 KB, patch)
2017-02-08 10:16 PST, Aakash Jain
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Aakash Jain 2017-02-08 09:46:04 PST
WKContentObservation.h contains several methods which are used only in WebCore (and need not be exported). However WKContentObservation.h is a private header (not project header). We should move all these methods to a separate header file which would be project header.
Comment 1 Aakash Jain 2017-02-08 10:16:01 PST
Created attachment 300920 [details]
Proposed patch
Comment 2 WebKit Commit Bot 2017-02-08 10:18:50 PST
Attachment 300920 [details] did not pass style-queue:


ERROR: Source/WebCore/platform/ios/wak/WKContentObservationInternal.h:26:  Use #pragma once instead of #ifndef for header guard.  [build/header_guard] [5]
Total errors found: 1 in 7 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Alexey Proskuryakov 2017-02-08 11:25:14 PST
Only the WKContentChange enum definition needs to be in WebKit SPI headers. I think that as next step, we should move everything else to the Internal header too, and we should make it a private header for WebCore then.
Comment 4 WebKit Commit Bot 2017-02-08 11:44:22 PST
Comment on attachment 300920 [details]
Proposed patch

Clearing flags on attachment: 300920

Committed r211889: <http://trac.webkit.org/changeset/211889>
Comment 5 WebKit Commit Bot 2017-02-08 11:44:26 PST
All reviewed patches have been landed.  Closing bug.
Comment 6 mitz 2017-02-08 11:46:52 PST
Comment on attachment 300920 [details]
Proposed patch

View in context: https://bugs.webkit.org/attachment.cgi?id=300920&action=review

> Source/WebCore/page/DOMTimer.cpp:50
>  #include "WKContentObservation.h"
> +#include "WKContentObservationInternal.h"

We normally include only the internal header, because it includes the private and public headers as needed.