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_BROWSER_BLIMP_BROWSER_MAIN_PARTS_H_ | 5 #ifndef BLIMP_ENGINE_BROWSER_BLIMP_BROWSER_MAIN_PARTS_H_ |
| 6 #define BLIMP_ENGINE_BROWSER_BLIMP_BROWSER_MAIN_PARTS_H_ | 6 #define BLIMP_ENGINE_BROWSER_BLIMP_BROWSER_MAIN_PARTS_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "blimp/engine/browser/blimp_browser_context.h" | |
| 11 #include "content/public/browser/browser_main_parts.h" | 10 #include "content/public/browser/browser_main_parts.h" |
| 11 #include "content/public/common/main_function_params.h" | |
|
Kevin M
2015/10/14 17:52:56
Prototype MainFunctionParams?
haibinlu
2015/10/15 01:59:27
Done.
| |
| 12 | 12 |
| 13 namespace net { | 13 namespace net { |
| 14 class NetLog; | 14 class NetLog; |
| 15 } | 15 } |
| 16 | 16 |
| 17 namespace blimp { | 17 namespace blimp { |
| 18 namespace engine { | 18 namespace engine { |
| 19 | 19 |
| 20 class BlimpScreen; | 20 class BlimpBrowserContext; |
| 21 class BlimpClientSessionManager; | |
| 22 class BlimpEngineSession; | |
| 21 | 23 |
| 22 class BlimpBrowserMainParts : public content::BrowserMainParts { | 24 class BlimpBrowserMainParts : public content::BrowserMainParts { |
| 23 public: | 25 public: |
| 24 explicit BlimpBrowserMainParts(const content::MainFunctionParams& parameters); | 26 explicit BlimpBrowserMainParts(const content::MainFunctionParams& parameters); |
| 25 ~BlimpBrowserMainParts() override; | 27 ~BlimpBrowserMainParts() override; |
| 26 | 28 |
| 27 // content::BrowserMainParts implementation. | 29 // content::BrowserMainParts implementation. |
| 28 void PreMainMessageLoopRun() override; | 30 void PreMainMessageLoopRun() override; |
| 29 void PostMainMessageLoopRun() override; | 31 void PostMainMessageLoopRun() override; |
| 30 int PreCreateThreads() override; | |
| 31 | 32 |
| 32 BlimpBrowserContext* browser_context() { return browser_context_.get(); } | 33 BlimpBrowserContext* browser_context(); |
|
Kevin M
2015/10/14 17:52:56
Need to use CamelCase naming for non-trivial gette
haibinlu
2015/10/15 01:59:28
Done.
| |
| 33 | 34 |
| 34 private: | 35 private: |
| 35 scoped_ptr<net::NetLog> net_log_; | 36 scoped_ptr<net::NetLog> net_log_; |
| 36 scoped_ptr<BlimpBrowserContext> browser_context_; | 37 scoped_ptr<BlimpClientSessionManager> client_session_manager_; |
| 37 scoped_ptr<BlimpScreen> screen_; | 38 scoped_ptr<BlimpEngineSession> engine_session_; |
| 38 | 39 |
| 39 DISALLOW_COPY_AND_ASSIGN(BlimpBrowserMainParts); | 40 DISALLOW_COPY_AND_ASSIGN(BlimpBrowserMainParts); |
| 40 }; | 41 }; |
| 41 | 42 |
| 42 } // namespace engine | 43 } // namespace engine |
| 43 } // namespace blimp | 44 } // namespace blimp |
| 44 | 45 |
| 45 #endif // BLIMP_ENGINE_BROWSER_BLIMP_BROWSER_MAIN_PARTS_H_ | 46 #endif // BLIMP_ENGINE_BROWSER_BLIMP_BROWSER_MAIN_PARTS_H_ |
| OLD | NEW |