OLD | NEW |
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 #include "net/websockets/websocket_throttle.h" | 5 #include "net/websockets/websocket_throttle.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/memory/singleton.h" | 11 #include "base/memory/singleton.h" |
12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
13 #include "base/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
14 #include "base/string_util.h" | 14 #include "base/strings/string_util.h" |
15 #include "base/stringprintf.h" | 15 #include "base/strings/stringprintf.h" |
16 #include "net/base/io_buffer.h" | 16 #include "net/base/io_buffer.h" |
17 #include "net/socket_stream/socket_stream.h" | 17 #include "net/socket_stream/socket_stream.h" |
18 #include "net/websockets/websocket_job.h" | 18 #include "net/websockets/websocket_job.h" |
19 | 19 |
20 namespace net { | 20 namespace net { |
21 | 21 |
22 WebSocketThrottle::WebSocketThrottle() { | 22 WebSocketThrottle::WebSocketThrottle() { |
23 } | 23 } |
24 | 24 |
25 WebSocketThrottle::~WebSocketThrottle() { | 25 WebSocketThrottle::~WebSocketThrottle() { |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 should_wakeup = false; | 110 should_wakeup = false; |
111 break; | 111 break; |
112 } | 112 } |
113 } | 113 } |
114 if (should_wakeup) | 114 if (should_wakeup) |
115 job->Wakeup(); | 115 job->Wakeup(); |
116 } | 116 } |
117 } | 117 } |
118 | 118 |
119 } // namespace net | 119 } // namespace net |
OLD | NEW |