OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_SHELL_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_ | 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_ |
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_ | 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "content/public/browser/browser_main_parts.h" | 11 #include "content/public/browser/browser_main_parts.h" |
12 #include "content/public/common/main_function_params.h" | 12 #include "content/public/common/main_function_params.h" |
13 #include "ui/aura/window_tree_host_observer.h" | 13 #include "ui/aura/window_tree_host_observer.h" |
14 | 14 |
15 namespace content { | 15 namespace content { |
16 class ShellDevToolsDelegate; | 16 class ShellDevToolsDelegate; |
17 struct MainFunctionParams; | 17 struct MainFunctionParams; |
18 } | 18 } |
19 | 19 |
20 namespace views { | 20 namespace views { |
21 class Widget; | 21 class Widget; |
22 } | 22 } |
23 | 23 |
24 namespace net { | 24 namespace net { |
25 class NetLog; | 25 class NetLog; |
26 } | 26 } |
27 | 27 |
28 namespace extensions { | 28 namespace extensions { |
29 | 29 |
30 class AppsClient; | 30 class AppWindowClient; |
31 class DesktopController; | 31 class DesktopController; |
32 class ShellBrowserContext; | 32 class ShellBrowserContext; |
33 class ShellBrowserMainDelegate; | 33 class ShellBrowserMainDelegate; |
34 class ShellDeviceClient; | 34 class ShellDeviceClient; |
35 class ShellExtensionsBrowserClient; | 35 class ShellExtensionsBrowserClient; |
36 class ShellExtensionsClient; | 36 class ShellExtensionsClient; |
37 class ShellExtensionSystem; | 37 class ShellExtensionSystem; |
38 class ShellOmahaQueryParamsDelegate; | 38 class ShellOmahaQueryParamsDelegate; |
39 | 39 |
40 #if defined(OS_CHROMEOS) | 40 #if defined(OS_CHROMEOS) |
(...skipping 26 matching lines...) Expand all Loading... |
67 // Creates and initializes the ExtensionSystem. | 67 // Creates and initializes the ExtensionSystem. |
68 void CreateExtensionSystem(); | 68 void CreateExtensionSystem(); |
69 | 69 |
70 #if defined(OS_CHROMEOS) | 70 #if defined(OS_CHROMEOS) |
71 scoped_ptr<ShellNetworkController> network_controller_; | 71 scoped_ptr<ShellNetworkController> network_controller_; |
72 scoped_ptr<ShellAudioController> audio_controller_; | 72 scoped_ptr<ShellAudioController> audio_controller_; |
73 #endif | 73 #endif |
74 scoped_ptr<DesktopController> desktop_controller_; | 74 scoped_ptr<DesktopController> desktop_controller_; |
75 scoped_ptr<ShellBrowserContext> browser_context_; | 75 scoped_ptr<ShellBrowserContext> browser_context_; |
76 scoped_ptr<ShellDeviceClient> device_client_; | 76 scoped_ptr<ShellDeviceClient> device_client_; |
77 scoped_ptr<AppsClient> apps_client_; | 77 scoped_ptr<AppWindowClient> apps_client_; |
78 scoped_ptr<ShellExtensionsClient> extensions_client_; | 78 scoped_ptr<ShellExtensionsClient> extensions_client_; |
79 scoped_ptr<ShellExtensionsBrowserClient> extensions_browser_client_; | 79 scoped_ptr<ShellExtensionsBrowserClient> extensions_browser_client_; |
80 scoped_ptr<net::NetLog> net_log_; | 80 scoped_ptr<net::NetLog> net_log_; |
81 scoped_ptr<content::ShellDevToolsDelegate> devtools_delegate_; | 81 scoped_ptr<content::ShellDevToolsDelegate> devtools_delegate_; |
82 scoped_ptr<ShellOmahaQueryParamsDelegate> omaha_query_params_delegate_; | 82 scoped_ptr<ShellOmahaQueryParamsDelegate> omaha_query_params_delegate_; |
83 | 83 |
84 // Owned by the KeyedService system. | 84 // Owned by the KeyedService system. |
85 ShellExtensionSystem* extension_system_; | 85 ShellExtensionSystem* extension_system_; |
86 | 86 |
87 // For running app browsertests. | 87 // For running app browsertests. |
88 const content::MainFunctionParams parameters_; | 88 const content::MainFunctionParams parameters_; |
89 | 89 |
90 // If true, indicates the main message loop should be run | 90 // If true, indicates the main message loop should be run |
91 // in MainMessageLoopRun. If false, it has already been run. | 91 // in MainMessageLoopRun. If false, it has already been run. |
92 bool run_message_loop_; | 92 bool run_message_loop_; |
93 | 93 |
94 scoped_ptr<ShellBrowserMainDelegate> browser_main_delegate_; | 94 scoped_ptr<ShellBrowserMainDelegate> browser_main_delegate_; |
95 | 95 |
96 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts); | 96 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts); |
97 }; | 97 }; |
98 | 98 |
99 } // namespace extensions | 99 } // namespace extensions |
100 | 100 |
101 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_ | 101 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_ |
OLD | NEW |