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

Side by Side Diff: chrome/browser/safe_browsing/incident_reporting/variations_seed_signature_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_VARIATIONS_SEED_SIGNATUR E_ANALYZER_H_ 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_VARIATIONS_SEED_SIGNATUR E_ANALYZER_H_
6 #define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_VARIATIONS_SEED_SIGNATUR E_ANALYZER_H_ 6 #define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_VARIATIONS_SEED_SIGNATUR E_ANALYZER_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include <memory>
9
9 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
10 11
11 namespace safe_browsing { 12 namespace safe_browsing {
12 13
13 class IncidentReceiver; 14 class IncidentReceiver;
14 15
15 // Registers a process-wide analysis with the incident reporting service that 16 // Registers a process-wide analysis with the incident reporting service that
16 // will verify the variations seed signature. 17 // will verify the variations seed signature.
17 void RegisterVariationsSeedSignatureAnalysis(); 18 void RegisterVariationsSeedSignatureAnalysis();
18 19
19 // Callback to pass to the incident reporting service. The incident reporting 20 // Callback to pass to the incident reporting service. The incident reporting
20 // service will verify if the variations seed signature is invalid. 21 // service will verify if the variations seed signature is invalid.
21 void VerifyVariationsSeedSignature( 22 void VerifyVariationsSeedSignature(
22 scoped_ptr<IncidentReceiver> incident_receiver); 23 std::unique_ptr<IncidentReceiver> incident_receiver);
23 24
24 } // namespace safe_browsing 25 } // namespace safe_browsing
25 26
26 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_VARIATIONS_SEED_SIGNA TURE_ANALYZER_H_ 27 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_VARIATIONS_SEED_SIGNA TURE_ANALYZER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698