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

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

Issue 155309: Chrome-side of fixes for content-script messaging. (Closed)
Patch Set: temporary webkit hack Created 11 years, 5 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 | « no previous file | chrome/renderer/extensions/event_bindings.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/extensions/bindings_utils.h
diff --git a/chrome/renderer/extensions/bindings_utils.h b/chrome/renderer/extensions/bindings_utils.h
index 2e8935a5e4b24c757b0ac9f37e24fe33aaaf3f37..2c81b0cb6fd99ae5565a6261a05c750d6238a782 100644
--- a/chrome/renderer/extensions/bindings_utils.h
+++ b/chrome/renderer/extensions/bindings_utils.h
@@ -61,9 +61,15 @@ struct ContextInfo {
v8::Persistent<v8::Context> context;
std::string extension_id; // empty if the context is not an extension
+ // If this context is a content script, parent will be the frame that it
+ // was injected in. This is empty if the context is not a content script.
+ v8::Persistent<v8::Context> parent_context;
+
ContextInfo(v8::Persistent<v8::Context> context,
- const std::string& extension_id)
- : context(context), extension_id(extension_id) {}
+ const std::string& extension_id,
+ v8::Persistent<v8::Context> parent_context)
+ : context(context), extension_id(extension_id),
+ parent_context(parent_context) {}
};
typedef std::list< linked_ptr<ContextInfo> > ContextList;
« no previous file with comments | « no previous file | chrome/renderer/extensions/event_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698