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

Side by Side Diff: content/browser/renderer_host/websocket_dispatcher_host.h

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 2 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CONTENT_BROWSER_RENDERER_HOST_WEBSOCKET_DISPATCHER_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_WEBSOCKET_DISPATCHER_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_WEBSOCKET_DISPATCHER_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_WEBSOCKET_DISPATCHER_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 // The the process ID of the associated renderer process. 158 // The the process ID of the associated renderer process.
159 const int process_id_; 159 const int process_id_;
160 160
161 // A callback which returns the appropriate net::URLRequestContext for us to 161 // A callback which returns the appropriate net::URLRequestContext for us to
162 // use. 162 // use.
163 GetRequestContextCallback get_context_callback_; 163 GetRequestContextCallback get_context_callback_;
164 164
165 WebSocketHostFactory websocket_host_factory_; 165 WebSocketHostFactory websocket_host_factory_;
166 166
167 // Timer and counters for per-renderer WebSocket throttling. 167 // Timer and counters for per-renderer WebSocket throttling.
168 base::RepeatingTimer<WebSocketDispatcherHost> throttling_period_timer_; 168 base::RepeatingTimer throttling_period_timer_;
169 169
170 // The current number of pending connections. 170 // The current number of pending connections.
171 int num_pending_connections_; 171 int num_pending_connections_;
172 172
173 // The number of handshakes that failed in the current and previous time 173 // The number of handshakes that failed in the current and previous time
174 // period. 174 // period.
175 int64_t num_current_succeeded_connections_; 175 int64_t num_current_succeeded_connections_;
176 int64_t num_previous_succeeded_connections_; 176 int64_t num_previous_succeeded_connections_;
177 177
178 // The number of handshakes that succeeded in the current and previous time 178 // The number of handshakes that succeeded in the current and previous time
179 // period. 179 // period.
180 int64_t num_current_failed_connections_; 180 int64_t num_current_failed_connections_;
181 int64_t num_previous_failed_connections_; 181 int64_t num_previous_failed_connections_;
182 182
183 DISALLOW_COPY_AND_ASSIGN(WebSocketDispatcherHost); 183 DISALLOW_COPY_AND_ASSIGN(WebSocketDispatcherHost);
184 }; 184 };
185 185
186 } // namespace content 186 } // namespace content
187 187
188 #endif // CONTENT_BROWSER_RENDERER_HOST_WEBSOCKET_DISPATCHER_HOST_H_ 188 #endif // CONTENT_BROWSER_RENDERER_HOST_WEBSOCKET_DISPATCHER_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_base.h ('k') | content/browser/service_worker/service_worker_version.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698