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

Unified Diff: content/shell/renderer/test_runner/test_runner.h

Issue 584553002: Extend the TestRunner so that the manifest-src CSP directive can be tested from layout tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Passes upload hooks Created 6 years, 3 months 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/renderer/test_runner/test_runner.h
diff --git a/content/shell/renderer/test_runner/test_runner.h b/content/shell/renderer/test_runner/test_runner.h
index 09dc9e2b08cd059b0f421cec88abf652cf5e0cce..3954736517f39d7883bcfb18dffecad929349a1e 100644
--- a/content/shell/renderer/test_runner/test_runner.h
+++ b/content/shell/renderer/test_runner/test_runner.h
@@ -24,6 +24,7 @@ class WebNotificationPresenter;
class WebPermissionClient;
class WebString;
class WebView;
+class WebURLResponse;
}
namespace gin {
@@ -550,6 +551,8 @@ class TestRunner : public WebTestRunner,
void DisplayAsync();
void DisplayAsyncThen(v8::Handle<v8::Function> callback);
+ void GetManifestThen(v8::Handle<v8::Function> callback);
+
// Similar to DisplayAsyncThen(), but pass parameters of the captured
// snapshot (width, height, snapshot) to the callback. The snapshot is in
// uint8 RGBA format.
@@ -568,6 +571,9 @@ class TestRunner : public WebTestRunner,
///////////////////////////////////////////////////////////////////////////
// Internal helpers
+ void GetManifestCallback(scoped_ptr<InvokeCallbackTask> task,
+ const blink::WebURLResponse& response,
+ const std::string& data);
void CapturePixelsCallback(scoped_ptr<InvokeCallbackTask> task,
const SkBitmap& snapshot);

Powered by Google App Engine
This is Rietveld 408576698