Chromium Code Reviews| 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" |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 29 class BlimpBrowserContext; | 29 class BlimpBrowserContext; |
| 30 class BlimpEngineConfig; | 30 class BlimpEngineConfig; |
| 31 class BlimpEngineSession; | 31 class BlimpEngineSession; |
| 32 class SettingsManager; | 32 class SettingsManager; |
| 33 | 33 |
| 34 class BlimpBrowserMainParts : public content::BrowserMainParts { | 34 class BlimpBrowserMainParts : public content::BrowserMainParts { |
| 35 public: | 35 public: |
| 36 explicit BlimpBrowserMainParts(const content::MainFunctionParams& parameters); | 36 explicit BlimpBrowserMainParts(const content::MainFunctionParams& parameters); |
| 37 ~BlimpBrowserMainParts() override; | 37 ~BlimpBrowserMainParts() override; |
| 38 | 38 |
| 39 // content::BrowserMainParts implementation. | 39 // content::BrowserMainParts implementation. |
|
Kevin M
2017/01/09 20:17:16
Move this below the non-overrides
shenghuazhang
2017/01/10 23:20:49
Done.
| |
| 40 void PreEarlyInitialization() override; | 40 void PreEarlyInitialization() override; |
| 41 void PreMainMessageLoopRun() override; | 41 void PreMainMessageLoopRun() override; |
| 42 void PostMainMessageLoopRun() override; | 42 void PostMainMessageLoopRun() override; |
| 43 | 43 |
| 44 BlimpBrowserContext* GetBrowserContext(); | 44 BlimpBrowserContext* GetBrowserContext(); |
| 45 SettingsManager* GetSettingsManager(); | 45 SettingsManager* GetSettingsManager(); |
| 46 BlobChannelSender* GetBlobChannelSender(); | 46 BlobChannelSender* GetBlobChannelSender(); |
| 47 BlobChannelService* GetBlobChannelService(); | 47 BlobChannelService* GetBlobChannelService(); |
| 48 BlimpEngineSession* GetBlimpEngineSession(); | 48 BlimpEngineSession* GetBlimpEngineSession(); |
| 49 | 49 |
| 50 void SetSettingsManagerForTesting( | |
|
shenghuazhang
2017/01/10 23:20:49
Set to be protected too.
| |
| 51 std::unique_ptr<SettingsManager> settings_manager); | |
| 52 void SetEngineSessionForTesting( | |
| 53 std::unique_ptr<BlimpEngineSession> engine_session); | |
| 54 | |
| 50 private: | 55 private: |
| 51 std::unique_ptr<BlimpEngineConfig> engine_config_; | 56 std::unique_ptr<BlimpEngineConfig> engine_config_; |
| 52 std::unique_ptr<net::NetLog> net_log_; | 57 std::unique_ptr<net::NetLog> net_log_; |
| 53 std::unique_ptr<SettingsManager> settings_manager_; | 58 std::unique_ptr<SettingsManager> settings_manager_; |
| 54 std::unique_ptr<BlimpEngineSession> engine_session_; | 59 std::unique_ptr<BlimpEngineSession> engine_session_; |
| 55 | 60 |
| 56 DISALLOW_COPY_AND_ASSIGN(BlimpBrowserMainParts); | 61 DISALLOW_COPY_AND_ASSIGN(BlimpBrowserMainParts); |
| 57 }; | 62 }; |
| 58 | 63 |
| 59 } // namespace engine | 64 } // namespace engine |
| 60 } // namespace blimp | 65 } // namespace blimp |
| 61 | 66 |
| 62 #endif // BLIMP_ENGINE_APP_BLIMP_BROWSER_MAIN_PARTS_H_ | 67 #endif // BLIMP_ENGINE_APP_BLIMP_BROWSER_MAIN_PARTS_H_ |
| OLD | NEW |