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

Side by Side Diff: chromeos/network/certificate_pattern_matcher.h

Issue 14566009: Add NetworkConnectionHandler class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Feedback from gauravsh Created 7 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_CROS_CERTIFICATE_PATTERN_MATCHER_H_ 5 #ifndef CHROMEOS_NETWORK_CERTIFICATE_PATTERN_MATCHER_H_
6 #define CHROME_BROWSER_CHROMEOS_CROS_CERTIFICATE_PATTERN_MATCHER_H_ 6 #define CHROMEOS_NETWORK_CERTIFICATE_PATTERN_MATCHER_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "chromeos/chromeos_export.h"
9 10
10 namespace net { 11 namespace net {
11 class X509Certificate; 12 class X509Certificate;
12 } 13 }
13 14
14 namespace chromeos { 15 namespace chromeos {
15 16
16 class CertificatePattern; 17 class CertificatePattern;
17 18
19 namespace certificate_pattern {
20
18 // Fetches the matching certificate that has the latest valid start date. 21 // Fetches the matching certificate that has the latest valid start date.
19 // Returns a NULL refptr if there is no such match. 22 // Returns a NULL refptr if there is no such match.
20 scoped_refptr<net::X509Certificate> GetCertificateMatch( 23 CHROMEOS_EXPORT scoped_refptr<net::X509Certificate> GetCertificateMatch(
21 const CertificatePattern& pattern); 24 const CertificatePattern& pattern);
22 25
26 } // namespace certificate_pattern
27
23 } // namespace chromeos 28 } // namespace chromeos
24 29
25 #endif // CHROME_BROWSER_CHROMEOS_CROS_CERTIFICATE_PATTERN_MATCHER_H_ 30 #endif // CHROMEOS_NETWORK_CERTIFICATE_PATTERN_MATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698