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

Unified Diff: net/quic/crypto/common_cert_set.h

Issue 2193073003: Move shared files in net/quic/ into net/quic/core/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: io_thread_unittest.cc Created 4 years, 5 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/quic/crypto/channel_id_test.cc ('k') | net/quic/crypto/common_cert_set.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/crypto/common_cert_set.h
diff --git a/net/quic/crypto/common_cert_set.h b/net/quic/crypto/common_cert_set.h
deleted file mode 100644
index 6d152054cc49abf9f9a9b36458cbbafee426cf4d..0000000000000000000000000000000000000000
--- a/net/quic/crypto/common_cert_set.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (c) 2013 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_QUIC_CRYPTO_COMMON_CERT_SET_H_
-#define NET_QUIC_CRYPTO_COMMON_CERT_SET_H_
-
-#include <cstdint>
-
-#include "base/compiler_specific.h"
-#include "base/strings/string_piece.h"
-#include "net/base/net_export.h"
-#include "net/quic/crypto/crypto_protocol.h"
-
-namespace net {
-
-// CommonCertSets is an interface to an object that contains a number of common
-// certificate sets and can match against them.
-class NET_EXPORT_PRIVATE CommonCertSets {
- public:
- virtual ~CommonCertSets();
-
- // GetInstanceQUIC returns the standard QUIC common certificate sets.
- static const CommonCertSets* GetInstanceQUIC();
-
- // GetCommonHashes returns a StringPiece containing the hashes of common sets
- // supported by this object. The 64-bit hashes are concatenated in the
- // StringPiece.
- virtual base::StringPiece GetCommonHashes() const = 0;
-
- // GetCert returns a specific certificate (at index |index|) in the common
- // set identified by |hash|. If no such certificate is known, an empty
- // StringPiece is returned.
- virtual base::StringPiece GetCert(uint64_t hash, uint32_t index) const = 0;
-
- // MatchCert tries to find |cert| in one of the common certificate sets
- // identified by |common_set_hashes|. On success it puts the hash of the
- // set in |out_hash|, the index of |cert| in the set in |out_index| and
- // returns true. Otherwise it returns false.
- virtual bool MatchCert(base::StringPiece cert,
- base::StringPiece common_set_hashes,
- uint64_t* out_hash,
- uint32_t* out_index) const = 0;
-};
-
-} // namespace net
-
-#endif // NET_QUIC_CRYPTO_COMMON_CERT_SET_H_
« no previous file with comments | « net/quic/crypto/channel_id_test.cc ('k') | net/quic/crypto/common_cert_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698