Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Unified Diff: chrome/browser/extensions/extension_host.h

Issue 6249010: Cleanup: de-inline a bunch of classes, rename and move "PluginInstaller" to "... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_host.h
===================================================================
--- chrome/browser/extensions/extension_host.h (revision 72158)
+++ chrome/browser/extensions/extension_host.h (working copy)
@@ -53,14 +53,14 @@
#if defined(TOOLKIT_VIEWS)
void set_view(ExtensionView* view) { view_.reset(view); }
- ExtensionView* view() const { return view_.get(); }
+ const ExtensionView* view() const { return view_.get(); }
+ ExtensionView* view() { return view_.get(); }
#elif defined(OS_MACOSX)
- ExtensionViewMac* view() const { return view_.get(); }
+ const ExtensionViewMac* view() const { return view_.get(); }
+ ExtensionViewMac* view() { return view_.get(); }
#elif defined(TOOLKIT_GTK)
- ExtensionViewGtk* view() const { return view_.get(); }
-#else
- // TODO(port): implement
- void* view() const { return NULL; }
+ const ExtensionViewGtk* view() const { return view_.get(); }
+ ExtensionViewGtk* view() { return view_.get(); }
#endif
// Create an ExtensionView and tie it to this host and |browser|. Note NULL
@@ -69,7 +69,7 @@
// instantiate Browser objects.
void CreateView(Browser* browser);
- const Extension* extension() { return extension_; }
+ const Extension* extension() const { return extension_; }
RenderViewHost* render_view_host() const { return render_view_host_; }
RenderProcessHost* render_process_host() const;
SiteInstance* site_instance() const;
@@ -220,8 +220,11 @@
// Actually create the RenderView for this host. See CreateRenderViewSoon.
void CreateRenderViewNow();
+ // Const version of below function.
+ const Browser* GetBrowser() const;
+
// ExtensionFunctionDispatcher::Delegate
- virtual Browser* GetBrowser() const;
+ virtual Browser* GetBrowser();
virtual gfx::NativeView GetNativeViewOfHost();
// Handles keyboard events that were not handled by HandleKeyboardEvent().
« no previous file with comments | « chrome/browser/extensions/extension_function_dispatcher.h ('k') | chrome/browser/extensions/extension_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698