Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Side by Side Diff: content/renderer/render_frame_impl.cc

Issue 1162123002: Using render IPC to record RAPPOR metric ContentSettings.MixedScript.RanMixedScript (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | tools/metrics/rappor/rappor.xml » ('j') | tools/metrics/rappor/rappor.xml » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/render_frame_impl.h" 5 #include "content/renderer/render_frame_impl.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 3380 matching lines...) Expand 10 before | Expand all | Expand 10 after
3391 3391
3392 void RenderFrameImpl::didRunInsecureContent( 3392 void RenderFrameImpl::didRunInsecureContent(
3393 blink::WebLocalFrame* frame, 3393 blink::WebLocalFrame* frame,
3394 const blink::WebSecurityOrigin& origin, 3394 const blink::WebSecurityOrigin& origin,
3395 const blink::WebURL& target) { 3395 const blink::WebURL& target) {
3396 DCHECK(!frame_ || frame_ == frame); 3396 DCHECK(!frame_ || frame_ == frame);
3397 render_view_->Send(new ViewHostMsg_DidRunInsecureContent( 3397 render_view_->Send(new ViewHostMsg_DidRunInsecureContent(
3398 render_view_->GetRoutingID(), 3398 render_view_->GetRoutingID(),
3399 origin.toString().utf8(), 3399 origin.toString().utf8(),
3400 target)); 3400 target));
3401 GetContentClient()->renderer()->RecordRapporURL(
3402 "ContentSettings.MixedScript.RanMixedScript",
3403 GURL(origin.toString().utf8()));
3401 } 3404 }
3402 3405
3403 void RenderFrameImpl::didAbortLoading(blink::WebLocalFrame* frame) { 3406 void RenderFrameImpl::didAbortLoading(blink::WebLocalFrame* frame) {
3404 DCHECK(!frame_ || frame_ == frame); 3407 DCHECK(!frame_ || frame_ == frame);
3405 #if defined(ENABLE_PLUGINS) 3408 #if defined(ENABLE_PLUGINS)
3406 if (frame != render_view_->webview()->mainFrame()) 3409 if (frame != render_view_->webview()->mainFrame())
3407 return; 3410 return;
3408 PluginChannelHost::Broadcast( 3411 PluginChannelHost::Broadcast(
3409 new PluginHostMsg_DidAbortLoading(render_view_->GetRoutingID())); 3412 new PluginHostMsg_DidAbortLoading(render_view_->GetRoutingID()));
3410 #endif 3413 #endif
(...skipping 1506 matching lines...) Expand 10 before | Expand all | Expand 10 after
4917 #elif defined(ENABLE_BROWSER_CDMS) 4920 #elif defined(ENABLE_BROWSER_CDMS)
4918 cdm_manager_, 4921 cdm_manager_,
4919 #endif 4922 #endif
4920 this); 4923 this);
4921 } 4924 }
4922 4925
4923 return cdm_factory_; 4926 return cdm_factory_;
4924 } 4927 }
4925 4928
4926 } // namespace content 4929 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | tools/metrics/rappor/rappor.xml » ('j') | tools/metrics/rappor/rappor.xml » ('J')

Powered by Google App Engine
This is Rietveld 408576698