OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 ASH_SHELL_CONTENT_CLIENT_EXAMPLES_BROWSER_MAIN_PARTS_H_ | 5 #ifndef WM_SHELL_CONTENT_CLIENT_EXAMPLES_BROWSER_MAIN_PARTS_H_ |
6 #define ASH_SHELL_CONTENT_CLIENT_EXAMPLES_BROWSER_MAIN_PARTS_H_ | 6 #define WM_SHELL_CONTENT_CLIENT_EXAMPLES_BROWSER_MAIN_PARTS_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "content/public/browser/browser_main_parts.h" | 10 #include "content/public/browser/browser_main_parts.h" |
11 | 11 |
12 namespace base { | |
13 class Thread; | |
14 } | |
15 | |
16 namespace content { | 12 namespace content { |
17 class ShellBrowserContext; | 13 class ShellBrowserContext; |
18 struct MainFunctionParams; | 14 struct MainFunctionParams; |
19 } | 15 } |
20 | 16 |
21 namespace ash { | 17 namespace ash { |
22 namespace shell { | 18 namespace shell { |
| 19 class WindowWatcher; |
| 20 } |
| 21 } |
23 | 22 |
24 class ShellDelegateImpl; | 23 namespace wm { |
25 class WindowWatcher; | 24 class ForeignTestWindow; |
| 25 |
| 26 namespace shell { |
26 | 27 |
27 class ShellBrowserMainParts : public content::BrowserMainParts { | 28 class ShellBrowserMainParts : public content::BrowserMainParts { |
28 public: | 29 public: |
29 explicit ShellBrowserMainParts( | 30 explicit ShellBrowserMainParts( |
30 const content::MainFunctionParams& parameters); | 31 const content::MainFunctionParams& parameters); |
31 virtual ~ShellBrowserMainParts(); | 32 virtual ~ShellBrowserMainParts(); |
32 | 33 |
33 // Overridden from content::BrowserMainParts: | 34 // Overridden from content::BrowserMainParts: |
34 virtual void PreMainMessageLoopStart() OVERRIDE; | 35 virtual void PreMainMessageLoopStart() OVERRIDE; |
35 virtual void PostMainMessageLoopStart() OVERRIDE; | 36 virtual void PostMainMessageLoopStart() OVERRIDE; |
36 virtual void PreMainMessageLoopRun() OVERRIDE; | 37 virtual void PreMainMessageLoopRun() OVERRIDE; |
37 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE; | 38 virtual bool MainMessageLoopRun(int* result_code) OVERRIDE; |
38 virtual void PostMainMessageLoopRun() OVERRIDE; | 39 virtual void PostMainMessageLoopRun() OVERRIDE; |
39 | 40 |
40 content::ShellBrowserContext* browser_context() { | 41 content::ShellBrowserContext* browser_context() { |
41 return browser_context_.get(); | 42 return browser_context_.get(); |
42 } | 43 } |
43 | 44 |
44 private: | 45 private: |
45 scoped_ptr<content::ShellBrowserContext> browser_context_; | 46 scoped_ptr<content::ShellBrowserContext> browser_context_; |
46 scoped_ptr<ash::shell::WindowWatcher> window_watcher_; | 47 scoped_ptr<ash::shell::WindowWatcher> window_watcher_; |
47 ShellDelegateImpl* delegate_; // owned by Shell | 48 scoped_ptr<wm::ForeignTestWindow> foreign_test_window_; |
48 | 49 |
49 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts); | 50 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts); |
50 }; | 51 }; |
51 | 52 |
52 } // namespace shell | 53 } // namespace shell |
53 } // namespace ash | 54 } // namespace wm |
54 | 55 |
55 #endif // ASH_SHELL_CONTENT_CLIENT_EXAMPLES_BROWSER_MAIN_PARTS_H_ | 56 #endif // WM_SHELL_CONTENT_CLIENT_EXAMPLES_BROWSER_MAIN_PARTS_H_ |
OLD | NEW |