OLD | NEW |
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 #include "modules/websockets/WebSocketHandleImpl.h" | 5 #include "modules/websockets/WebSocketHandleImpl.h" |
6 | 6 |
7 #include "modules/websockets/WebSocketHandleClient.h" | 7 #include "modules/websockets/WebSocketHandleClient.h" |
8 #include "platform/WebTaskRunner.h" | 8 #include "platform/WebTaskRunner.h" |
9 #include "platform/network/NetworkLog.h" | 9 #include "platform/network/NetworkLog.h" |
10 #include "platform/network/WebSocketHandshakeRequest.h" | 10 #include "platform/network/WebSocketHandshakeRequest.h" |
11 #include "platform/network/WebSocketHandshakeResponse.h" | 11 #include "platform/network/WebSocketHandshakeResponse.h" |
| 12 #include "platform/scheduler/child/web_scheduler.h" |
12 #include "platform/weborigin/KURL.h" | 13 #include "platform/weborigin/KURL.h" |
13 #include "platform/weborigin/SecurityOrigin.h" | 14 #include "platform/weborigin/SecurityOrigin.h" |
14 #include "platform/wtf/Functional.h" | 15 #include "platform/wtf/Functional.h" |
15 #include "platform/wtf/text/WTFString.h" | 16 #include "platform/wtf/text/WTFString.h" |
16 #include "public/platform/InterfaceProvider.h" | 17 #include "public/platform/InterfaceProvider.h" |
17 #include "public/platform/Platform.h" | 18 #include "public/platform/Platform.h" |
18 #include "public/platform/WebScheduler.h" | |
19 | 19 |
20 namespace blink { | 20 namespace blink { |
21 namespace { | 21 namespace { |
22 | 22 |
23 const uint16_t kAbnormalShutdownOpCode = 1006; | 23 const uint16_t kAbnormalShutdownOpCode = 1006; |
24 | 24 |
25 } // namespace | 25 } // namespace |
26 | 26 |
27 WebSocketHandleImpl::WebSocketHandleImpl() | 27 WebSocketHandleImpl::WebSocketHandleImpl() |
28 : client_(nullptr), client_binding_(this) { | 28 : client_(nullptr), client_binding_(this) { |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 void WebSocketHandleImpl::OnClosingHandshake() { | 255 void WebSocketHandleImpl::OnClosingHandshake() { |
256 NETWORK_DVLOG(1) << this << " OnClosingHandshake()"; | 256 NETWORK_DVLOG(1) << this << " OnClosingHandshake()"; |
257 if (!client_) | 257 if (!client_) |
258 return; | 258 return; |
259 | 259 |
260 client_->DidStartClosingHandshake(this); | 260 client_->DidStartClosingHandshake(this); |
261 // |this| can be deleted here. | 261 // |this| can be deleted here. |
262 } | 262 } |
263 | 263 |
264 } // namespace blink | 264 } // namespace blink |
OLD | NEW |