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

Side by Side Diff: net/tools/flip_server/output_ordering.cc

Issue 10854063: Clean-up inline members of nested classes (net/) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add a NET_EXPOR_PRIVATE Created 8 years, 4 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
« no previous file with comments | « net/tools/flip_server/output_ordering.h ('k') | net/udp/udp_socket_libevent.h » ('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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #include "net/tools/flip_server/output_ordering.h" 5 #include "net/tools/flip_server/output_ordering.h"
6 6
7 #include "net/tools/flip_server/flip_config.h" 7 #include "net/tools/flip_server/flip_config.h"
8 #include "net/tools/flip_server/sm_connection.h" 8 #include "net/tools/flip_server/sm_connection.h"
9 9
10 10
11 namespace net { 11 namespace net {
12 12
13 OutputOrdering::PriorityMapPointer::PriorityMapPointer()
14 : ring(NULL),
15 alarm_enabled(false) {
16 }
17
13 // static 18 // static
14 double OutputOrdering::server_think_time_in_s_ = 0.0; 19 double OutputOrdering::server_think_time_in_s_ = 0.0;
15 20
16 OutputOrdering::OutputOrdering(SMConnectionInterface* connection) 21 OutputOrdering::OutputOrdering(SMConnectionInterface* connection)
17 : first_data_senders_threshold_(kInitialDataSendersThreshold), 22 : first_data_senders_threshold_(kInitialDataSendersThreshold),
18 connection_(connection) { 23 connection_(connection) {
19 if (connection) 24 if (connection)
20 epoll_server_ = connection->epoll_server(); 25 epoll_server_ = connection->epoll_server();
21 } 26 }
22 27
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 174
170 PriorityMapPointer& pmp = sitpmi->second; 175 PriorityMapPointer& pmp = sitpmi->second;
171 if (pmp.alarm_enabled) 176 if (pmp.alarm_enabled)
172 epoll_server_->UnregisterAlarm(pmp.alarm_token); 177 epoll_server_->UnregisterAlarm(pmp.alarm_token);
173 else 178 else
174 pmp.ring->erase(pmp.it); 179 pmp.ring->erase(pmp.it);
175 stream_ids_.erase(sitpmi); 180 stream_ids_.erase(sitpmi);
176 } 181 }
177 182
178 } // namespace net 183 } // namespace net
179
OLDNEW
« no previous file with comments | « net/tools/flip_server/output_ordering.h ('k') | net/udp/udp_socket_libevent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698