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

Side by Side Diff: chrome/browser/chromeos/policy/policy_cert_verifier.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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_POLICY_POLICY_CERT_VERIFIER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_POLICY_CERT_VERIFIER_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_POLICY_CERT_VERIFIER_H_ 6 #define CHROME_BROWSER_CHROMEOS_POLICY_POLICY_CERT_VERIFIER_H_
7 7
8 #include <memory>
8 #include <vector> 9 #include <vector>
9 10
10 #include "base/callback.h" 11 #include "base/callback.h"
11 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
12 #include "base/macros.h" 13 #include "base/macros.h"
13 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_ptr.h"
15 #include "net/base/completion_callback.h" 15 #include "net/base/completion_callback.h"
16 #include "net/cert/cert_trust_anchor_provider.h" 16 #include "net/cert/cert_trust_anchor_provider.h"
17 #include "net/cert/cert_verifier.h" 17 #include "net/cert/cert_verifier.h"
18 18
19 namespace net { 19 namespace net {
20 class CertVerifyProc; 20 class CertVerifyProc;
21 class CertVerifyResult; 21 class CertVerifyResult;
22 class X509Certificate; 22 class X509Certificate;
23 typedef std::vector<scoped_refptr<X509Certificate> > CertificateList; 23 typedef std::vector<scoped_refptr<X509Certificate> > CertificateList;
24 } 24 }
(...skipping 22 matching lines...) Expand all
47 47
48 // CertVerifier: 48 // CertVerifier:
49 // Note: |callback| can be null. 49 // Note: |callback| can be null.
50 int Verify(net::X509Certificate* cert, 50 int Verify(net::X509Certificate* cert,
51 const std::string& hostname, 51 const std::string& hostname,
52 const std::string& ocsp_response, 52 const std::string& ocsp_response,
53 int flags, 53 int flags,
54 net::CRLSet* crl_set, 54 net::CRLSet* crl_set,
55 net::CertVerifyResult* verify_result, 55 net::CertVerifyResult* verify_result,
56 const net::CompletionCallback& callback, 56 const net::CompletionCallback& callback,
57 scoped_ptr<Request>* out_req, 57 std::unique_ptr<Request>* out_req,
58 const net::BoundNetLog& net_log) override; 58 const net::BoundNetLog& net_log) override;
59 59
60 bool SupportsOCSPStapling() override; 60 bool SupportsOCSPStapling() override;
61 61
62 // CertTrustAnchorProvider: 62 // CertTrustAnchorProvider:
63 const net::CertificateList& GetAdditionalTrustAnchors() override; 63 const net::CertificateList& GetAdditionalTrustAnchors() override;
64 64
65 private: 65 private:
66 net::CertificateList trust_anchors_; 66 net::CertificateList trust_anchors_;
67 base::Closure anchor_used_callback_; 67 base::Closure anchor_used_callback_;
68 scoped_ptr<CertVerifier> delegate_; 68 std::unique_ptr<CertVerifier> delegate_;
69 69
70 DISALLOW_COPY_AND_ASSIGN(PolicyCertVerifier); 70 DISALLOW_COPY_AND_ASSIGN(PolicyCertVerifier);
71 }; 71 };
72 72
73 } // namespace policy 73 } // namespace policy
74 74
75 #endif // CHROME_BROWSER_CHROMEOS_POLICY_POLICY_CERT_VERIFIER_H_ 75 #endif // CHROME_BROWSER_CHROMEOS_POLICY_POLICY_CERT_VERIFIER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/policy/policy_cert_service_factory.cc ('k') | chrome/browser/chromeos/policy/policy_cert_verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698