OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 NET_QUIC_CRYPTO_CHANNEL_ID_H_ | 5 #ifndef NET_QUIC_CRYPTO_CHANNEL_ID_H_ |
6 #define NET_QUIC_CRYPTO_CHANNEL_ID_H_ | 6 #define NET_QUIC_CRYPTO_CHANNEL_ID_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/strings/string_piece.h" | 12 #include "base/strings/string_piece.h" |
13 #include "net/base/net_export.h" | 13 #include "net/base/net_export.h" |
14 #include "net/quic/quic_types.h" | 14 #include "net/quic/core/quic_types.h" |
15 | 15 |
16 namespace net { | 16 namespace net { |
17 | 17 |
18 // ChannelIDKey is an interface that supports signing with and serializing a | 18 // ChannelIDKey is an interface that supports signing with and serializing a |
19 // ChannelID key. | 19 // ChannelID key. |
20 class NET_EXPORT_PRIVATE ChannelIDKey { | 20 class NET_EXPORT_PRIVATE ChannelIDKey { |
21 public: | 21 public: |
22 virtual ~ChannelIDKey() {} | 22 virtual ~ChannelIDKey() {} |
23 | 23 |
24 // Sign signs |signed_data| using the ChannelID private key and puts the | 24 // Sign signs |signed_data| using the ChannelID private key and puts the |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 base::StringPiece signature, | 90 base::StringPiece signature, |
91 bool is_channel_id_signature); | 91 bool is_channel_id_signature); |
92 | 92 |
93 private: | 93 private: |
94 DISALLOW_COPY_AND_ASSIGN(ChannelIDVerifier); | 94 DISALLOW_COPY_AND_ASSIGN(ChannelIDVerifier); |
95 }; | 95 }; |
96 | 96 |
97 } // namespace net | 97 } // namespace net |
98 | 98 |
99 #endif // NET_QUIC_CRYPTO_CHANNEL_ID_H_ | 99 #endif // NET_QUIC_CRYPTO_CHANNEL_ID_H_ |
OLD | NEW |