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

Side by Side Diff: chrome/browser/safe_browsing/incident_reporting/module_load_analyzer.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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_MODULE_LOAD_ANALYZER_H_ 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_MODULE_LOAD_ANALYZER_H_
6 #define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_MODULE_LOAD_ANALYZER_H_ 6 #define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_MODULE_LOAD_ANALYZER_H_
7 7
8 #include <memory>
9
8 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h"
10 11
11 namespace safe_browsing { 12 namespace safe_browsing {
12 13
13 class IncidentReceiver; 14 class IncidentReceiver;
14 class SafeBrowsingDatabaseManager; 15 class SafeBrowsingDatabaseManager;
15 16
16 // Registers a process-wide analysis with the incident reporting service that 17 // Registers a process-wide analysis with the incident reporting service that
17 // will examine modules loaded in the process. 18 // will examine modules loaded in the process.
18 void RegisterModuleLoadAnalysis( 19 void RegisterModuleLoadAnalysis(
19 const scoped_refptr<SafeBrowsingDatabaseManager>& database_manager); 20 const scoped_refptr<SafeBrowsingDatabaseManager>& database_manager);
20 21
21 // Callback to pass to the incident reporting service. The incident reporting 22 // Callback to pass to the incident reporting service. The incident reporting
22 // service will decide when to start the analysis. 23 // service will decide when to start the analysis.
23 void VerifyModuleLoadState( 24 void VerifyModuleLoadState(
24 const scoped_refptr<SafeBrowsingDatabaseManager>& database_manager, 25 const scoped_refptr<SafeBrowsingDatabaseManager>& database_manager,
25 scoped_ptr<IncidentReceiver> incident_receiver); 26 std::unique_ptr<IncidentReceiver> incident_receiver);
26 27
27 } // namespace safe_browsing 28 } // namespace safe_browsing
28 29
29 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_MODULE_LOAD_ANALYZER_ H_ 30 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_MODULE_LOAD_ANALYZER_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698