Avoid storing unrelated things in WebContentsPreferences
This commit is contained in:
parent
b807685453
commit
ba457681b2
3 changed files with 17 additions and 9 deletions
|
@ -16,6 +16,10 @@ namespace content {
|
|||
struct WebPreferences;
|
||||
}
|
||||
|
||||
namespace mate {
|
||||
class Dictionary;
|
||||
}
|
||||
|
||||
namespace atom {
|
||||
|
||||
// Stores and applies the preferences of WebContents.
|
||||
|
@ -31,7 +35,7 @@ class WebContentsPreferences
|
|||
content::WebContents* web_contents, content::WebPreferences* prefs);
|
||||
|
||||
WebContentsPreferences(content::WebContents* web_contents,
|
||||
base::DictionaryValue* web_preferences);
|
||||
const mate::Dictionary& web_preferences);
|
||||
~WebContentsPreferences() override;
|
||||
|
||||
// $.extend(|web_preferences_|, |new_web_preferences|).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue