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

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

Issue 10407035: Extension/Platform App window isolation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add "ForFunction" 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_function.h
diff --git a/chrome/browser/extensions/extension_function.h b/chrome/browser/extensions/extension_function.h
index caef2401b9af31bf02351ab9da7fe4c1de61c578..42976065fa769f6c1019ff5ede06d4c5caf79393 100644
--- a/chrome/browser/extensions/extension_function.h
+++ b/chrome/browser/extensions/extension_function.h
@@ -140,7 +140,7 @@ class ExtensionFunction
bool has_callback() { return has_callback_; }
void set_include_incognito(bool include) { include_incognito_ = include; }
- bool include_incognito() { return include_incognito_; }
+ bool include_incognito() const { return include_incognito_; }
void set_user_gesture(bool user_gesture) { user_gesture_ = user_gesture; }
bool user_gesture() const { return user_gesture_; }
@@ -287,6 +287,11 @@ class UIThreadExtensionFunction : public ExtensionFunction {
// Same as above but uses ExtensionWindowList instead of BrowserList.
ExtensionWindowController* 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;
+
protected:
friend struct content::BrowserThread::DeleteOnThread<
content::BrowserThread::UI>;
« no previous file with comments | « chrome/browser/extensions/browser_extension_window_controller.cc ('k') | chrome/browser/extensions/extension_function.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698