OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 17 matching lines...) Expand all Loading... |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef WebSocketChannel_h | 31 #ifndef WebSocketChannel_h |
32 #define WebSocketChannel_h | 32 #define WebSocketChannel_h |
33 | 33 |
34 #include "bindings/core/v8/SourceLocation.h" | 34 #include "bindings/core/v8/SourceLocation.h" |
35 #include "modules/ModulesExport.h" | 35 #include "modules/ModulesExport.h" |
36 #include "platform/heap/Handle.h" | 36 #include "platform/heap/Handle.h" |
37 #include "platform/v8_inspector/public/ConsoleTypes.h" | 37 #include "platform/v8_inspector/public/ConsoleTypes.h" |
| 38 #include "public/platform/WebCallbacks.h" |
| 39 #include "public/platform/modules/websockets/WebSocketHandle.h" |
38 #include "wtf/Forward.h" | 40 #include "wtf/Forward.h" |
39 #include "wtf/Noncopyable.h" | 41 #include "wtf/Noncopyable.h" |
40 | 42 |
41 namespace blink { | 43 namespace blink { |
42 | 44 |
43 class BlobDataHandle; | 45 class BlobDataHandle; |
44 class DOMArrayBuffer; | 46 class DOMArrayBuffer; |
45 class ExecutionContext; | 47 class ExecutionContext; |
46 class KURL; | 48 class KURL; |
47 class WebSocketChannelClient; | 49 class WebSocketChannelClient; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 // and the "current" location in the sense of JavaScript execution | 93 // and the "current" location in the sense of JavaScript execution |
92 // may be shown if this method is called in a JS execution context. | 94 // may be shown if this method is called in a JS execution context. |
93 // Location should not be null. | 95 // Location should not be null. |
94 virtual void fail(const String& reason, MessageLevel, PassOwnPtr<SourceLocat
ion>) = 0; | 96 virtual void fail(const String& reason, MessageLevel, PassOwnPtr<SourceLocat
ion>) = 0; |
95 | 97 |
96 // Do not call any methods after calling this method. | 98 // Do not call any methods after calling this method. |
97 virtual void disconnect() = 0; // Will suppress didClose(). | 99 virtual void disconnect() = 0; // Will suppress didClose(). |
98 | 100 |
99 virtual ~WebSocketChannel() { } | 101 virtual ~WebSocketChannel() { } |
100 | 102 |
| 103 virtual void loaderTestTransmit(WebSocketHandle::LoaderTestIPC, bool verifyD
ata, size_t bucketSize, size_t bufferSize, size_t totalSize, WebCallbacks<int, v
oid>*) { |
| 104 RELEASE_ASSERT(false); |
| 105 } |
| 106 |
101 DEFINE_INLINE_VIRTUAL_TRACE() { } | 107 DEFINE_INLINE_VIRTUAL_TRACE() { } |
102 }; | 108 }; |
103 | 109 |
104 } // namespace blink | 110 } // namespace blink |
105 | 111 |
106 #endif // WebSocketChannel_h | 112 #endif // WebSocketChannel_h |
OLD | NEW |