summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/extensions/bindings_utils.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/renderer/extensions/bindings_utils.cc')
-rw-r--r--chrome/renderer/extensions/bindings_utils.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/chrome/renderer/extensions/bindings_utils.cc b/chrome/renderer/extensions/bindings_utils.cc
index 2ddbefa..83ddeee 100644
--- a/chrome/renderer/extensions/bindings_utils.cc
+++ b/chrome/renderer/extensions/bindings_utils.cc
@@ -56,6 +56,19 @@ v8::Handle<v8::Value> ExtensionBase::GetChromeHidden(
return hidden;
}
+ContextInfo::ContextInfo(v8::Persistent<v8::Context> context,
+ const std::string& extension_id,
+ WebKit::WebFrame* parent_frame,
+ RenderView* render_view)
+ : context(context),
+ extension_id(extension_id),
+ parent_frame(parent_frame),
+ render_view(render_view),
+ num_connected_events(0) {
+}
+
+ContextInfo::~ContextInfo() {}
+
ContextList& GetContexts() {
return Singleton<SingletonData>::get()->contexts;
}
@@ -87,6 +100,13 @@ ContextInfo* GetInfoForCurrentContext() {
return context_iter->get();
}
+PendingRequest::PendingRequest(v8::Persistent<v8::Context> context,
+ const std::string& name)
+ : context(context), name(name) {
+}
+
+PendingRequest::~PendingRequest() {}
+
ContextList::iterator FindContext(v8::Handle<v8::Context> context) {
ContextList& all_contexts = GetContexts();