Fix inspectable_web_contents_impl.h
This commit is contained in:
parent
8467fee8d8
commit
99e2dbd6e8
2 changed files with 8 additions and 5 deletions
|
@ -317,10 +317,11 @@ void InspectableWebContentsImpl::AgentHostClosed(
|
||||||
content::DevToolsAgentHost* agent_host, bool replaced) {
|
content::DevToolsAgentHost* agent_host, bool replaced) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void InspectableWebContentsImpl::AboutToNavigateRenderView(
|
void InspectableWebContentsImpl::AboutToNavigateRenderFrame(
|
||||||
content::RenderViewHost* render_view_host) {
|
content::RenderFrameHost* new_host) {
|
||||||
frontend_host_.reset(content::DevToolsFrontendHost::Create(
|
if (new_host->GetParent())
|
||||||
render_view_host, this));
|
return;
|
||||||
|
frontend_host_.reset(content::DevToolsFrontendHost::Create(new_host, this));
|
||||||
}
|
}
|
||||||
|
|
||||||
void InspectableWebContentsImpl::DidFinishLoad(content::RenderFrameHost* render_frame_host,
|
void InspectableWebContentsImpl::DidFinishLoad(content::RenderFrameHost* render_frame_host,
|
||||||
|
@ -355,6 +356,7 @@ bool InspectableWebContentsImpl::AddMessageToConsole(
|
||||||
bool InspectableWebContentsImpl::ShouldCreateWebContents(
|
bool InspectableWebContentsImpl::ShouldCreateWebContents(
|
||||||
content::WebContents* web_contents,
|
content::WebContents* web_contents,
|
||||||
int route_id,
|
int route_id,
|
||||||
|
int main_frame_route_id,
|
||||||
WindowContainerType window_container_type,
|
WindowContainerType window_container_type,
|
||||||
const base::string16& frame_name,
|
const base::string16& frame_name,
|
||||||
const GURL& target_url,
|
const GURL& target_url,
|
||||||
|
|
|
@ -104,7 +104,7 @@ class InspectableWebContentsImpl :
|
||||||
bool replaced) override;
|
bool replaced) override;
|
||||||
|
|
||||||
// content::WebContentsObserver:
|
// content::WebContentsObserver:
|
||||||
void AboutToNavigateRenderView(content::RenderViewHost* render_view_host) override;
|
void AboutToNavigateRenderFrame(content::RenderFrameHost* new_host) override;
|
||||||
void DidFinishLoad(content::RenderFrameHost* render_frame_host,
|
void DidFinishLoad(content::RenderFrameHost* render_frame_host,
|
||||||
const GURL& validated_url) override;
|
const GURL& validated_url) override;
|
||||||
void WebContentsDestroyed() override;
|
void WebContentsDestroyed() override;
|
||||||
|
@ -118,6 +118,7 @@ class InspectableWebContentsImpl :
|
||||||
bool ShouldCreateWebContents(
|
bool ShouldCreateWebContents(
|
||||||
content::WebContents* web_contents,
|
content::WebContents* web_contents,
|
||||||
int route_id,
|
int route_id,
|
||||||
|
int main_frame_route_id,
|
||||||
WindowContainerType window_container_type,
|
WindowContainerType window_container_type,
|
||||||
const base::string16& frame_name,
|
const base::string16& frame_name,
|
||||||
const GURL& target_url,
|
const GURL& target_url,
|
||||||
|
|
Loading…
Reference in a new issue