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

Unified Diff: chrome/browser/safe_browsing/incident_reporting/resource_request_detector.h

Issue 1870003002: Convert //chrome/browser/safe_browsing from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and address comments Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/safe_browsing/incident_reporting/resource_request_detector.h
diff --git a/chrome/browser/safe_browsing/incident_reporting/resource_request_detector.h b/chrome/browser/safe_browsing/incident_reporting/resource_request_detector.h
index db10209c4cc010772cc5c3fbaef432ef2da4c2e7..bac5cb9007d4cf92d8da3de68a5e86ef14d58b53 100644
--- a/chrome/browser/safe_browsing/incident_reporting/resource_request_detector.h
+++ b/chrome/browser/safe_browsing/incident_reporting/resource_request_detector.h
@@ -5,9 +5,10 @@
#ifndef CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_RESOURCE_REQUEST_DETECTOR_H_
#define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_RESOURCE_REQUEST_DETECTOR_H_
+#include <memory>
+
#include "base/containers/hash_tables.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "chrome/browser/safe_browsing/incident_reporting/incident_receiver.h"
#include "components/safe_browsing_db/database_manager.h"
@@ -27,7 +28,7 @@ class ResourceRequestDetector {
public:
ResourceRequestDetector(
scoped_refptr<SafeBrowsingDatabaseManager> sb_database_manager,
- scoped_ptr<IncidentReceiver> incident_receiver);
+ std::unique_ptr<IncidentReceiver> incident_receiver);
~ResourceRequestDetector();
// Analyzes the |request| and triggers an incident report on suspicious
@@ -42,10 +43,10 @@ class ResourceRequestDetector {
void ReportIncidentOnUIThread(
int render_process_id,
int render_frame_id,
- scoped_ptr<ClientIncidentReport_IncidentData_ResourceRequestIncident>
+ std::unique_ptr<ClientIncidentReport_IncidentData_ResourceRequestIncident>
incident_data);
- scoped_ptr<IncidentReceiver> incident_receiver_;
+ std::unique_ptr<IncidentReceiver> incident_receiver_;
scoped_refptr<SafeBrowsingDatabaseManager> database_manager_;
bool allow_null_profile_for_testing_;

Powered by Google App Engine
This is Rietveld 408576698