OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 ASH_SHELL_CONTENT_CLIENT_EXAMPLES_BROWSER_MAIN_PARTS_H_ |
6 #define ASH_SHELL_CONTENT_CLIENT_EXAMPLES_BROWSER_MAIN_PARTS_H_ | 6 #define ASH_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 { | 12 namespace base { |
13 class Thread; | 13 class Thread; |
14 } | 14 } |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 class ShellBrowserContext; | 17 class ShellBrowserContext; |
18 struct MainFunctionParams; | 18 struct MainFunctionParams; |
19 } | 19 } |
20 | 20 |
21 namespace net { | 21 namespace net { |
22 class NetLog; | 22 class NetLog; |
23 } | 23 } |
24 | 24 |
25 namespace views { | |
26 class ViewsDelegate; | |
27 } | |
28 | |
25 namespace wm { | 29 namespace wm { |
26 class WMState; | 30 class WMState; |
27 } | 31 } |
28 | 32 |
29 namespace ash { | 33 namespace ash { |
30 namespace shell { | 34 namespace shell { |
31 | 35 |
32 class ShellDelegateImpl; | 36 class ShellDelegateImpl; |
33 class WindowWatcher; | 37 class WindowWatcher; |
34 | 38 |
(...skipping 12 matching lines...) Expand all Loading... | |
47 void PostMainMessageLoopRun() override; | 51 void PostMainMessageLoopRun() override; |
48 | 52 |
49 content::ShellBrowserContext* browser_context() { | 53 content::ShellBrowserContext* browser_context() { |
50 return browser_context_.get(); | 54 return browser_context_.get(); |
51 } | 55 } |
52 | 56 |
53 private: | 57 private: |
54 scoped_ptr<net::NetLog> net_log_; | 58 scoped_ptr<net::NetLog> net_log_; |
55 scoped_ptr<content::ShellBrowserContext> browser_context_; | 59 scoped_ptr<content::ShellBrowserContext> browser_context_; |
56 scoped_ptr<ash::shell::WindowWatcher> window_watcher_; | 60 scoped_ptr<ash::shell::WindowWatcher> window_watcher_; |
61 scoped_ptr<views::ViewsDelegate> views_delegate_; | |
sky
2015/06/08 20:22:42
Seems like this should be before window_watcher_.
mohsen
2015/06/08 20:46:09
Done, but is it because it is set before window_wa
sky
2015/06/08 20:48:03
I would think anything using ash many be using aur
mohsen
2015/06/09 02:17:23
I see. Now, I destroy the delegate in PostMainMess
| |
57 ShellDelegateImpl* delegate_; // owned by Shell | 62 ShellDelegateImpl* delegate_; // owned by Shell |
58 scoped_ptr<wm::WMState> wm_state_; | 63 scoped_ptr<wm::WMState> wm_state_; |
59 | 64 |
60 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts); | 65 DISALLOW_COPY_AND_ASSIGN(ShellBrowserMainParts); |
61 }; | 66 }; |
62 | 67 |
63 } // namespace shell | 68 } // namespace shell |
64 } // namespace ash | 69 } // namespace ash |
65 | 70 |
66 #endif // ASH_SHELL_CONTENT_CLIENT_EXAMPLES_BROWSER_MAIN_PARTS_H_ | 71 #endif // ASH_SHELL_CONTENT_CLIENT_EXAMPLES_BROWSER_MAIN_PARTS_H_ |
OLD | NEW |