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

Side by Side Diff: net/quic/crypto/quic_server_info.cc

Issue 192583004: QUIC - use QuicSessionKey tuple (host, port, is_https) instead of server_hostname (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reupload Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698