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

Side by Side Diff: webkit/glue/websocketstreamhandle_delegate.h

Issue 10668018: Websocket should fire 'error' event if no server available (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: did some rebased work Created 7 years, 8 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 // 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 #ifndef WEBKIT_GLUE_WEBSOCKETSTREAMHANDLE_DELEGATE_H_ 5 #ifndef WEBKIT_GLUE_WEBSOCKETSTREAMHANDLE_DELEGATE_H_
6 #define WEBKIT_GLUE_WEBSOCKETSTREAMHANDLE_DELEGATE_H_ 6 #define WEBKIT_GLUE_WEBSOCKETSTREAMHANDLE_DELEGATE_H_
7 7
8 class GURL; 8 class GURL;
9 9
10 namespace WebKit { 10 namespace WebKit {
(...skipping 11 matching lines...) Expand all
22 virtual void WillSendData(WebKit::WebSocketStreamHandle* handle, 22 virtual void WillSendData(WebKit::WebSocketStreamHandle* handle,
23 const char* data, int len) {} 23 const char* data, int len) {}
24 24
25 virtual void DidOpenStream(WebKit::WebSocketStreamHandle* handle, 25 virtual void DidOpenStream(WebKit::WebSocketStreamHandle* handle,
26 int max_amount_send_allowed) {} 26 int max_amount_send_allowed) {}
27 virtual void DidSendData(WebKit::WebSocketStreamHandle* handle, 27 virtual void DidSendData(WebKit::WebSocketStreamHandle* handle,
28 int amount_sent) {} 28 int amount_sent) {}
29 virtual void DidReceiveData(WebKit::WebSocketStreamHandle* handle, 29 virtual void DidReceiveData(WebKit::WebSocketStreamHandle* handle,
30 const char* data, int len) {} 30 const char* data, int len) {}
31 virtual void DidClose(WebKit::WebSocketStreamHandle*) {} 31 virtual void DidClose(WebKit::WebSocketStreamHandle*) {}
32 virtual void DidFail(WebKit::WebSocketStreamHandle* handle,
33 int error_code,
34 const string16& error_msg) {}
32 35
33 protected: 36 protected:
34 virtual ~WebSocketStreamHandleDelegate() {} 37 virtual ~WebSocketStreamHandleDelegate() {}
35 }; 38 };
36 39
37 } // namespace webkit_glue 40 } // namespace webkit_glue
38 41
39 #endif // WEBKIT_GLUE_WEBSOCKETSTREAMHANDLE_DELEGATE_H_ 42 #endif // WEBKIT_GLUE_WEBSOCKETSTREAMHANDLE_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698