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

Unified Diff: content/shell/shell_webpreferences.h

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
Index: content/shell/shell_webpreferences.h
diff --git a/content/shell/shell_webpreferences.h b/content/shell/shell_webpreferences.h
new file mode 100644
index 0000000000000000000000000000000000000000..96579d2c4ef4e92707d6134a6a590ef59b63dbfb
--- /dev/null
+++ b/content/shell/shell_webpreferences.h
@@ -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.
+
+#ifndef CONTENT_SHELL_SHELL_WEBPREFERENCES_H_
+#define CONTENT_SHELL_SHELL_WEBPREFERENCES_H_
+
+namespace webkit_glue {
+struct WebPreferences;
+}
+
+namespace content {
+
+struct ShellWebPreferences {
+ bool allow_universal_access_from_file_urls;
+ bool dom_paste_enabled;
+ bool javascript_can_access_clipboard;
+ bool xss_auditor_enabled;
+
+ ShellWebPreferences();
+ ~ShellWebPreferences();
+
+ void Apply(webkit_glue::WebPreferences* prefs) const;
+};
+
+} // namespace content
+
+#endif // CONTENT_SHELL_SHELL_WEBPREFERENCES__H_

Powered by Google App Engine
This is Rietveld 408576698