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

Unified Diff: components/packed_ct_ev_whitelist/packed_ct_ev_whitelist.h

Issue 811353002: Move CT EV white list packaging API from chrome/ to components/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed missed nit Created 5 years, 11 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: components/packed_ct_ev_whitelist/packed_ct_ev_whitelist.h
diff --git a/chrome/browser/net/packed_ct_ev_whitelist.h b/components/packed_ct_ev_whitelist/packed_ct_ev_whitelist.h
similarity index 92%
rename from chrome/browser/net/packed_ct_ev_whitelist.h
rename to components/packed_ct_ev_whitelist/packed_ct_ev_whitelist.h
index 6520f3ffff7ffe68e0a40298d703dbbece664a21..f3accc47138ffd974fa3e2e0df489ad16d0f65b5 100644
--- a/chrome/browser/net/packed_ct_ev_whitelist.h
+++ b/components/packed_ct_ev_whitelist/packed_ct_ev_whitelist.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_NET_PACKED_CT_EV_WHITELIST_H_
-#define CHROME_BROWSER_NET_PACKED_CT_EV_WHITELIST_H_
+#ifndef COMPONENTS_PACKED_CT_EV_WHITELIST_PACKED_CT_EV_WHITELIST_H_
+#define COMPONENTS_PACKED_CT_EV_WHITELIST_PACKED_CT_EV_WHITELIST_H_
#include <stdint.h>
@@ -18,6 +18,8 @@ namespace base {
class FilePath;
}
+namespace packed_ct_ev_whitelist {
+
// An implementation of the EVCertsWhitelist that gets its data packed using
// Golomb coding to encode the difference between subsequent hash values.
// Format of the packed list:
@@ -82,4 +84,6 @@ class PackedEVCertsWhitelist : public net::ct::EVCertsWhitelist {
// To set the new whitelist, this function dispatches a task to the IO thread.
void SetEVCertsWhitelist(scoped_refptr<net::ct::EVCertsWhitelist> whitelist);
-#endif // CHROME_BROWSER_NET_PACKED_CT_EV_WHITELIST_H_
+} // namespace packed_ct_ev_whitelist
+
+#endif // COMPONENTS_PACKED_CT_EV_WHITELIST_PACKED_CT_EV_WHITELIST_H_

Powered by Google App Engine
This is Rietveld 408576698