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

Side by Side Diff: blimp/engine/app/blimp_content_main_delegate.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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BLIMP_ENGINE_APP_BLIMP_CONTENT_MAIN_DELEGATE_H_ 5 #ifndef BLIMP_ENGINE_APP_BLIMP_CONTENT_MAIN_DELEGATE_H_
6 #define BLIMP_ENGINE_APP_BLIMP_CONTENT_MAIN_DELEGATE_H_ 6 #define BLIMP_ENGINE_APP_BLIMP_CONTENT_MAIN_DELEGATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 12 matching lines...) Expand all
23 ~BlimpContentMainDelegate() override; 23 ~BlimpContentMainDelegate() override;
24 24
25 BlimpContentBrowserClient* browser_client() { return browser_client_.get(); } 25 BlimpContentBrowserClient* browser_client() { return browser_client_.get(); }
26 26
27 // content::ContentMainDelegate implementation. 27 // content::ContentMainDelegate implementation.
28 bool BasicStartupComplete(int* exit_code) override; 28 bool BasicStartupComplete(int* exit_code) override;
29 void PreSandboxStartup() override; 29 void PreSandboxStartup() override;
30 content::ContentBrowserClient* CreateContentBrowserClient() override; 30 content::ContentBrowserClient* CreateContentBrowserClient() override;
31 content::ContentRendererClient* CreateContentRendererClient() override; 31 content::ContentRendererClient* CreateContentRendererClient() override;
32 32
33 protected:
34 void SetContentBrowserClientForTesting(
35 std::unique_ptr<BlimpContentBrowserClient> browser_client_ptr);
36
33 private: 37 private:
34 void InitializeResourceBundle(); 38 void InitializeResourceBundle();
35 39
36 std::unique_ptr<BlimpContentBrowserClient> browser_client_; 40 std::unique_ptr<BlimpContentBrowserClient> browser_client_;
37 std::unique_ptr<BlimpContentRendererClient> renderer_client_; 41 std::unique_ptr<BlimpContentRendererClient> renderer_client_;
38 BlimpContentClient content_client_; 42 BlimpContentClient content_client_;
39 43
40 DISALLOW_COPY_AND_ASSIGN(BlimpContentMainDelegate); 44 DISALLOW_COPY_AND_ASSIGN(BlimpContentMainDelegate);
41 }; 45 };
42 46
43 } // namespace engine 47 } // namespace engine
44 } // namespace blimp 48 } // namespace blimp
45 49
46 #endif // BLIMP_ENGINE_APP_BLIMP_CONTENT_MAIN_DELEGATE_H_ 50 #endif // BLIMP_ENGINE_APP_BLIMP_CONTENT_MAIN_DELEGATE_H_
OLDNEW
« no previous file with comments | « blimp/engine/app/blimp_content_browser_client.cc ('k') | blimp/engine/app/blimp_content_main_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698