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

Unified Diff: net/cert/crl_set_storage.h

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « net/cert/crl_set.cc ('k') | net/cert/crl_set_storage.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/crl_set_storage.h
diff --git a/net/cert/crl_set_storage.h b/net/cert/crl_set_storage.h
deleted file mode 100644
index dd15796aa5be5daa0ac2b4e22b874d210f42607a..0000000000000000000000000000000000000000
--- a/net/cert/crl_set_storage.h
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef NET_CERT_CRL_SET_STORAGE_H_
-#define NET_CERT_CRL_SET_STORAGE_H_
-
-#include <string>
-#include <utility>
-#include <vector>
-
-#include "base/strings/string_piece.h"
-#include "net/base/net_export.h"
-#include "net/cert/crl_set.h"
-
-namespace base {
-class DictionaryValue;
-}
-
-namespace net {
-
-// Static helpers to save and load CRLSet.
-class NET_EXPORT CRLSetStorage {
- public:
- // Parse parses the bytes in |data| and, on success, puts a new CRLSet in
- // |out_crl_set| and returns true.
- static bool Parse(base::StringPiece data,
- scoped_refptr<CRLSet>* out_crl_set);
-
- // ApplyDelta returns a new CRLSet in |out_crl_set| that is the result of
- // updating |in_crl_set| with the delta information in |delta_bytes|.
- static bool ApplyDelta(const CRLSet* in_crl_set,
- const base::StringPiece& delta_bytes,
- scoped_refptr<CRLSet>* out_crl_set);
-
- // GetIsDeltaUpdate extracts the header from |bytes|, sets *is_delta to
- // whether |bytes| is a delta CRL set or not and returns true. In the event
- // of a parse error, it returns false.
- static bool GetIsDeltaUpdate(const base::StringPiece& bytes, bool *is_delta);
-
- // Serialize returns a string of bytes suitable for passing to Parse. Parsing
- // and serializing a CRLSet is a lossless operation - the resulting bytes
- // will be equal.
- static std::string Serialize(const CRLSet* crl_set);
-
- private:
- // CopyBlockedSPKIsFromHeader sets |blocked_spkis_| to the list of values
- // from "BlockedSPKIs" in |header_dict|.
- static bool CopyBlockedSPKIsFromHeader(CRLSet* crl_set,
- base::DictionaryValue* header_dict);
-};
-
-} // namespace net
-
-#endif // NET_CERT_CRL_SET_STORAGE_H_
« no previous file with comments | « net/cert/crl_set.cc ('k') | net/cert/crl_set_storage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698