Index: content/browser/web_contents/web_contents_impl.cc |
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc |
index df79088aa084d801e41cbbed7f25ed4c8afd0d16..633fceba47716d92f7ac07f40205bece024f991f 100644 |
--- a/content/browser/web_contents/web_contents_impl.cc |
+++ b/content/browser/web_contents/web_contents_impl.cc |
@@ -105,6 +105,7 @@ |
#include "content/public/browser/storage_partition.h" |
#include "content/public/browser/user_metrics.h" |
#include "content/public/browser/web_contents_delegate.h" |
+#include "content/public/browser/web_contents_interface_registry.h" |
#include "content/public/common/bindings_policy.h" |
#include "content/public/common/browser_plugin_guest_mode.h" |
#include "content/public/common/browser_side_navigation_policy.h" |
@@ -389,6 +390,7 @@ WebContentsImpl::WebContentsImpl(BrowserContext* browser_context) |
: delegate_(NULL), |
controller_(this, browser_context), |
render_view_host_delegate_view_(NULL), |
+ interfaces_(this), |
created_with_opener_(false), |
frame_tree_(new NavigatorImpl(&controller_, this), |
this, |
@@ -819,6 +821,10 @@ RenderProcessHost* WebContentsImpl::GetRenderProcessHost() const { |
return host ? host->GetProcess() : NULL; |
} |
+WebContentsInterfaceRegistry* WebContentsImpl::GetInterfaces() { |
+ return &interfaces_; |
+} |
+ |
RenderFrameHostImpl* WebContentsImpl::GetMainFrame() { |
return frame_tree_.root()->current_frame_host(); |
} |