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

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: Second try 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
« no previous file with comments | « content/renderer/fetchers/manifest_fetcher.h ('k') | content/shell/renderer/test_runner/test_runner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..15a5cc085c0cd325e41e7cd2459335ea48a1af5b 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 {
@@ -565,9 +566,14 @@ class TestRunner : public WebTestRunner,
const std::string& registration_id);
void SetMockPushClientError(const std::string& message);
+ void GetManifestThen(v8::Handle<v8::Function> callback);
+
///////////////////////////////////////////////////////////////////////////
// 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);
« no previous file with comments | « content/renderer/fetchers/manifest_fetcher.h ('k') | content/shell/renderer/test_runner/test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698