| 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 "blimp/engine/mojo/blob_channel_service.h" |
| 11 #include "content/public/browser/browser_main_parts.h" | 12 #include "content/public/browser/browser_main_parts.h" |
| 12 #include "content/public/common/main_function_params.h" | 13 #include "content/public/common/main_function_params.h" |
| 13 | 14 |
| 14 namespace net { | 15 namespace net { |
| 15 class NetLog; | 16 class NetLog; |
| 16 } | 17 } |
| 17 | 18 |
| 18 namespace content { | 19 namespace content { |
| 19 struct MainFunctionParams; | 20 struct MainFunctionParams; |
| 20 } | 21 } |
| (...skipping 15 matching lines...) Expand all Loading... |
| 36 ~BlimpBrowserMainParts() override; | 37 ~BlimpBrowserMainParts() override; |
| 37 | 38 |
| 38 // content::BrowserMainParts implementation. | 39 // content::BrowserMainParts implementation. |
| 39 void PreEarlyInitialization() override; | 40 void PreEarlyInitialization() override; |
| 40 void PreMainMessageLoopRun() override; | 41 void PreMainMessageLoopRun() override; |
| 41 void PostMainMessageLoopRun() override; | 42 void PostMainMessageLoopRun() override; |
| 42 | 43 |
| 43 BlimpBrowserContext* GetBrowserContext(); | 44 BlimpBrowserContext* GetBrowserContext(); |
| 44 SettingsManager* GetSettingsManager(); | 45 SettingsManager* GetSettingsManager(); |
| 45 BlobChannelSender* GetBlobChannelSender(); | 46 BlobChannelSender* GetBlobChannelSender(); |
| 47 BlobChannelService* GetBlobChannelService(); |
| 46 BlimpEngineSession* GetBlimpEngineSession(); | 48 BlimpEngineSession* GetBlimpEngineSession(); |
| 47 | 49 |
| 48 private: | 50 private: |
| 49 std::unique_ptr<BlimpEngineConfig> engine_config_; | 51 std::unique_ptr<BlimpEngineConfig> engine_config_; |
| 50 std::unique_ptr<net::NetLog> net_log_; | 52 std::unique_ptr<net::NetLog> net_log_; |
| 51 std::unique_ptr<SettingsManager> settings_manager_; | 53 std::unique_ptr<SettingsManager> settings_manager_; |
| 52 std::unique_ptr<BlimpEngineSession> engine_session_; | 54 std::unique_ptr<BlimpEngineSession> engine_session_; |
| 53 | 55 |
| 54 DISALLOW_COPY_AND_ASSIGN(BlimpBrowserMainParts); | 56 DISALLOW_COPY_AND_ASSIGN(BlimpBrowserMainParts); |
| 55 }; | 57 }; |
| 56 | 58 |
| 57 } // namespace engine | 59 } // namespace engine |
| 58 } // namespace blimp | 60 } // namespace blimp |
| 59 | 61 |
| 60 #endif // BLIMP_ENGINE_APP_BLIMP_BROWSER_MAIN_PARTS_H_ | 62 #endif // BLIMP_ENGINE_APP_BLIMP_BROWSER_MAIN_PARTS_H_ |
| OLD | NEW |