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

Side by Side Diff: components/certificate_reporting/error_report.h

Issue 1921973002: Convert //components/[a-e]* from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 COMPONENTS_CERTIFICATE_REPORTING_CERTIFICATE_ERROR_REPORT_H_ 5 #ifndef COMPONENTS_CERTIFICATE_REPORTING_CERTIFICATE_ERROR_REPORT_H_
6 #define COMPONENTS_CERTIFICATE_REPORTING_CERTIFICATE_ERROR_REPORT_H_ 6 #define COMPONENTS_CERTIFICATE_REPORTING_CERTIFICATE_ERROR_REPORT_H_
7 7
8 #include <memory>
8 #include <string> 9 #include <string>
9 10
10 #include "base/memory/scoped_ptr.h"
11 11
12 namespace net { 12 namespace net {
13 class SSLInfo; 13 class SSLInfo;
14 } // namespace net 14 } // namespace net
15 15
16 namespace certificate_reporting { 16 namespace certificate_reporting {
17 17
18 class CertLoggerRequest; 18 class CertLoggerRequest;
19 19
20 // This class builds and serializes reports for invalid SSL certificate 20 // This class builds and serializes reports for invalid SSL certificate
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 bool Serialize(std::string* output) const; 58 bool Serialize(std::string* output) const;
59 59
60 void SetInterstitialInfo(const InterstitialReason& interstitial_reason, 60 void SetInterstitialInfo(const InterstitialReason& interstitial_reason,
61 const ProceedDecision& proceed_decision, 61 const ProceedDecision& proceed_decision,
62 const Overridable& overridable); 62 const Overridable& overridable);
63 63
64 // Gets the hostname to which this report corresponds. 64 // Gets the hostname to which this report corresponds.
65 const std::string& hostname() const; 65 const std::string& hostname() const;
66 66
67 private: 67 private:
68 scoped_ptr<CertLoggerRequest> cert_report_; 68 std::unique_ptr<CertLoggerRequest> cert_report_;
69 }; 69 };
70 70
71 } // namespace certificate_reporting 71 } // namespace certificate_reporting
72 72
73 #endif // COMPONENTS_CERTIFICATE_REPORTING_CERTIFICATE_ERROR_REPORT_H_ 73 #endif // COMPONENTS_CERTIFICATE_REPORTING_CERTIFICATE_ERROR_REPORT_H_
OLDNEW
« no previous file with comments | « components/captive_portal/captive_portal_detector_unittest.cc ('k') | components/certificate_reporting/error_reporter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698