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

Unified Diff: chrome/renderer/extensions/extension_process_bindings.h

Issue 3210007: Add support for a "split" incognito behavior for extensions. (Closed)
Patch Set: latest Created 10 years, 4 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/renderer/extensions/extension_process_bindings.h
diff --git a/chrome/renderer/extensions/extension_process_bindings.h b/chrome/renderer/extensions/extension_process_bindings.h
index d64b425556e97d73059d927aa41578f2241a01a9..8202c46c32ae8c331cec424f2b79e3758ab910d1 100644
--- a/chrome/renderer/extensions/extension_process_bindings.h
+++ b/chrome/renderer/extensions/extension_process_bindings.h
@@ -49,10 +49,12 @@ class ExtensionProcessBindings {
// Sets whether incognito is enabled for a particular extension.
static void SetIncognitoEnabled(const std::string& extension_id,
- bool enabled);
+ bool enabled,
+ bool incognito_split_mode);
- // Checks whether incognito is enabled for a particular extension.
- static bool HasIncognitoEnabled(const std::string& extension_id);
+ // Checks whether the given extension can see events/data from another
+ // profile (normal to incognito or vice versa).
+ static bool AllowCrossProfile(const std::string& extension_id);
// Check if the extension in the currently running context has permission to
// access the given extension function. Must be called with a valid V8
« no previous file with comments | « chrome/renderer/extensions/event_bindings.cc ('k') | chrome/renderer/extensions/extension_process_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698