OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 APPS_SHELL_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_ | 5 #ifndef APPS_SHELL_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_ |
6 #define APPS_SHELL_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_ | 6 #define APPS_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 14 matching lines...) Expand all Loading... |
25 | 25 |
26 namespace views { | 26 namespace views { |
27 class Widget; | 27 class Widget; |
28 } | 28 } |
29 | 29 |
30 namespace net { | 30 namespace net { |
31 class NetLog; | 31 class NetLog; |
32 } | 32 } |
33 | 33 |
34 namespace apps { | 34 namespace apps { |
35 | |
36 class ShellBrowserContext; | 35 class ShellBrowserContext; |
| 36 class ShellDelegate; |
37 class ShellDesktopController; | 37 class ShellDesktopController; |
38 class ShellExtensionsClient; | 38 class ShellExtensionsClient; |
39 | 39 |
40 #if defined(OS_CHROMEOS) | 40 #if defined(OS_CHROMEOS) |
41 class ShellNetworkController; | 41 class ShellNetworkController; |
42 #endif | 42 #endif |
43 | 43 |
44 // Handles initialization of AppShell. | 44 // Handles initialization of AppShell. |
45 class ShellBrowserMainParts : public content::BrowserMainParts, | 45 class ShellBrowserMainParts : public content::BrowserMainParts, |
46 public aura::WindowTreeHostObserver { | 46 public aura::WindowTreeHostObserver { |
47 public: | 47 public: |
48 explicit ShellBrowserMainParts( | 48 explicit ShellBrowserMainParts(const content::MainFunctionParams& parameters, |
49 const content::MainFunctionParams& parameters); | 49 ShellDelegate* shell_delegate); |
50 virtual ~ShellBrowserMainParts(); | 50 virtual ~ShellBrowserMainParts(); |
51 | 51 |
52 ShellBrowserContext* browser_context() { | 52 ShellBrowserContext* browser_context() { |
53 return browser_context_.get(); | 53 return browser_context_.get(); |
54 } | 54 } |
55 | 55 |
56 extensions::ShellExtensionSystem* extension_system() { | 56 extensions::ShellExtensionSystem* extension_system() { |
57 return extension_system_; | 57 return extension_system_; |
58 } | 58 } |
59 | 59 |
(...skipping 29 matching lines...) Expand all Loading... |
89 // Owned by the KeyedService system. | 89 // Owned by the KeyedService system. |
90 extensions::ShellExtensionSystem* extension_system_; | 90 extensions::ShellExtensionSystem* extension_system_; |
91 | 91 |
92 // For running app browsertests. | 92 // For running app browsertests. |
93 const content::MainFunctionParams parameters_; | 93 const content::MainFunctionParams parameters_; |
94 | 94 |
95 // If true, indicates the main message loop should be run | 95 // If true, indicates the main message loop should be run |
96 // in MainMessageLoopRun. If false, it has already been run. | 96 // in MainMessageLoopRun. If false, it has already been run. |
97 bool run_message_loop_; | 97 bool run_message_loop_; |
98 | 98 |
| 99 ShellDelegate* shell_delegate_; |
| 100 |
99 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts); | 101 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts); |
100 }; | 102 }; |
101 | 103 |
102 } // namespace apps | 104 } // namespace apps |
103 | 105 |
104 #endif // APPS_SHELL_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_ | 106 #endif // APPS_SHELL_BROWSER_SHELL_BROWSER_MAIN_PARTS_H_ |
OLD | NEW |