| 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" |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 void OnRequest(const ExtensionHostMsg_Request_Params& params); | 104 void OnRequest(const ExtensionHostMsg_Request_Params& params); |
| 105 | 105 |
| 106 Panel* panel_; // Weak, owns us. | 106 Panel* panel_; // Weak, owns us. |
| 107 Profile* profile_; | 107 Profile* profile_; |
| 108 ExtensionFunctionDispatcher extension_function_dispatcher_; | 108 ExtensionFunctionDispatcher extension_function_dispatcher_; |
| 109 | 109 |
| 110 // The following factory is used to close the panel via the message loop. | 110 // The following factory is used to close the panel via the message loop. |
| 111 base::WeakPtrFactory<PanelHost> weak_factory_; | 111 base::WeakPtrFactory<PanelHost> weak_factory_; |
| 112 | 112 |
| 113 scoped_ptr<PrefsTabHelper> prefs_tab_helper_; | 113 scoped_ptr<PrefsTabHelper> prefs_tab_helper_; |
| 114 scoped_ptr<FaviconTabHelper> favicon_tab_helper_; | |
| 115 scoped_ptr<content::WebContents> web_contents_; | 114 scoped_ptr<content::WebContents> web_contents_; |
| 116 | 115 |
| 117 DISALLOW_COPY_AND_ASSIGN(PanelHost); | 116 DISALLOW_COPY_AND_ASSIGN(PanelHost); |
| 118 }; | 117 }; |
| 119 | 118 |
| 120 #endif // CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_ | 119 #endif // CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_ |
| OLD | NEW |