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

Side by Side Diff: chrome/browser/safe_browsing/client_side_detection_host.cc

Issue 9600036: Move Render(View|Widget)Host and associated classes to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. Created 8 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/safe_browsing/client_side_detection_host.h" 5 #include "chrome/browser/safe_browsing/client_side_detection_host.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 NO_CLASSIFY_TOO_MANY_REPORTS, 209 NO_CLASSIFY_TOO_MANY_REPORTS,
210 NO_CLASSIFY_MAX); 210 NO_CLASSIFY_MAX);
211 return; 211 return;
212 } 212 }
213 213
214 // Everything checks out, so start classification. 214 // Everything checks out, so start classification.
215 // |web_contents_| is safe to call as we will be destructed 215 // |web_contents_| is safe to call as we will be destructed
216 // before it is. 216 // before it is.
217 VLOG(1) << "Instruct renderer to start phishing detection for URL: " 217 VLOG(1) << "Instruct renderer to start phishing detection for URL: "
218 << params_.url; 218 << params_.url;
219 RenderViewHost* rvh = web_contents_->GetRenderViewHost(); 219 content::RenderViewHost* rvh = web_contents_->GetRenderViewHost();
220 rvh->Send(new SafeBrowsingMsg_StartPhishingDetection( 220 rvh->Send(new SafeBrowsingMsg_StartPhishingDetection(
221 rvh->GetRoutingID(), params_.url)); 221 rvh->GetRoutingID(), params_.url));
222 } 222 }
223 223
224 // No need to protect |canceled_| with a lock because it is only read and 224 // No need to protect |canceled_| with a lock because it is only read and
225 // written by the UI thread. 225 // written by the UI thread.
226 bool canceled_; 226 bool canceled_;
227 content::FrameNavigateParams params_; 227 content::FrameNavigateParams params_;
228 WebContents* web_contents_; 228 WebContents* web_contents_;
229 ClientSideDetectionService* csd_service_; 229 ClientSideDetectionService* csd_service_;
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 if (sb_service_) { 474 if (sb_service_) {
475 sb_service_->RemoveObserver(this); 475 sb_service_->RemoveObserver(this);
476 } 476 }
477 sb_service_ = service; 477 sb_service_ = service;
478 if (sb_service_) { 478 if (sb_service_) {
479 sb_service_->AddObserver(this); 479 sb_service_->AddObserver(this);
480 } 480 }
481 } 481 }
482 482
483 } // namespace safe_browsing 483 } // namespace safe_browsing
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/browser_feature_extractor_unittest.cc ('k') | chrome/browser/safe_browsing/malware_details.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698