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

Side by Side 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 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/shell/shell_webpreferences.h ('k') | content/shell/webkit_test_runner.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "content/shell/shell_webpreferences.h"
6
7 #include "webkit/glue/webpreferences.h"
8
9 namespace content {
10
11 ShellWebPreferences::ShellWebPreferences()
12 : allow_universal_access_from_file_urls(true),
13 dom_paste_enabled(true),
14 javascript_can_access_clipboard(true),
15 xss_auditor_enabled(true) {
16 }
17
18 ShellWebPreferences::~ShellWebPreferences() {}
19
20 void ShellWebPreferences::Apply(webkit_glue::WebPreferences* prefs) const {
21 prefs->allow_universal_access_from_file_urls =
22 allow_universal_access_from_file_urls;
23 prefs->dom_paste_enabled = dom_paste_enabled;
24 prefs->javascript_can_access_clipboard = javascript_can_access_clipboard;
25 prefs->xss_auditor_enabled = xss_auditor_enabled;
26 }
27
28 } // namespace content
OLDNEW
« 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