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

Side by Side Diff: remoting/protocol/connection_to_client.h

Issue 9567033: Cleanup error handling in the client plugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 8 years, 9 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
« no previous file with comments | « remoting/host/client_session.cc ('k') | remoting/protocol/connection_to_client_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 REMOTING_PROTOCOL_CONNECTION_TO_CLIENT_H_ 5 #ifndef REMOTING_PROTOCOL_CONNECTION_TO_CLIENT_H_
6 #define REMOTING_PROTOCOL_CONNECTION_TO_CLIENT_H_ 6 #define REMOTING_PROTOCOL_CONNECTION_TO_CLIENT_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 27 matching lines...) Expand all
38 virtual ~EventHandler() {} 38 virtual ~EventHandler() {}
39 39
40 // Called when the network connection is opened. 40 // Called when the network connection is opened.
41 virtual void OnConnectionOpened(ConnectionToClient* connection) = 0; 41 virtual void OnConnectionOpened(ConnectionToClient* connection) = 0;
42 42
43 // Called when the network connection is closed. 43 // Called when the network connection is closed.
44 virtual void OnConnectionClosed(ConnectionToClient* connection) = 0; 44 virtual void OnConnectionClosed(ConnectionToClient* connection) = 0;
45 45
46 // Called when the network connection has failed. 46 // Called when the network connection has failed.
47 virtual void OnConnectionFailed(ConnectionToClient* connection, 47 virtual void OnConnectionFailed(ConnectionToClient* connection,
48 Session::Error error) = 0; 48 ErrorCode error) = 0;
49 49
50 // Called when sequence number is updated. 50 // Called when sequence number is updated.
51 virtual void OnSequenceNumberUpdated(ConnectionToClient* connection, 51 virtual void OnSequenceNumberUpdated(ConnectionToClient* connection,
52 int64 sequence_number) = 0; 52 int64 sequence_number) = 0;
53 53
54 // Called on notification of a route change event, which happens when a 54 // Called on notification of a route change event, which happens when a
55 // channel is connected. 55 // channel is connected.
56 virtual void OnRouteChange(ConnectionToClient* connection, 56 virtual void OnRouteChange(ConnectionToClient* connection,
57 const std::string& channel_name, 57 const std::string& channel_name,
58 const net::IPEndPoint& remote_end_point, 58 const net::IPEndPoint& remote_end_point,
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 scoped_ptr<HostEventDispatcher> event_dispatcher_; 120 scoped_ptr<HostEventDispatcher> event_dispatcher_;
121 scoped_ptr<VideoWriter> video_writer_; 121 scoped_ptr<VideoWriter> video_writer_;
122 122
123 DISALLOW_COPY_AND_ASSIGN(ConnectionToClient); 123 DISALLOW_COPY_AND_ASSIGN(ConnectionToClient);
124 }; 124 };
125 125
126 } // namespace protocol 126 } // namespace protocol
127 } // namespace remoting 127 } // namespace remoting
128 128
129 #endif // REMOTING_PROTOCOL_CONNECTION_TO_CLIENT_H_ 129 #endif // REMOTING_PROTOCOL_CONNECTION_TO_CLIENT_H_
OLDNEW
« no previous file with comments | « remoting/host/client_session.cc ('k') | remoting/protocol/connection_to_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698