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

Unified Diff: chrome/browser/ui/extensions/shell_window.h

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 6 Created 8 years, 7 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/ui/extensions/shell_window.h
diff --git a/chrome/browser/ui/extensions/shell_window.h b/chrome/browser/ui/extensions/shell_window.h
index cd4282276640ef6a6f8bf05e6477f542666832dd..386f431dfa5d4286a737a6fd1506c405da76a003 100644
--- a/chrome/browser/ui/extensions/shell_window.h
+++ b/chrome/browser/ui/extensions/shell_window.h
@@ -15,7 +15,6 @@
#include "content/public/browser/web_contents_delegate.h"
#include "content/public/browser/web_contents_observer.h"
-class Extension;
class ExtensionWindowController;
class GURL;
class Profile;
@@ -25,6 +24,10 @@ namespace content {
class WebContents;
}
+namespace extensions {
+class Extension;
+}
+
// ShellWindow is the type of window used by platform apps. Shell windows
// have a WebContents but none of the chrome of normal browser windows.
class ShellWindow : public content::NotificationObserver,
@@ -34,7 +37,7 @@ class ShellWindow : public content::NotificationObserver,
public BaseWindow {
public:
static ShellWindow* Create(Profile* profile,
- const Extension* extension,
+ const extensions::Extension* extension,
const GURL& url);
const SessionID& session_id() const { return session_id_; }
@@ -49,11 +52,11 @@ class ShellWindow : public content::NotificationObserver,
static const int kDefaultHeight = 384;
ShellWindow(Profile* profile,
- const Extension* extension,
+ const extensions::Extension* extension,
const GURL& url);
virtual ~ShellWindow();
- const Extension* extension() const { return extension_; }
+ const extensions::Extension* extension() const { return extension_; }
content::WebContents* web_contents() const { return web_contents_; }
private:
@@ -63,7 +66,7 @@ class ShellWindow : public content::NotificationObserver,
// Instantiates a platform-specific ShellWindow subclass (one implementation
// per platform). Public users of ShellWindow should use ShellWindow::Create.
static ShellWindow* CreateImpl(Profile* profile,
- const Extension* extension,
+ const extensions::Extension* extension,
const GURL& url);
// content::WebContentsObserver implementation.
@@ -92,7 +95,8 @@ class ShellWindow : public content::NotificationObserver,
void OnRequest(const ExtensionHostMsg_Request_Params& params);
Profile* profile_; // weak pointer - owned by ProfileManager.
- const Extension* extension_; // weak pointer - owned by ExtensionService.
+ // weak pointer - owned by ExtensionService.
+ const extensions::Extension* extension_;
const SessionID session_id_;
scoped_ptr<TabContentsWrapper> contents_wrapper_;
« no previous file with comments | « chrome/browser/ui/cocoa/location_bar/page_action_decoration.mm ('k') | chrome/browser/ui/extensions/shell_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698