Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(230)

Side by Side Diff: chrome/browser/ui/panels/panel_host.h

Issue 10831226: Panels refactor: Support browserless panels on Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove static initializer Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/panels/panel_gtk.cc ('k') | chrome/browser/ui/panels/panel_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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;
18 class Profile; 19 class Profile;
19 20
20 namespace content { 21 namespace content {
21 class WebContents; 22 class WebContents;
22 } 23 }
23 24
24 namespace extensions { 25 namespace extensions {
25 class WindowController; 26 class WindowController;
26 } 27 }
27 28
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // Message handlers. 92 // Message handlers.
92 void OnRequest(const ExtensionHostMsg_Request_Params& params); 93 void OnRequest(const ExtensionHostMsg_Request_Params& params);
93 94
94 Panel* panel_; // Weak, owns us. 95 Panel* panel_; // Weak, owns us.
95 Profile* profile_; 96 Profile* profile_;
96 ExtensionFunctionDispatcher extension_function_dispatcher_; 97 ExtensionFunctionDispatcher extension_function_dispatcher_;
97 98
98 // The following factory is used to close the panel via the message loop. 99 // The following factory is used to close the panel via the message loop.
99 base::WeakPtrFactory<PanelHost> weak_factory_; 100 base::WeakPtrFactory<PanelHost> weak_factory_;
100 101
102 scoped_ptr<PrefsTabHelper> prefs_tab_helper_;
101 scoped_ptr<FaviconTabHelper> favicon_tab_helper_; 103 scoped_ptr<FaviconTabHelper> favicon_tab_helper_;
102 scoped_ptr<content::WebContents> web_contents_; 104 scoped_ptr<content::WebContents> web_contents_;
103 105
104 DISALLOW_COPY_AND_ASSIGN(PanelHost); 106 DISALLOW_COPY_AND_ASSIGN(PanelHost);
105 }; 107 };
106 108
107 #endif // CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_ 109 #endif // CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_gtk.cc ('k') | chrome/browser/ui/panels/panel_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698