OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "config.h" | 5 #include "config.h" |
6 #include "modules/websockets/WebSocketChannel.h" | 6 #include "modules/websockets/WebSocketChannel.h" |
7 | 7 |
8 #include "core/dom/DOMArrayBuffer.h" | 8 #include "core/dom/DOMArrayBuffer.h" |
9 #include "core/dom/Document.h" | 9 #include "core/dom/Document.h" |
10 #include "core/fileapi/Blob.h" | 10 #include "core/fileapi/Blob.h" |
11 #include "core/frame/ConsoleTypes.h" | 11 #include "core/frame/ConsoleTypes.h" |
12 #include "core/testing/DummyPageHolder.h" | 12 #include "core/testing/DummyPageHolder.h" |
13 #include "modules/websockets/DocumentWebSocketChannel.h" | 13 #include "modules/websockets/DocumentWebSocketChannel.h" |
14 #include "modules/websockets/WebSocketChannelClient.h" | 14 #include "modules/websockets/WebSocketChannelClient.h" |
15 #include "platform/heap/Handle.h" | 15 #include "platform/heap/Handle.h" |
16 #include "platform/weborigin/KURL.h" | 16 #include "platform/weborigin/KURL.h" |
| 17 #include "public/platform/WebSecurityOrigin.h" |
17 #include "public/platform/WebSerializedOrigin.h" | 18 #include "public/platform/WebSerializedOrigin.h" |
18 #include "public/platform/WebSocketHandle.h" | 19 #include "public/platform/WebSocketHandle.h" |
19 #include "public/platform/WebSocketHandleClient.h" | 20 #include "public/platform/WebSocketHandleClient.h" |
20 #include "public/platform/WebString.h" | 21 #include "public/platform/WebString.h" |
21 #include "public/platform/WebURL.h" | 22 #include "public/platform/WebURL.h" |
22 #include "public/platform/WebVector.h" | 23 #include "public/platform/WebVector.h" |
23 #include "wtf/OwnPtr.h" | 24 #include "wtf/OwnPtr.h" |
24 #include "wtf/Vector.h" | 25 #include "wtf/Vector.h" |
25 #include "wtf/text/WTFString.h" | 26 #include "wtf/text/WTFString.h" |
26 #include <stdint.h> | 27 #include <stdint.h> |
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
681 EXPECT_CALL(*channelClient(), didError()); | 682 EXPECT_CALL(*channelClient(), didError()); |
682 EXPECT_CALL(*channelClient(), didClose(WebSocketChannelClient::ClosingHa
ndshakeIncomplete, WebSocketChannel::CloseEventCodeAbnormalClosure, String())); | 683 EXPECT_CALL(*channelClient(), didClose(WebSocketChannelClient::ClosingHa
ndshakeIncomplete, WebSocketChannel::CloseEventCodeAbnormalClosure, String())); |
683 } | 684 } |
684 | 685 |
685 channel()->fail("fail message from WebSocket", ErrorMessageLevel, "sourceURL
", 1234); | 686 channel()->fail("fail message from WebSocket", ErrorMessageLevel, "sourceURL
", 1234); |
686 } | 687 } |
687 | 688 |
688 } // namespace | 689 } // namespace |
689 | 690 |
690 } // namespace blink | 691 } // namespace blink |
OLD | NEW |