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

Side by Side Diff: net/quic/chromium/properties_based_quic_server_info.h

Issue 2807493002: Track STL containers in QuicStreamFactory::DumpMemoryStats (Closed)
Patch Set: Address ssid comments 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_CHROMIUM_PROPERTIES_BASED_QUIC_SERVER_INFO_H_ 5 #ifndef NET_QUIC_CHROMIUM_PROPERTIES_BASED_QUIC_SERVER_INFO_H_
6 #define NET_QUIC_CHROMIUM_PROPERTIES_BASED_QUIC_SERVER_INFO_H_ 6 #define NET_QUIC_CHROMIUM_PROPERTIES_BASED_QUIC_SERVER_INFO_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 20 matching lines...) Expand all
31 31
32 // QuicServerInfo implementation. 32 // QuicServerInfo implementation.
33 void Start() override; 33 void Start() override;
34 int WaitForDataReady(const CompletionCallback& callback) override; 34 int WaitForDataReady(const CompletionCallback& callback) override;
35 void ResetWaitForDataReadyCallback() override; 35 void ResetWaitForDataReadyCallback() override;
36 void CancelWaitForDataReadyCallback() override; 36 void CancelWaitForDataReadyCallback() override;
37 bool IsDataReady() override; 37 bool IsDataReady() override;
38 bool IsReadyToPersist() override; 38 bool IsReadyToPersist() override;
39 void Persist() override; 39 void Persist() override;
40 void OnExternalCacheHit() override; 40 void OnExternalCacheHit() override;
41 size_t EstimateMemoryUsage() const override;
41 42
42 private: 43 private:
43 HttpServerProperties* http_server_properties_; 44 HttpServerProperties* http_server_properties_;
44 45
45 DISALLOW_COPY_AND_ASSIGN(PropertiesBasedQuicServerInfo); 46 DISALLOW_COPY_AND_ASSIGN(PropertiesBasedQuicServerInfo);
46 }; 47 };
47 48
48 class QUIC_EXPORT_PRIVATE PropertiesBasedQuicServerInfoFactory 49 class QUIC_EXPORT_PRIVATE PropertiesBasedQuicServerInfoFactory
49 : public QuicServerInfoFactory { 50 : public QuicServerInfoFactory {
50 public: 51 public:
51 explicit PropertiesBasedQuicServerInfoFactory( 52 explicit PropertiesBasedQuicServerInfoFactory(
52 HttpServerProperties* http_server_properties); 53 HttpServerProperties* http_server_properties);
53 ~PropertiesBasedQuicServerInfoFactory() override; 54 ~PropertiesBasedQuicServerInfoFactory() override;
54 55
55 std::unique_ptr<QuicServerInfo> GetForServer( 56 std::unique_ptr<QuicServerInfo> GetForServer(
56 const QuicServerId& server_id) override; 57 const QuicServerId& server_id) override;
57 58
58 private: 59 private:
59 HttpServerProperties* http_server_properties_; 60 HttpServerProperties* http_server_properties_;
60 61
61 DISALLOW_COPY_AND_ASSIGN(PropertiesBasedQuicServerInfoFactory); 62 DISALLOW_COPY_AND_ASSIGN(PropertiesBasedQuicServerInfoFactory);
62 }; 63 };
63 64
64 } // namespace net 65 } // namespace net
65 66
66 #endif // NET_QUIC_CHROMIUM_PROPERTIES_BASED_QUIC_SERVER_INFO_H_ 67 #endif // NET_QUIC_CHROMIUM_PROPERTIES_BASED_QUIC_SERVER_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698