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" |
(...skipping 12 matching lines...) Expand all Loading... |
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 DesktopController; | 30 class DesktopController; |
31 class ShellBrowserContext; | 31 class ShellBrowserContext; |
32 class ShellBrowserMainDelegate; | 32 class ShellBrowserMainDelegate; |
| 33 class ShellDeviceClient; |
33 class ShellExtensionsBrowserClient; | 34 class ShellExtensionsBrowserClient; |
34 class ShellExtensionsClient; | 35 class ShellExtensionsClient; |
35 class ShellExtensionSystem; | 36 class ShellExtensionSystem; |
36 class ShellOmahaQueryParamsDelegate; | 37 class ShellOmahaQueryParamsDelegate; |
37 | 38 |
38 #if defined(OS_CHROMEOS) | 39 #if defined(OS_CHROMEOS) |
39 class ShellNetworkController; | 40 class ShellNetworkController; |
40 #endif | 41 #endif |
41 | 42 |
42 // Handles initialization of AppShell. | 43 // Handles initialization of AppShell. |
(...skipping 19 matching lines...) Expand all Loading... |
62 | 63 |
63 private: | 64 private: |
64 // Creates and initializes the ExtensionSystem. | 65 // Creates and initializes the ExtensionSystem. |
65 void CreateExtensionSystem(); | 66 void CreateExtensionSystem(); |
66 | 67 |
67 #if defined(OS_CHROMEOS) | 68 #if defined(OS_CHROMEOS) |
68 scoped_ptr<ShellNetworkController> network_controller_; | 69 scoped_ptr<ShellNetworkController> network_controller_; |
69 #endif | 70 #endif |
70 scoped_ptr<DesktopController> desktop_controller_; | 71 scoped_ptr<DesktopController> desktop_controller_; |
71 scoped_ptr<ShellBrowserContext> browser_context_; | 72 scoped_ptr<ShellBrowserContext> browser_context_; |
| 73 scoped_ptr<ShellDeviceClient> device_client_; |
72 scoped_ptr<ShellExtensionsClient> extensions_client_; | 74 scoped_ptr<ShellExtensionsClient> extensions_client_; |
73 scoped_ptr<ShellExtensionsBrowserClient> extensions_browser_client_; | 75 scoped_ptr<ShellExtensionsBrowserClient> extensions_browser_client_; |
74 scoped_ptr<net::NetLog> net_log_; | 76 scoped_ptr<net::NetLog> net_log_; |
75 scoped_ptr<content::ShellDevToolsDelegate> devtools_delegate_; | 77 scoped_ptr<content::ShellDevToolsDelegate> devtools_delegate_; |
76 scoped_ptr<ShellOmahaQueryParamsDelegate> omaha_query_params_delegate_; | 78 scoped_ptr<ShellOmahaQueryParamsDelegate> omaha_query_params_delegate_; |
77 | 79 |
78 // Owned by the KeyedService system. | 80 // Owned by the KeyedService system. |
79 ShellExtensionSystem* extension_system_; | 81 ShellExtensionSystem* extension_system_; |
80 | 82 |
81 // For running app browsertests. | 83 // For running app browsertests. |
82 const content::MainFunctionParams parameters_; | 84 const content::MainFunctionParams parameters_; |
83 | 85 |
84 // If true, indicates the main message loop should be run | 86 // If true, indicates the main message loop should be run |
85 // in MainMessageLoopRun. If false, it has already been run. | 87 // in MainMessageLoopRun. If false, it has already been run. |
86 bool run_message_loop_; | 88 bool run_message_loop_; |
87 | 89 |
88 scoped_ptr<ShellBrowserMainDelegate> browser_main_delegate_; | 90 scoped_ptr<ShellBrowserMainDelegate> browser_main_delegate_; |
89 | 91 |
90 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts); | 92 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts); |
91 }; | 93 }; |
92 | 94 |
93 } // namespace extensions | 95 } // namespace extensions |
94 | 96 |
95 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_ | 97 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_ |
OLD | NEW |