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

Side by Side Diff: trunk/src/content/common/socket_stream_dispatcher.h

Issue 14335011: Revert 196728 "Websocket should fire 'error' event if no server ..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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 CONTENT_COMMON_SOCKET_STREAM_DISPATCHER_H_ 5 #ifndef CONTENT_COMMON_SOCKET_STREAM_DISPATCHER_H_
6 #define CONTENT_COMMON_SOCKET_STREAM_DISPATCHER_H_ 6 #define CONTENT_COMMON_SOCKET_STREAM_DISPATCHER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 25 matching lines...) Expand all
36 webkit_glue::WebSocketStreamHandleDelegate* delegate); 36 webkit_glue::WebSocketStreamHandleDelegate* delegate);
37 37
38 // IPC::Listener implementation. 38 // IPC::Listener implementation.
39 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 39 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
40 40
41 private: 41 private:
42 void OnConnected(int socket_id, int max_amount_send_allowed); 42 void OnConnected(int socket_id, int max_amount_send_allowed);
43 void OnSentData(int socket_id, int amount_sent); 43 void OnSentData(int socket_id, int amount_sent);
44 void OnReceivedData(int socket_id, const std::vector<char>& data); 44 void OnReceivedData(int socket_id, const std::vector<char>& data);
45 void OnClosed(int socket_id); 45 void OnClosed(int socket_id);
46 void OnFailed(int socket_id, int error_code);
47 46
48 DISALLOW_COPY_AND_ASSIGN(SocketStreamDispatcher); 47 DISALLOW_COPY_AND_ASSIGN(SocketStreamDispatcher);
49 }; 48 };
50 49
51 } // namespace content 50 } // namespace content
52 51
53 #endif // CONTENT_COMMON_SOCKET_STREAM_DISPATCHER_H_ 52 #endif // CONTENT_COMMON_SOCKET_STREAM_DISPATCHER_H_
OLDNEW
« no previous file with comments | « trunk/src/content/browser/renderer_host/socket_stream_host.cc ('k') | trunk/src/content/common/socket_stream_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698