Hide WebContentPreferences::GetWebContentsFromProcessID from public
This commit is contained in:
parent
3d47a8a2fd
commit
001275339b
2 changed files with 10 additions and 8 deletions
|
@ -29,10 +29,6 @@ namespace atom {
|
|||
class WebContentsPreferences
|
||||
: public content::WebContentsUserData<WebContentsPreferences> {
|
||||
public:
|
||||
// Get WebContents according to process ID.
|
||||
// FIXME(zcbenz): This method does not belong here.
|
||||
static content::WebContents* GetWebContentsFromProcessID(int process_id);
|
||||
|
||||
// Get self from WebContents.
|
||||
static WebContentsPreferences* From(content::WebContents* web_contents);
|
||||
// Get self from procese ID.
|
||||
|
@ -63,6 +59,10 @@ class WebContentsPreferences
|
|||
|
||||
private:
|
||||
friend class content::WebContentsUserData<WebContentsPreferences>;
|
||||
friend class AtomBrowserClient;
|
||||
|
||||
// Get WebContents according to process ID.
|
||||
static content::WebContents* GetWebContentsFromProcessID(int process_id);
|
||||
|
||||
// Set preference value to given bool if user did not provide value
|
||||
bool SetDefaultBoolIfUndefined(const base::StringPiece& key, bool val);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue