| Index: chrome/browser/safe_browsing/safe_browsing_navigation_observer.cc
|
| diff --git a/chrome/browser/safe_browsing/safe_browsing_navigation_observer.cc b/chrome/browser/safe_browsing/safe_browsing_navigation_observer.cc
|
| index c6625064e9304536d9234f243540580405d43161..dc296f1574d22d4afec82ab106e0d626b23654a4 100644
|
| --- a/chrome/browser/safe_browsing/safe_browsing_navigation_observer.cc
|
| +++ b/chrome/browser/safe_browsing/safe_browsing_navigation_observer.cc
|
| @@ -13,6 +13,7 @@
|
| #include "chrome/browser/sessions/session_tab_helper.h"
|
| #include "content/public/browser/navigation_handle.h"
|
| #include "content/public/browser/render_frame_host.h"
|
| +#include "content/public/browser/render_process_host.h"
|
| #include "content/public/browser/resource_request_details.h"
|
| #include "content/public/browser/web_contents.h"
|
| #include "content/public/common/resource_type.h"
|
| @@ -239,4 +240,19 @@ void SafeBrowsingNavigationObserver::WebContentsDestroyed() {
|
| // web_contents is null after this function.
|
| }
|
|
|
| +void SafeBrowsingNavigationObserver::DidOpenRequestedURL(
|
| + content::WebContents* new_contents,
|
| + content::RenderFrameHost* source_render_frame_host,
|
| + const GURL& url,
|
| + const content::Referrer& referrer,
|
| + WindowOpenDisposition disposition,
|
| + ui::PageTransition transition,
|
| + bool started_from_context_menu,
|
| + bool renderer_initiated) {
|
| + manager_->RecordNewWebContents(
|
| + web_contents(), source_render_frame_host->GetProcess()->GetID(),
|
| + source_render_frame_host->GetRoutingID(), url, new_contents,
|
| + renderer_initiated);
|
| +}
|
| +
|
| } // namespace safe_browsing
|
|
|