Avoid storing unrelated things in WebContentsPreferences

This commit is contained in:
Cheng Zhao 2015-11-11 10:32:25 +08:00
parent b807685453
commit ba457681b2
3 changed files with 17 additions and 9 deletions

View file

@ -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|).