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

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

Issue 10735061: Move ExtensionWindowController and related into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Latest master for cq Created 8 years, 5 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_function.h
diff --git a/chrome/browser/extensions/extension_function.h b/chrome/browser/extensions/extension_function.h
index 6b050cca2793baf9b1c783108cb3a8138f40ca34..0698d3bcbc609a373848990bed87a7901045514d 100644
--- a/chrome/browser/extensions/extension_function.h
+++ b/chrome/browser/extensions/extension_function.h
@@ -26,7 +26,6 @@ class Browser;
class ChromeRenderMessageFilter;
class ExtensionFunction;
class ExtensionFunctionDispatcher;
-class ExtensionWindowController;
class UIThreadExtensionFunction;
class IOThreadExtensionFunction;
class Profile;
@@ -41,6 +40,10 @@ namespace content {
class RenderViewHost;
}
+namespace extensions {
+class WindowController;
+}
+
#define EXTENSION_FUNCTION_VALIDATE(test) do { \
if (!(test)) { \
bad_message_ = true; \
@@ -286,13 +289,13 @@ class UIThreadExtensionFunction : public ExtensionFunction {
// TODO(stevenjb): Replace this with GetExtensionWindowController().
Browser* GetCurrentBrowser();
- // Same as above but uses ExtensionWindowList instead of BrowserList.
- ExtensionWindowController* GetExtensionWindowController();
+ // Same as above but uses WindowControllerList instead of BrowserList.
+ extensions::WindowController* GetExtensionWindowController();
// Returns true if this function (and the profile and extension that it was
// invoked from) can operate on the window wrapped by |window_controller|.
bool CanOperateOnWindow(
- const ExtensionWindowController* window_controller) const;
+ const extensions::WindowController* window_controller) const;
protected:
friend struct content::BrowserThread::DeleteOnThread<
« no previous file with comments | « chrome/browser/extensions/extension_browser_event_router.cc ('k') | chrome/browser/extensions/extension_function.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698