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

Side by Side Diff: Source/modules/websockets/MainThreadWebSocketChannel.h

Issue 17761003: Remove FileException (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix compile warning Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 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 13 matching lines...) Expand all
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
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 MainThreadWebSocketChannel_h 31 #ifndef MainThreadWebSocketChannel_h
32 #define MainThreadWebSocketChannel_h 32 #define MainThreadWebSocketChannel_h
33 33
34 #include "core/fileapi/FileError.h"
34 #include "core/fileapi/FileReaderLoaderClient.h" 35 #include "core/fileapi/FileReaderLoaderClient.h"
35 #include "core/page/ConsoleTypes.h" 36 #include "core/page/ConsoleTypes.h"
36 #include "core/platform/Timer.h" 37 #include "core/platform/Timer.h"
37 #include "core/platform/network/SocketStreamHandleClient.h" 38 #include "core/platform/network/SocketStreamHandleClient.h"
38 #include "modules/websockets/WebSocketChannel.h" 39 #include "modules/websockets/WebSocketChannel.h"
39 #include "modules/websockets/WebSocketDeflateFramer.h" 40 #include "modules/websockets/WebSocketDeflateFramer.h"
40 #include "modules/websockets/WebSocketFrame.h" 41 #include "modules/websockets/WebSocketFrame.h"
41 #include "modules/websockets/WebSocketHandshake.h" 42 #include "modules/websockets/WebSocketHandshake.h"
42 #include "modules/websockets/WebSocketPerMessageDeflate.h" 43 #include "modules/websockets/WebSocketPerMessageDeflate.h"
43 #include "wtf/Deque.h" 44 #include "wtf/Deque.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 virtual void didOpenSocketStream(SocketStreamHandle*) OVERRIDE; 92 virtual void didOpenSocketStream(SocketStreamHandle*) OVERRIDE;
92 virtual void didCloseSocketStream(SocketStreamHandle*) OVERRIDE; 93 virtual void didCloseSocketStream(SocketStreamHandle*) OVERRIDE;
93 virtual void didReceiveSocketStreamData(SocketStreamHandle*, const char*, in t) OVERRIDE; 94 virtual void didReceiveSocketStreamData(SocketStreamHandle*, const char*, in t) OVERRIDE;
94 virtual void didUpdateBufferedAmount(SocketStreamHandle*, size_t bufferedAmo unt) OVERRIDE; 95 virtual void didUpdateBufferedAmount(SocketStreamHandle*, size_t bufferedAmo unt) OVERRIDE;
95 virtual void didFailSocketStream(SocketStreamHandle*, const SocketStreamErro r&) OVERRIDE; 96 virtual void didFailSocketStream(SocketStreamHandle*, const SocketStreamErro r&) OVERRIDE;
96 97
97 // FileReaderLoaderClient functions. 98 // FileReaderLoaderClient functions.
98 virtual void didStartLoading(); 99 virtual void didStartLoading();
99 virtual void didReceiveData(); 100 virtual void didReceiveData();
100 virtual void didFinishLoading(); 101 virtual void didFinishLoading();
101 virtual void didFail(int errorCode); 102 virtual void didFail(FileError::ErrorCode);
102 103
103 using RefCounted<MainThreadWebSocketChannel>::ref; 104 using RefCounted<MainThreadWebSocketChannel>::ref;
104 using RefCounted<MainThreadWebSocketChannel>::deref; 105 using RefCounted<MainThreadWebSocketChannel>::deref;
105 106
106 protected: 107 protected:
107 // WebSocketChannel functions. 108 // WebSocketChannel functions.
108 virtual void refWebSocketChannel() OVERRIDE { ref(); } 109 virtual void refWebSocketChannel() OVERRIDE { ref(); }
109 virtual void derefWebSocketChannel() OVERRIDE { deref(); } 110 virtual void derefWebSocketChannel() OVERRIDE { deref(); }
110 111
111 private: 112 private:
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 213
213 String m_sourceURLAtConnection; 214 String m_sourceURLAtConnection;
214 unsigned m_lineNumberAtConnection; 215 unsigned m_lineNumberAtConnection;
215 WebSocketPerMessageDeflate m_perMessageDeflate; 216 WebSocketPerMessageDeflate m_perMessageDeflate;
216 WebSocketDeflateFramer m_deflateFramer; 217 WebSocketDeflateFramer m_deflateFramer;
217 }; 218 };
218 219
219 } // namespace WebCore 220 } // namespace WebCore
220 221
221 #endif // MainThreadWebSocketChannel_h 222 #endif // MainThreadWebSocketChannel_h
OLDNEW
« no previous file with comments | « Source/modules/filesystem/WorkerGlobalScopeFileSystem.idl ('k') | Source/modules/websockets/MainThreadWebSocketChannel.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698