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

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

Issue 11696010: Integrate QUIC info into net-internals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 12 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_STREAM_FACTORY_H_ 5 #ifndef NET_QUIC_QUIC_STREAM_FACTORY_H_
6 #define NET_QUIC_QUIC_STREAM_FACTORY_H_ 6 #define NET_QUIC_QUIC_STREAM_FACTORY_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 // Called by a session when it becomes idle. 84 // Called by a session when it becomes idle.
85 void OnIdleSession(QuicClientSession* session); 85 void OnIdleSession(QuicClientSession* session);
86 86
87 // Called by a session after it shuts down. 87 // Called by a session after it shuts down.
88 void OnSessionClose(QuicClientSession* session); 88 void OnSessionClose(QuicClientSession* session);
89 89
90 // Cancels a pending request. 90 // Cancels a pending request.
91 void CancelRequest(QuicStreamRequest* request); 91 void CancelRequest(QuicStreamRequest* request);
92 92
93 base::Value* QuicStreamFactoryInfoToValue() const;
94
93 private: 95 private:
94 class Job; 96 class Job;
95 97
96 typedef std::map<HostPortProxyPair, QuicClientSession*> SessionMap; 98 typedef std::map<HostPortProxyPair, QuicClientSession*> SessionMap;
97 typedef std::set<HostPortProxyPair> AliasSet; 99 typedef std::set<HostPortProxyPair> AliasSet;
98 typedef std::map<QuicClientSession*, AliasSet> SessionAliasMap; 100 typedef std::map<QuicClientSession*, AliasSet> SessionAliasMap;
99 typedef std::set<QuicClientSession*> SessionSet; 101 typedef std::set<QuicClientSession*> SessionSet;
100 typedef std::map<HostPortProxyPair, Job*> JobMap; 102 typedef std::map<HostPortProxyPair, Job*> JobMap;
101 typedef std::map<QuicStreamRequest*, Job*> RequestMap; 103 typedef std::map<QuicStreamRequest*, Job*> RequestMap;
102 typedef std::set<QuicStreamRequest*> RequestSet; 104 typedef std::set<QuicStreamRequest*> RequestSet;
(...skipping 24 matching lines...) Expand all
127 RequestMap active_requests_; 129 RequestMap active_requests_;
128 130
129 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; 131 base::WeakPtrFactory<QuicStreamFactory> weak_factory_;
130 132
131 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); 133 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory);
132 }; 134 };
133 135
134 } // namespace net 136 } // namespace net
135 137
136 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ 138 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698