Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2928)

Unified Diff: content/shell/shell_webpreferences.cc

Issue 11316244: [content shell] add support for a testRunner.setXSSAuditorEnabled (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/shell/shell_webpreferences.h ('k') | content/shell/webkit_test_runner.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « content/shell/shell_webpreferences.h ('k') | content/shell/webkit_test_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698