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

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 tests 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..412c12e91f61c712411030f53f72743eab530f89 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,14 @@ 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,
+ // Returns a window matching the context the function was invoked in.
+ ExtensionWindowController* FindWindowById(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(UIThreadExtensionFunction* function)
+ const;
const WindowList& windows() const { return windows_; }

Powered by Google App Engine
This is Rietveld 408576698