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 CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_ |
6 #define CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_ | 6 #define CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "chrome/browser/extensions/extension_function_dispatcher.h" | 10 #include "chrome/browser/extensions/extension_function_dispatcher.h" |
11 #include "content/public/browser/web_contents_delegate.h" | 11 #include "content/public/browser/web_contents_delegate.h" |
12 #include "content/public/browser/web_contents_observer.h" | 12 #include "content/public/browser/web_contents_observer.h" |
13 #include "content/public/common/page_zoom.h" | 13 #include "content/public/common/page_zoom.h" |
14 | 14 |
15 class FaviconTabHelper; | 15 class FaviconTabHelper; |
16 class GURL; | 16 class GURL; |
17 class Panel; | 17 class Panel; |
18 class PrefsTabHelper; | |
19 class Profile; | 18 class Profile; |
20 | 19 |
21 namespace content { | 20 namespace content { |
22 class WebContents; | 21 class WebContents; |
23 } | 22 } |
24 | 23 |
25 namespace extensions { | 24 namespace extensions { |
26 class WindowController; | 25 class WindowController; |
27 } | 26 } |
28 | 27 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 // Message handlers. | 91 // Message handlers. |
93 void OnRequest(const ExtensionHostMsg_Request_Params& params); | 92 void OnRequest(const ExtensionHostMsg_Request_Params& params); |
94 | 93 |
95 Panel* panel_; // Weak, owns us. | 94 Panel* panel_; // Weak, owns us. |
96 Profile* profile_; | 95 Profile* profile_; |
97 ExtensionFunctionDispatcher extension_function_dispatcher_; | 96 ExtensionFunctionDispatcher extension_function_dispatcher_; |
98 | 97 |
99 // The following factory is used to close the panel via the message loop. | 98 // The following factory is used to close the panel via the message loop. |
100 base::WeakPtrFactory<PanelHost> weak_factory_; | 99 base::WeakPtrFactory<PanelHost> weak_factory_; |
101 | 100 |
102 scoped_ptr<PrefsTabHelper> prefs_tab_helper_; | |
103 scoped_ptr<FaviconTabHelper> favicon_tab_helper_; | 101 scoped_ptr<FaviconTabHelper> favicon_tab_helper_; |
104 scoped_ptr<content::WebContents> web_contents_; | 102 scoped_ptr<content::WebContents> web_contents_; |
105 | 103 |
106 DISALLOW_COPY_AND_ASSIGN(PanelHost); | 104 DISALLOW_COPY_AND_ASSIGN(PanelHost); |
107 }; | 105 }; |
108 | 106 |
109 #endif // CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_ | 107 #endif // CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_ |
OLD | NEW |