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

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

Issue 2807493002: Track STL containers in QuicStreamFactory::DumpMemoryStats (Closed)
Patch Set: address zhongyi@ comment Created 3 years, 8 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/chromium/quic_stream_factory_test.cc ('k') | net/quic/core/quic_server_id.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_CORE_QUIC_SERVER_ID_H_ 5 #ifndef NET_QUIC_CORE_QUIC_SERVER_ID_H_
6 #define NET_QUIC_CORE_QUIC_SERVER_ID_H_ 6 #define NET_QUIC_CORE_QUIC_SERVER_ID_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 26 matching lines...) Expand all
37 37
38 // Used in Chromium, but not internally. 38 // Used in Chromium, but not internally.
39 const HostPortPair& host_port_pair() const { return host_port_pair_; } 39 const HostPortPair& host_port_pair() const { return host_port_pair_; }
40 40
41 const std::string& host() const { return host_port_pair_.host(); } 41 const std::string& host() const { return host_port_pair_.host(); }
42 42
43 uint16_t port() const { return host_port_pair_.port(); } 43 uint16_t port() const { return host_port_pair_.port(); }
44 44
45 PrivacyMode privacy_mode() const { return privacy_mode_; } 45 PrivacyMode privacy_mode() const { return privacy_mode_; }
46 46
47 size_t EstimateMemoryUsage() const;
48
47 private: 49 private:
48 HostPortPair host_port_pair_; 50 HostPortPair host_port_pair_;
49 PrivacyMode privacy_mode_; 51 PrivacyMode privacy_mode_;
50 }; 52 };
51 53
52 } // namespace net 54 } // namespace net
53 55
54 #endif // NET_QUIC_CORE_QUIC_SERVER_ID_H_ 56 #endif // NET_QUIC_CORE_QUIC_SERVER_ID_H_
OLDNEW
« no previous file with comments | « net/quic/chromium/quic_stream_factory_test.cc ('k') | net/quic/core/quic_server_id.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698