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

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

Issue 2572563006: [Blimp] Refactor Blimp test engine with embedded test server and URL rewriting (Closed)
Patch Set: John comment 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
Index: blimp/engine/testing/app/blimp_browser_testing_main_parts.h
diff --git a/blimp/engine/testing/app/blimp_browser_testing_main_parts.h b/blimp/engine/testing/app/blimp_browser_testing_main_parts.h
new file mode 100644
index 0000000000000000000000000000000000000000..453a735b9ee41fba518ecf9bac8393c6a5d372ad
--- /dev/null
+++ b/blimp/engine/testing/app/blimp_browser_testing_main_parts.h
@@ -0,0 +1,49 @@
+// Copyright 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_BROWSER_TESTING_MAIN_PARTS_H_
+#define BLIMP_ENGINE_TESTING_APP_BLIMP_BROWSER_TESTING_MAIN_PARTS_H_
+
+#include "blimp/engine/app/blimp_browser_main_parts.h"
+
+namespace net {
+class NetLog;
+}
+
+namespace content {
+struct MainFunctionParams;
+}
+
+namespace blimp {
+namespace engine {
+
+class BlimpEngineConfig;
+class BlimpEngineSession;
+class SettingsManager;
+
+class BlimpBrowserTestingMainParts : public BlimpBrowserMainParts {
+ public:
+ explicit BlimpBrowserTestingMainParts(
+ const content::MainFunctionParams& parameters);
+ ~BlimpBrowserTestingMainParts() = default;
+
+ // Override content::BrowserMainParts implementation
Kevin M 2017/01/09 20:17:17 Use standard comment boilerplate, e.g. "// BlimpB
shenghuazhang 2017/01/10 23:20:49 Done.
+ // in class BlimpBrowserMainParts.
+ void PreEarlyInitialization() override;
+ void PreMainMessageLoopRun() override;
+ void PostMainMessageLoopRun() override;
+
+ protected:
+ std::unique_ptr<BlimpEngineConfig> engine_config_;
+ std::unique_ptr<net::NetLog> net_log_;
+ std::unique_ptr<SettingsManager> settings_manager_;
+ std::unique_ptr<BlimpEngineSession> engine_session_;
+
+ DISALLOW_COPY_AND_ASSIGN(BlimpBrowserTestingMainParts);
+};
+
+} // namespace engine
+} // namespace blimp
+
+#endif // BLIMP_ENGINE_TESTING_APP_BLIMP_BROWSER_TESTING_MAIN_PARTS_H_

Powered by Google App Engine
This is Rietveld 408576698