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

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: feedback changes 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
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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 // Message handlers. 91 // Message handlers.
91 void OnRequest(const ExtensionHostMsg_Request_Params& params); 92 void OnRequest(const ExtensionHostMsg_Request_Params& params);
92 93
93 Panel* panel_; // Weak, owns us. 94 Panel* panel_; // Weak, owns us.
94 Profile* profile_; 95 Profile* profile_;
95 ExtensionFunctionDispatcher extension_function_dispatcher_; 96 ExtensionFunctionDispatcher extension_function_dispatcher_;
96 97
97 // 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.
98 base::WeakPtrFactory<PanelHost> weak_factory_; 99 base::WeakPtrFactory<PanelHost> weak_factory_;
99 100
101 scoped_ptr<PrefsTabHelper> prefs_tab_helper_;
100 scoped_ptr<FaviconTabHelper> favicon_tab_helper_; 102 scoped_ptr<FaviconTabHelper> favicon_tab_helper_;
101 scoped_ptr<content::WebContents> web_contents_; 103 scoped_ptr<content::WebContents> web_contents_;
102 104
103 DISALLOW_COPY_AND_ASSIGN(PanelHost); 105 DISALLOW_COPY_AND_ASSIGN(PanelHost);
104 }; 106 };
105 107
106 #endif // CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_ 108 #endif // CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698