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

Unified Diff: extensions/renderer/extension_frame_helper.h

Issue 1150683007: [Extensions] Use document url (not top url) for tab-specific permissions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « extensions/common/permissions/permissions_data.cc ('k') | extensions/renderer/extension_frame_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/extension_frame_helper.h
diff --git a/extensions/renderer/extension_frame_helper.h b/extensions/renderer/extension_frame_helper.h
index ecb5f29dd716259fc4bc4ae36c7073759892d93b..b28458f2d063db5b74ea3abcb9b4dd250d76e190 100644
--- a/extensions/renderer/extension_frame_helper.h
+++ b/extensions/renderer/extension_frame_helper.h
@@ -26,6 +26,10 @@ class ExtensionFrameHelper
Dispatcher* extension_dispatcher);
~ExtensionFrameHelper() override;
+ const std::string& tab_extension_owner_id() const {
+ return tab_extension_owner_id_;
+ }
+
private:
// RenderFrameObserver implementation.
void DidCreateScriptContext(v8::Local<v8::Context>,
@@ -47,6 +51,12 @@ class ExtensionFrameHelper
const Message& message);
void OnExtensionDispatchOnDisconnect(int port_id,
const std::string& error_message);
+ void OnSetTabExtensionOwner(const std::string& extension_id);
+
+ // The id of the extension that "owns" the tab if this is a chrome-extension
+ // page. If it's not a chrome-extension page, |tab_extension_owner_id_| is
+ // empty.
+ std::string tab_extension_owner_id_;
Dispatcher* extension_dispatcher_;
« no previous file with comments | « extensions/common/permissions/permissions_data.cc ('k') | extensions/renderer/extension_frame_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698