Index: chrome/browser/extensions/extension_window_controller.h |
diff --git a/chrome/browser/extensions/extension_window_controller.h b/chrome/browser/extensions/extension_window_controller.h |
index 06db3c5b022fa620645c7a9fac02bd3288e826f0..24ef799938585316c1e55edd4392398f63841c28 100644 |
--- a/chrome/browser/extensions/extension_window_controller.h |
+++ b/chrome/browser/extensions/extension_window_controller.h |
@@ -21,6 +21,10 @@ namespace base { |
class DictionaryValue; |
} |
+namespace extensions { |
+class Extension; |
+} |
+ |
namespace gfx { |
class Rect; |
} |
@@ -34,11 +38,6 @@ class ExtensionWindowController { |
REASON_NOT_EDITABLE, |
}; |
- enum ProfileMatchType { |
- MATCH_NORMAL_ONLY, |
- MATCH_INCOGNITO |
- }; |
- |
ExtensionWindowController(BaseWindow* window, Profile* profile); |
virtual ~ExtensionWindowController(); |
@@ -46,9 +45,6 @@ class ExtensionWindowController { |
Profile* profile() const { return profile_; } |
- // Returns true if the window matches the profile. |
- bool MatchesProfile(Profile* profile, ProfileMatchType match_type) const; |
- |
// Return an id uniquely identifying the window. |
virtual int GetWindowId() const = 0; |
@@ -76,6 +72,11 @@ class ExtensionWindowController { |
// TODO(stevenjb): Temporary workaround. Eliminate this. |
virtual Browser* GetBrowser() const; |
+ // Extension/window visibility and ownership is window-specific, subclasses |
+ // need to define this behavior. |
+ virtual bool IsVisibleToExtension( |
+ const extensions::Extension* extension) const = 0; |
+ |
private: |
BaseWindow* window_; |
Profile* profile_; |