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

Side by Side Diff: chrome/browser/chromeos/certificate_provider/certificate_provider.h

Issue 1870793002: Convert //chrome/browser/chromeos from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 CHROME_BROWSER_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_PROVIDER_H_
6 #define CHROME_BROWSER_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_PROVIDER_H_ 6 #define CHROME_BROWSER_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_PROVIDER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "net/cert/x509_certificate.h" 12 #include "net/cert/x509_certificate.h"
13 13
14 namespace chromeos { 14 namespace chromeos {
15 15
16 class CertificateProvider { 16 class CertificateProvider {
17 public: 17 public:
18 CertificateProvider() {} 18 CertificateProvider() {}
19 virtual ~CertificateProvider() {} 19 virtual ~CertificateProvider() {}
20 20
21 virtual void GetCertificates( 21 virtual void GetCertificates(
22 const base::Callback<void(const net::CertificateList&)>& callback) = 0; 22 const base::Callback<void(const net::CertificateList&)>& callback) = 0;
23 23
24 virtual scoped_ptr<CertificateProvider> Copy() = 0; 24 virtual std::unique_ptr<CertificateProvider> Copy() = 0;
25 25
26 private: 26 private:
27 DISALLOW_COPY_AND_ASSIGN(CertificateProvider); 27 DISALLOW_COPY_AND_ASSIGN(CertificateProvider);
28 }; 28 };
29 29
30 } // namespace chromeos 30 } // namespace chromeos
31 31
32 #endif // CHROME_BROWSER_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_PROVIDER_H_ 32 #endif // CHROME_BROWSER_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698