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

Unified Diff: content/shell/webkit_test_runner.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
« no previous file with comments | « content/shell/shell_webpreferences.cc ('k') | content/shell/webkit_test_runner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/webkit_test_runner.h
diff --git a/content/shell/webkit_test_runner.h b/content/shell/webkit_test_runner.h
index a6eafafd7738d8ac6dcae949b8776e296f495df9..c2f5cec426673acaec00e961c3e1ae939af1dd37 100644
--- a/content/shell/webkit_test_runner.h
+++ b/content/shell/webkit_test_runner.h
@@ -9,6 +9,7 @@
#include "base/memory/scoped_ptr.h"
#include "content/public/renderer/render_view_observer.h"
#include "content/public/renderer/render_view_observer_tracker.h"
+#include "content/shell/shell_webpreferences.h"
#include "third_party/WebKit/Tools/DumpRenderTree/chromium/TestRunner/public/WebTestDelegate.h"
class SkCanvas;
@@ -59,7 +60,9 @@ class WebKitTestRunner : public RenderViewObserver,
virtual WebKit::WebString getAbsoluteWebStringFromUTF8Path(
const std::string& utf8_path);
+ void Reset();
void Display();
+ void SetXSSAuditorEnabled(bool enabled);
void set_proxy(WebTestRunner::WebTestProxyBase* proxy) { proxy_ = proxy; }
@@ -80,6 +83,7 @@ class WebKitTestRunner : public RenderViewObserver,
WebTestRunner::WebTestProxyBase* proxy_;
+ ShellWebPreferences prefs_;
DISALLOW_COPY_AND_ASSIGN(WebKitTestRunner);
};
« no previous file with comments | « content/shell/shell_webpreferences.cc ('k') | content/shell/webkit_test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698