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

Unified Diff: blimp/engine/testing/app/blimp_url_rewriter.h

Issue 2572563006: [Blimp] Refactor Blimp test engine with embedded test server and URL rewriting (Closed)
Patch Set: nit change Created 3 years, 11 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 | « blimp/engine/app/blimp_content_main_delegate.cc ('k') | blimp/engine/testing/app/blimp_url_rewriter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/engine/testing/app/blimp_url_rewriter.h
diff --git a/blimp/engine/testing/app/blimp_url_rewriter.h b/blimp/engine/testing/app/blimp_url_rewriter.h
new file mode 100644
index 0000000000000000000000000000000000000000..6dcb2f7b2eeba647756d6dcd850177863fee8d82
--- /dev/null
+++ b/blimp/engine/testing/app/blimp_url_rewriter.h
@@ -0,0 +1,32 @@
+// Copyright (c) 2016 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 BLIMP_ENGINE_TESTING_APP_BLIMP_URL_REWRITER_H_
+#define BLIMP_ENGINE_TESTING_APP_BLIMP_URL_REWRITER_H_
+
+#include "net/test/embedded_test_server/embedded_test_server.h"
+
+class GURL;
+
+namespace content {
+class BrowserContext;
+}
+
+namespace blimp {
+namespace engine {
+
+namespace test {
+
+extern std::unique_ptr<net::EmbeddedTestServer> g_ets_instance;
+
+// This handles rewriting URLs to be what the engine will actually load.
+// It works together with EmbeddedTestServer to handle getting full url.
+// Return false if the url is not able to be loaded, otherwise return
+bool HandleBlimpTestURL(GURL* url, content::BrowserContext* browser_context);
+
+} // namespace test
+
+} // namespace engine
+} // namespace blimp
+#endif // BLIMP_ENGINE_TESTING_APP_BLIMP_URL_REWRITER_H_
« no previous file with comments | « blimp/engine/app/blimp_content_main_delegate.cc ('k') | blimp/engine/testing/app/blimp_url_rewriter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698