OLD | NEW |
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_BROWSER_MAIN_PARTS_H_ | 5 #ifndef BLIMP_ENGINE_APP_BLIMP_BROWSER_MAIN_PARTS_H_ |
6 #define BLIMP_ENGINE_APP_BLIMP_BROWSER_MAIN_PARTS_H_ | 6 #define BLIMP_ENGINE_APP_BLIMP_BROWSER_MAIN_PARTS_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "content/public/browser/browser_main_parts.h" | 11 #include "content/public/browser/browser_main_parts.h" |
12 #include "content/public/common/main_function_params.h" | 12 #include "content/public/common/main_function_params.h" |
13 | 13 |
14 namespace net { | 14 namespace net { |
15 class NetLog; | 15 class NetLog; |
16 } | 16 } |
17 | 17 |
18 namespace content { | 18 namespace content { |
19 struct MainFunctionParams; | 19 struct MainFunctionParams; |
20 } | 20 } |
21 | 21 |
22 namespace blimp { | 22 namespace blimp { |
| 23 |
| 24 class BlobChannelSender; |
| 25 |
23 namespace engine { | 26 namespace engine { |
24 | 27 |
25 class BlimpBrowserContext; | 28 class BlimpBrowserContext; |
26 class BlimpEngineConfig; | 29 class BlimpEngineConfig; |
27 class BlimpEngineSession; | 30 class BlimpEngineSession; |
28 class SettingsManager; | 31 class SettingsManager; |
29 | 32 |
30 class BlimpBrowserMainParts : public content::BrowserMainParts { | 33 class BlimpBrowserMainParts : public content::BrowserMainParts { |
31 public: | 34 public: |
32 explicit BlimpBrowserMainParts(const content::MainFunctionParams& parameters); | 35 explicit BlimpBrowserMainParts(const content::MainFunctionParams& parameters); |
33 ~BlimpBrowserMainParts() override; | 36 ~BlimpBrowserMainParts() override; |
34 | 37 |
35 // content::BrowserMainParts implementation. | 38 // content::BrowserMainParts implementation. |
36 void PreEarlyInitialization() override; | 39 void PreEarlyInitialization() override; |
37 void PreMainMessageLoopRun() override; | 40 void PreMainMessageLoopRun() override; |
38 void PostMainMessageLoopRun() override; | 41 void PostMainMessageLoopRun() override; |
39 | 42 |
40 BlimpBrowserContext* GetBrowserContext(); | 43 BlimpBrowserContext* GetBrowserContext(); |
41 SettingsManager* GetSettingsManager(); | 44 SettingsManager* GetSettingsManager(); |
| 45 BlobChannelSender* GetBlobChannelSender(); |
42 BlimpEngineSession* GetBlimpEngineSession(); | 46 BlimpEngineSession* GetBlimpEngineSession(); |
43 | 47 |
44 private: | 48 private: |
45 std::unique_ptr<BlimpEngineConfig> engine_config_; | 49 std::unique_ptr<BlimpEngineConfig> engine_config_; |
46 std::unique_ptr<net::NetLog> net_log_; | 50 std::unique_ptr<net::NetLog> net_log_; |
47 std::unique_ptr<SettingsManager> settings_manager_; | 51 std::unique_ptr<SettingsManager> settings_manager_; |
48 std::unique_ptr<BlimpEngineSession> engine_session_; | 52 std::unique_ptr<BlimpEngineSession> engine_session_; |
49 | 53 |
50 DISALLOW_COPY_AND_ASSIGN(BlimpBrowserMainParts); | 54 DISALLOW_COPY_AND_ASSIGN(BlimpBrowserMainParts); |
51 }; | 55 }; |
52 | 56 |
53 } // namespace engine | 57 } // namespace engine |
54 } // namespace blimp | 58 } // namespace blimp |
55 | 59 |
56 #endif // BLIMP_ENGINE_APP_BLIMP_BROWSER_MAIN_PARTS_H_ | 60 #endif // BLIMP_ENGINE_APP_BLIMP_BROWSER_MAIN_PARTS_H_ |
OLD | NEW |