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_UI_VIEWS_ASH_CHROME_BROWSER_MAIN_EXTRA_PARTS_ASH_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_ASH_CHROME_BROWSER_MAIN_EXTRA_PARTS_ASH_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_ASH_CHROME_BROWSER_MAIN_EXTRA_PARTS_ASH_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_ASH_CHROME_BROWSER_MAIN_EXTRA_PARTS_ASH_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "chrome/browser/chrome_browser_main_extra_parts.h" | 11 #include "chrome/browser/chrome_browser_main_extra_parts.h" |
12 | 12 |
13 namespace ash { | |
14 class ShelfModel; | |
15 } | |
16 | |
13 class AshInit; | 17 class AshInit; |
14 class CastConfigClientMediaRouter; | 18 class CastConfigClientMediaRouter; |
15 class ChromeLauncherControllerMus; | 19 class ChromeLauncherControllerImpl; |
16 class ChromeNewWindowClient; | 20 class ChromeNewWindowClient; |
17 class ChromeShellContentState; | 21 class ChromeShellContentState; |
18 class ImmersiveContextMus; | 22 class ImmersiveContextMus; |
19 class ImmersiveHandlerFactoryMus; | 23 class ImmersiveHandlerFactoryMus; |
20 class MediaClient; | 24 class MediaClient; |
21 class SessionControllerClient; | 25 class SessionControllerClient; |
22 class SystemTrayClient; | 26 class SystemTrayClient; |
23 class VolumeController; | 27 class VolumeController; |
24 class VpnListForwarder; | 28 class VpnListForwarder; |
25 | 29 |
26 // Browser initialization for Ash. Only runs on Chrome OS. | 30 // Browser initialization for Ash. Only runs on Chrome OS. |
27 // TODO(jamescook): Fold this into ChromeBrowserMainPartsChromeOS. | 31 // TODO(jamescook): Fold this into ChromeBrowserMainPartsChromeOS. |
28 class ChromeBrowserMainExtraPartsAsh : public ChromeBrowserMainExtraParts { | 32 class ChromeBrowserMainExtraPartsAsh : public ChromeBrowserMainExtraParts { |
29 public: | 33 public: |
30 ChromeBrowserMainExtraPartsAsh(); | 34 ChromeBrowserMainExtraPartsAsh(); |
31 ~ChromeBrowserMainExtraPartsAsh() override; | 35 ~ChromeBrowserMainExtraPartsAsh() override; |
32 | 36 |
33 // Overridden from ChromeBrowserMainExtraParts: | 37 // Overridden from ChromeBrowserMainExtraParts: |
34 void ServiceManagerConnectionStarted( | 38 void ServiceManagerConnectionStarted( |
35 content::ServiceManagerConnection* connection) override; | 39 content::ServiceManagerConnection* connection) override; |
36 void PreProfileInit() override; | 40 void PreProfileInit() override; |
37 void PostProfileInit() override; | 41 void PostProfileInit() override; |
38 void PostMainMessageLoopRun() override; | 42 void PostMainMessageLoopRun() override; |
39 | 43 |
40 private: | 44 private: |
41 std::unique_ptr<ChromeLauncherControllerMus> chrome_launcher_controller_mus_; | 45 std::unique_ptr<ChromeLauncherControllerImpl> chrome_launcher_controller_; |
42 std::unique_ptr<ChromeShellContentState> chrome_shell_content_state_; | 46 std::unique_ptr<ChromeShellContentState> chrome_shell_content_state_; |
43 std::unique_ptr<CastConfigClientMediaRouter> cast_config_client_media_router_; | 47 std::unique_ptr<CastConfigClientMediaRouter> cast_config_client_media_router_; |
44 std::unique_ptr<MediaClient> media_client_; | 48 std::unique_ptr<MediaClient> media_client_; |
45 std::unique_ptr<ImmersiveHandlerFactoryMus> immersive_handler_factory_; | 49 std::unique_ptr<ImmersiveHandlerFactoryMus> immersive_handler_factory_; |
46 std::unique_ptr<ImmersiveContextMus> immersive_context_; | 50 std::unique_ptr<ImmersiveContextMus> immersive_context_; |
51 std::unique_ptr<ash::ShelfModel> chrome_shelf_model_; | |
James Cook
2017/04/26 01:03:26
nit: This and the CLCImpl above need a comment tha
msw
2017/04/26 01:35:15
Done.
| |
47 std::unique_ptr<SessionControllerClient> session_controller_client_; | 52 std::unique_ptr<SessionControllerClient> session_controller_client_; |
48 std::unique_ptr<SystemTrayClient> system_tray_client_; | 53 std::unique_ptr<SystemTrayClient> system_tray_client_; |
49 std::unique_ptr<ChromeNewWindowClient> new_window_client_; | 54 std::unique_ptr<ChromeNewWindowClient> new_window_client_; |
50 std::unique_ptr<VolumeController> volume_controller_; | 55 std::unique_ptr<VolumeController> volume_controller_; |
51 std::unique_ptr<VpnListForwarder> vpn_list_forwarder_; | 56 std::unique_ptr<VpnListForwarder> vpn_list_forwarder_; |
52 std::unique_ptr<AshInit> ash_init_; | 57 std::unique_ptr<AshInit> ash_init_; |
53 | 58 |
54 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainExtraPartsAsh); | 59 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainExtraPartsAsh); |
55 }; | 60 }; |
56 | 61 |
57 #endif // CHROME_BROWSER_UI_VIEWS_ASH_CHROME_BROWSER_MAIN_EXTRA_PARTS_ASH_H_ | 62 #endif // CHROME_BROWSER_UI_VIEWS_ASH_CHROME_BROWSER_MAIN_EXTRA_PARTS_ASH_H_ |
OLD | NEW |