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

Side by Side Diff: net/quic/quic_server_id.h

Issue 973683003: CL generated with data from dead-code analysis using (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Change_PrrSender_TimeUntilSend_87535917
Patch Set: Created 5 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
« no previous file with comments | « net/quic/quic_sent_packet_manager.h ('k') | net/quic/quic_stream_sequencer_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef NET_QUIC_QUIC_SERVER_ID_H_ 5 #ifndef NET_QUIC_QUIC_SERVER_ID_H_
6 #define NET_QUIC_QUIC_SERVER_ID_H_ 6 #define NET_QUIC_QUIC_SERVER_ID_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "net/base/host_port_pair.h" 10 #include "net/base/host_port_pair.h"
(...skipping 21 matching lines...) Expand all
32 32
33 // Needed to be an element of std::set. 33 // Needed to be an element of std::set.
34 bool operator<(const QuicServerId& other) const; 34 bool operator<(const QuicServerId& other) const;
35 bool operator==(const QuicServerId& other) const; 35 bool operator==(const QuicServerId& other) const;
36 36
37 // ToString() will convert the QuicServerId to "scheme:hostname:port" or 37 // ToString() will convert the QuicServerId to "scheme:hostname:port" or
38 // "scheme:hostname:port/private". "scheme" would either be "http" or "https" 38 // "scheme:hostname:port/private". "scheme" would either be "http" or "https"
39 // based on |is_https|. 39 // based on |is_https|.
40 std::string ToString() const; 40 std::string ToString() const;
41 41
42 // Used in Chromium, but not in the server.
42 const HostPortPair& host_port_pair() const { return host_port_pair_; } 43 const HostPortPair& host_port_pair() const { return host_port_pair_; }
43 44
44 const std::string& host() const { return host_port_pair_.host(); } 45 const std::string& host() const { return host_port_pair_.host(); }
45 46
46 uint16 port() const { return host_port_pair_.port(); } 47 uint16 port() const { return host_port_pair_.port(); }
47 48
48 bool is_https() const { return is_https_; } 49 bool is_https() const { return is_https_; }
49 50
50 PrivacyMode privacy_mode() const { return privacy_mode_; } 51 PrivacyMode privacy_mode() const { return privacy_mode_; }
51 52
52 private: 53 private:
53 HostPortPair host_port_pair_; 54 HostPortPair host_port_pair_;
54 bool is_https_; 55 bool is_https_;
55 PrivacyMode privacy_mode_; 56 PrivacyMode privacy_mode_;
56 }; 57 };
57 58
58 } // namespace net 59 } // namespace net
59 60
60 #endif // NET_QUIC_QUIC_SERVER_ID_H_ 61 #endif // NET_QUIC_QUIC_SERVER_ID_H_
OLDNEW
« no previous file with comments | « net/quic/quic_sent_packet_manager.h ('k') | net/quic/quic_stream_sequencer_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698