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