| 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 string& hostname) : hostname_(hostname) { | 32 QuicServerInfo::QuicServerInfo(const string& hostname, uint16 port) |
| 33 : hostname_(hostname), |
| 34 port_(port) { |
| 33 } | 35 } |
| 34 | 36 |
| 35 QuicServerInfo::~QuicServerInfo() { | 37 QuicServerInfo::~QuicServerInfo() { |
| 36 } | 38 } |
| 37 | 39 |
| 38 const QuicServerInfo::State& QuicServerInfo::state() const { | 40 const QuicServerInfo::State& QuicServerInfo::state() const { |
| 39 return state_; | 41 return state_; |
| 40 } | 42 } |
| 41 | 43 |
| 42 QuicServerInfo::State* QuicServerInfo::mutable_state() { | 44 QuicServerInfo::State* QuicServerInfo::mutable_state() { |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 return string(); | 133 return string(); |
| 132 } | 134 } |
| 133 } | 135 } |
| 134 | 136 |
| 135 return string(reinterpret_cast<const char *>(p.data()), p.size()); | 137 return string(reinterpret_cast<const char *>(p.data()), p.size()); |
| 136 } | 138 } |
| 137 | 139 |
| 138 QuicServerInfoFactory::~QuicServerInfoFactory() {} | 140 QuicServerInfoFactory::~QuicServerInfoFactory() {} |
| 139 | 141 |
| 140 } // namespace net | 142 } // namespace net |
| OLD | NEW |