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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chromeos/network/certificate_pattern_matcher.h
diff --git a/chrome/browser/chromeos/cros/certificate_pattern_matcher.h b/chromeos/network/certificate_pattern_matcher.h
similarity index 58%
rename from chrome/browser/chromeos/cros/certificate_pattern_matcher.h
rename to chromeos/network/certificate_pattern_matcher.h
index 941260672755ce8f180f65c5dcf88be5ab9850ee..a79a548d06abf8fe237ab894f33fe1bf9399c4df 100644
--- a/chrome/browser/chromeos/cros/certificate_pattern_matcher.h
+++ b/chromeos/network/certificate_pattern_matcher.h
@@ -2,10 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_CHROMEOS_CROS_CERTIFICATE_PATTERN_MATCHER_H_
-#define CHROME_BROWSER_CHROMEOS_CROS_CERTIFICATE_PATTERN_MATCHER_H_
+#ifndef CHROMEOS_NETWORK_CERTIFICATE_PATTERN_MATCHER_H_
+#define CHROMEOS_NETWORK_CERTIFICATE_PATTERN_MATCHER_H_
#include "base/memory/ref_counted.h"
+#include "chromeos/chromeos_export.h"
namespace net {
class X509Certificate;
@@ -15,11 +16,15 @@ namespace chromeos {
class CertificatePattern;
+namespace certificate_pattern {
+
// Fetches the matching certificate that has the latest valid start date.
// Returns a NULL refptr if there is no such match.
-scoped_refptr<net::X509Certificate> GetCertificateMatch(
+CHROMEOS_EXPORT scoped_refptr<net::X509Certificate> GetCertificateMatch(
const CertificatePattern& pattern);
+} // namespace certificate_pattern
+
} // namespace chromeos
-#endif // CHROME_BROWSER_CHROMEOS_CROS_CERTIFICATE_PATTERN_MATCHER_H_
+#endif // CHROMEOS_NETWORK_CERTIFICATE_PATTERN_MATCHER_H_

Powered by Google App Engine
This is Rietveld 408576698