OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_CHROME_BROWSER_MAIN_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_CHROME_BROWSER_MAIN_ANDROID_H_ |
6 #define CHROME_BROWSER_CHROME_BROWSER_MAIN_ANDROID_H_ | 6 #define CHROME_BROWSER_CHROME_BROWSER_MAIN_ANDROID_H_ |
7 | 7 |
8 #include "chrome/browser/chrome_browser_main.h" | 8 #include "chrome/browser/chrome_browser_main.h" |
9 | 9 |
10 namespace breakpad { | 10 namespace breakpad { |
11 class CrashDumpManager; | 11 class CrashDumpManager; |
12 } | 12 } |
13 | 13 |
| 14 #if defined(USE_AURA) |
| 15 class WindowTreeHostManager; |
| 16 #endif |
| 17 |
14 class ChromeBrowserMainPartsAndroid : public ChromeBrowserMainParts { | 18 class ChromeBrowserMainPartsAndroid : public ChromeBrowserMainParts { |
15 public: | 19 public: |
16 explicit ChromeBrowserMainPartsAndroid( | 20 explicit ChromeBrowserMainPartsAndroid( |
17 const content::MainFunctionParams& parameters); | 21 const content::MainFunctionParams& parameters); |
18 ~ChromeBrowserMainPartsAndroid() override; | 22 ~ChromeBrowserMainPartsAndroid() override; |
19 | 23 |
| 24 #if defined(USE_AURA) |
| 25 void InitAura(); |
| 26 #endif |
| 27 |
20 // content::BrowserMainParts overrides. | 28 // content::BrowserMainParts overrides. |
21 int PreCreateThreads() override; | 29 int PreCreateThreads() override; |
| 30 void PreProfileInit() override; |
22 void PostProfileInit() override; | 31 void PostProfileInit() override; |
23 void PreEarlyInitialization() override; | 32 void PreEarlyInitialization() override; |
24 void PreMainMessageLoopRun() override; | 33 void PreMainMessageLoopRun() override; |
25 | 34 |
26 // ChromeBrowserMainParts overrides. | 35 // ChromeBrowserMainParts overrides. |
27 void PostBrowserStart() override; | 36 void PostBrowserStart() override; |
28 void ShowMissingLocaleMessageBox() override; | 37 void ShowMissingLocaleMessageBox() override; |
29 | 38 |
30 private: | 39 private: |
31 scoped_ptr<base::MessageLoop> main_message_loop_; | 40 scoped_ptr<base::MessageLoop> main_message_loop_; |
32 scoped_ptr<breakpad::CrashDumpManager> crash_dump_manager_; | 41 scoped_ptr<breakpad::CrashDumpManager> crash_dump_manager_; |
| 42 #if defined(USE_AURA) |
| 43 scoped_ptr<WindowTreeHostManager> window_tree_host_manager_; |
| 44 #endif |
33 | 45 |
34 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsAndroid); | 46 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainPartsAndroid); |
35 }; | 47 }; |
36 | 48 |
37 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_ANDROID_H_ | 49 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_ANDROID_H_ |
OLD | NEW |