Move AppendExtraCommandLineSwitches to WebContentsPreferences

This commit is contained in:
Cheng Zhao 2015-09-05 02:04:09 +09:00
parent 96771c7098
commit 39975378bb
3 changed files with 53 additions and 37 deletions

View file

@ -8,6 +8,10 @@
#include "base/values.h"
#include "content/public/browser/web_contents_user_data.h"
namespace base {
class CommandLine;
}
namespace atom {
// Stores and applies the preferences of WebContents.
@ -17,6 +21,10 @@ class WebContentsPreferences
// Get the preferences of |web_contents|.
static WebContentsPreferences* From(content::WebContents* web_contents);
// Append command paramters appending to |web_contents|'s preferences.
static void AppendExtraCommandLineSwitches(
content::WebContents* web_contents, base::CommandLine* command_line);
WebContentsPreferences(content::WebContents* web_contents,
base::DictionaryValue&& web_preferences);
~WebContentsPreferences() override;