| Index: content/shell/shell_webpreferences.cc
|
| diff --git a/content/shell/shell_webpreferences.cc b/content/shell/shell_webpreferences.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..75e1489b81548d2cd63fa17985b1a4cad689f730
|
| --- /dev/null
|
| +++ b/content/shell/shell_webpreferences.cc
|
| @@ -0,0 +1,28 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "content/shell/shell_webpreferences.h"
|
| +
|
| +#include "webkit/glue/webpreferences.h"
|
| +
|
| +namespace content {
|
| +
|
| +ShellWebPreferences::ShellWebPreferences()
|
| + : allow_universal_access_from_file_urls(true),
|
| + dom_paste_enabled(true),
|
| + javascript_can_access_clipboard(true),
|
| + xss_auditor_enabled(true) {
|
| +}
|
| +
|
| +ShellWebPreferences::~ShellWebPreferences() {}
|
| +
|
| +void ShellWebPreferences::Apply(webkit_glue::WebPreferences* prefs) const {
|
| + prefs->allow_universal_access_from_file_urls =
|
| + allow_universal_access_from_file_urls;
|
| + prefs->dom_paste_enabled = dom_paste_enabled;
|
| + prefs->javascript_can_access_clipboard = javascript_can_access_clipboard;
|
| + prefs->xss_auditor_enabled = xss_auditor_enabled;
|
| +}
|
| +
|
| +} // namespace content
|
|
|