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

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

Issue 10407035: Extension/Platform App window isolation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Aura build 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/extensions/extension_window_list.h
diff --git a/chrome/browser/extensions/extension_window_list.h b/chrome/browser/extensions/extension_window_list.h
index 5f89e828b1a0eb5bed83d1e62329a93de5a200b5..95ae1059c0e7acb4249a02bbee033779605b285a 100644
--- a/chrome/browser/extensions/extension_window_list.h
+++ b/chrome/browser/extensions/extension_window_list.h
@@ -13,12 +13,12 @@
#include "chrome/browser/extensions/extension_window_controller.h"
class Profile;
+class UIThreadExtensionFunction;
// Class to maintain a list of ExtensionWindowControllers.
class ExtensionWindowList {
public:
typedef std::list<ExtensionWindowController*> WindowList;
- typedef ExtensionWindowController::ProfileMatchType ProfileMatchType;
ExtensionWindowList();
~ExtensionWindowList();
@@ -26,14 +26,15 @@ class ExtensionWindowList {
void AddExtensionWindow(ExtensionWindowController* window);
void RemoveExtensionWindow(ExtensionWindowController* window);
- // Returns a window matching the profile and id, or NULL.
- ExtensionWindowController* FindWindowById(Profile* profile,
- ProfileMatchType match_type,
- int id) const;
+ // Returns a window matching the context the function was invoked in.
+ ExtensionWindowController* FindWindowById(
+ const UIThreadExtensionFunction* function,
+ int id) const;
- // Returns the focused or last added window matching the profile, or NULL.
- ExtensionWindowController* CurrentWindow(Profile* profile,
- ProfileMatchType match_type) const;
+ // Returns the focused or last added window matching the context the function
+ // was invoked in.
+ ExtensionWindowController* CurrentWindow(
+ const UIThreadExtensionFunction* function) const;
const WindowList& windows() const { return windows_; }

Powered by Google App Engine
This is Rietveld 408576698