OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "net/quic/crypto/quic_server_info.h" | 5 #include "net/quic/crypto/quic_server_info.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "base/pickle.h" | 9 #include "base/pickle.h" |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 QuicServerInfo::State::~State() {} | 23 QuicServerInfo::State::~State() {} |
24 | 24 |
25 void QuicServerInfo::State::Clear() { | 25 void QuicServerInfo::State::Clear() { |
26 server_config.clear(); | 26 server_config.clear(); |
27 source_address_token.clear(); | 27 source_address_token.clear(); |
28 server_config_sig.clear(); | 28 server_config_sig.clear(); |
29 certs.clear(); | 29 certs.clear(); |
30 } | 30 } |
31 | 31 |
32 QuicServerInfo::QuicServerInfo(const QuicSessionKey& server_key) | 32 QuicServerInfo::QuicServerInfo(const QuicServerId& server_id) |
33 : server_key_(server_key) { | 33 : server_id_(server_id) { |
34 } | 34 } |
35 | 35 |
36 QuicServerInfo::~QuicServerInfo() { | 36 QuicServerInfo::~QuicServerInfo() { |
37 } | 37 } |
38 | 38 |
39 const QuicServerInfo::State& QuicServerInfo::state() const { | 39 const QuicServerInfo::State& QuicServerInfo::state() const { |
40 return state_; | 40 return state_; |
41 } | 41 } |
42 | 42 |
43 QuicServerInfo::State* QuicServerInfo::mutable_state() { | 43 QuicServerInfo::State* QuicServerInfo::mutable_state() { |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 return string(); | 132 return string(); |
133 } | 133 } |
134 } | 134 } |
135 | 135 |
136 return string(reinterpret_cast<const char *>(p.data()), p.size()); | 136 return string(reinterpret_cast<const char *>(p.data()), p.size()); |
137 } | 137 } |
138 | 138 |
139 QuicServerInfoFactory::~QuicServerInfoFactory() {} | 139 QuicServerInfoFactory::~QuicServerInfoFactory() {} |
140 | 140 |
141 } // namespace net | 141 } // namespace net |
OLD | NEW |