| 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 066b0b7ec03993a0b562b5a0bc4760bedc95839d..a81fe3f97a60f33a7ded2ac400f75bd85c8ba4be 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,11 @@ RenderProcessHost* WebContentsImpl::GetRenderProcessHost() const {
|
| return host ? host->GetProcess() : NULL;
|
| }
|
|
|
| +WebContentsInterfaceRegistry*
|
| +WebContentsImpl::GetWebContentsInterfaceRegistry() {
|
| + return &interfaces_;
|
| +}
|
| +
|
| RenderFrameHostImpl* WebContentsImpl::GetMainFrame() {
|
| return frame_tree_.root()->current_frame_host();
|
| }
|
|
|