Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(226)

Side by Side Diff: extensions/shell/browser/shell_browser_main_parts.h

Issue 480353006: Separate athena's startup process from AppShell's (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reformat Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 DesktopController;
30 class ShellBrowserContext; 31 class ShellBrowserContext;
31 class ShellBrowserMainDelegate; 32 class ShellBrowserMainDelegate;
32 class ShellDesktopController;
33 class ShellExtensionsBrowserClient; 33 class ShellExtensionsBrowserClient;
34 class ShellExtensionsClient; 34 class ShellExtensionsClient;
35 class ShellExtensionSystem; 35 class ShellExtensionSystem;
36 class ShellOmahaQueryParamsDelegate; 36 class ShellOmahaQueryParamsDelegate;
37 37
38 #if defined(OS_CHROMEOS) 38 #if defined(OS_CHROMEOS)
39 class ShellNetworkController; 39 class ShellNetworkController;
40 #endif 40 #endif
41 41
42 // Handles initialization of AppShell. 42 // Handles initialization of AppShell.
(...skipping 17 matching lines...) Expand all
60 virtual void PostMainMessageLoopRun() OVERRIDE; 60 virtual void PostMainMessageLoopRun() OVERRIDE;
61 virtual void PostDestroyThreads() OVERRIDE; 61 virtual void PostDestroyThreads() OVERRIDE;
62 62
63 private: 63 private:
64 // Creates and initializes the ExtensionSystem. 64 // Creates and initializes the ExtensionSystem.
65 void CreateExtensionSystem(); 65 void CreateExtensionSystem();
66 66
67 #if defined(OS_CHROMEOS) 67 #if defined(OS_CHROMEOS)
68 scoped_ptr<ShellNetworkController> network_controller_; 68 scoped_ptr<ShellNetworkController> network_controller_;
69 #endif 69 #endif
70 scoped_ptr<ShellDesktopController> desktop_controller_; 70 scoped_ptr<DesktopController> desktop_controller_;
71 scoped_ptr<ShellBrowserContext> browser_context_; 71 scoped_ptr<ShellBrowserContext> browser_context_;
72 scoped_ptr<ShellExtensionsClient> extensions_client_; 72 scoped_ptr<ShellExtensionsClient> extensions_client_;
73 scoped_ptr<ShellExtensionsBrowserClient> extensions_browser_client_; 73 scoped_ptr<ShellExtensionsBrowserClient> extensions_browser_client_;
74 scoped_ptr<net::NetLog> net_log_; 74 scoped_ptr<net::NetLog> net_log_;
75 scoped_ptr<content::ShellDevToolsDelegate> devtools_delegate_; 75 scoped_ptr<content::ShellDevToolsDelegate> devtools_delegate_;
76 scoped_ptr<ShellOmahaQueryParamsDelegate> omaha_query_params_delegate_; 76 scoped_ptr<ShellOmahaQueryParamsDelegate> omaha_query_params_delegate_;
77 77
78 // Owned by the KeyedService system. 78 // Owned by the KeyedService system.
79 ShellExtensionSystem* extension_system_; 79 ShellExtensionSystem* extension_system_;
80 80
81 // For running app browsertests. 81 // For running app browsertests.
82 const content::MainFunctionParams parameters_; 82 const content::MainFunctionParams parameters_;
83 83
84 // If true, indicates the main message loop should be run 84 // If true, indicates the main message loop should be run
85 // in MainMessageLoopRun. If false, it has already been run. 85 // in MainMessageLoopRun. If false, it has already been run.
86 bool run_message_loop_; 86 bool run_message_loop_;
87 87
88 scoped_ptr<ShellBrowserMainDelegate> browser_main_delegate_; 88 scoped_ptr<ShellBrowserMainDelegate> browser_main_delegate_;
89 89
90 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts); 90 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts);
91 }; 91 };
92 92
93 } // namespace extensions 93 } // namespace extensions
94 94
95 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_ 95 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698