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

Side by Side Diff: net/tools/quic/quic_dispatcher.h

Issue 2692813002: Server push cancellation: add a finch trial parameter (Closed)
Patch Set: Spin the message loop to ensure the client receives the response 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/spdy/spdy_test_util_common.cc ('k') | net/tools/quic/quic_dispatcher.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 (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 // A server side dispatcher which dispatches a given client's data to their 5 // A server side dispatcher which dispatches a given client's data to their
6 // stream. 6 // stream.
7 7
8 #ifndef NET_TOOLS_QUIC_QUIC_DISPATCHER_H_ 8 #ifndef NET_TOOLS_QUIC_QUIC_DISPATCHER_H_
9 #define NET_TOOLS_QUIC_QUIC_DISPATCHER_H_ 9 #define NET_TOOLS_QUIC_QUIC_DISPATCHER_H_
10 10
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 // Ensure that the closed connection is cleaned up asynchronously. 78 // Ensure that the closed connection is cleaned up asynchronously.
79 void OnConnectionClosed(QuicConnectionId connection_id, 79 void OnConnectionClosed(QuicConnectionId connection_id,
80 QuicErrorCode error, 80 QuicErrorCode error,
81 const std::string& error_details) override; 81 const std::string& error_details) override;
82 82
83 // QuicSession::Visitor interface implementation (via inheritance of 83 // QuicSession::Visitor interface implementation (via inheritance of
84 // QuicTimeWaitListManager::Visitor): 84 // QuicTimeWaitListManager::Visitor):
85 // Queues the blocked writer for later resumption. 85 // Queues the blocked writer for later resumption.
86 void OnWriteBlocked(QuicBlockedWriterInterface* blocked_writer) override; 86 void OnWriteBlocked(QuicBlockedWriterInterface* blocked_writer) override;
87 87
88 // QuicSession::Visitor interface implementation (via inheritance of
89 // QuicTimeWaitListManager::Visitor):
90 // Collects reset error code received on streams.
91 void OnRstStreamReceived(const QuicRstStreamFrame& frame) override;
92
88 // QuicTimeWaitListManager::Visitor interface implementation 93 // QuicTimeWaitListManager::Visitor interface implementation
89 // Called whenever the time wait list manager adds a new connection to the 94 // Called whenever the time wait list manager adds a new connection to the
90 // time-wait list. 95 // time-wait list.
91 void OnConnectionAddedToTimeWaitList(QuicConnectionId connection_id) override; 96 void OnConnectionAddedToTimeWaitList(QuicConnectionId connection_id) override;
92 97
93 using SessionMap = 98 using SessionMap =
94 std::unordered_map<QuicConnectionId, std::unique_ptr<QuicSession>>; 99 std::unordered_map<QuicConnectionId, std::unique_ptr<QuicSession>>;
95 100
96 const SessionMap& session_map() const { return session_map_; } 101 const SessionMap& session_map() const { return session_map_; }
97 102
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 // A backward counter of how many new sessions can be create within current 388 // A backward counter of how many new sessions can be create within current
384 // event loop. When reaches 0, it means can't create sessions for now. 389 // event loop. When reaches 0, it means can't create sessions for now.
385 int16_t new_sessions_allowed_per_event_loop_; 390 int16_t new_sessions_allowed_per_event_loop_;
386 391
387 DISALLOW_COPY_AND_ASSIGN(QuicDispatcher); 392 DISALLOW_COPY_AND_ASSIGN(QuicDispatcher);
388 }; 393 };
389 394
390 } // namespace net 395 } // namespace net
391 396
392 #endif // NET_TOOLS_QUIC_QUIC_DISPATCHER_H_ 397 #endif // NET_TOOLS_QUIC_QUIC_DISPATCHER_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_test_util_common.cc ('k') | net/tools/quic/quic_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698