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

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

Issue 667123002: Standardize usage of virtual/override/final in remoting/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « remoting/protocol/clipboard_thread_proxy.h ('k') | remoting/protocol/connection_to_host.h » ('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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 const std::string& channel_name, 60 const std::string& channel_name,
61 const TransportRoute& route) = 0; 61 const TransportRoute& route) = 0;
62 62
63 protected: 63 protected:
64 virtual ~EventHandler() {} 64 virtual ~EventHandler() {}
65 }; 65 };
66 66
67 // Constructs a ConnectionToClient object for the |session|. Takes 67 // Constructs a ConnectionToClient object for the |session|. Takes
68 // ownership of |session|. 68 // ownership of |session|.
69 explicit ConnectionToClient(Session* session); 69 explicit ConnectionToClient(Session* session);
70 virtual ~ConnectionToClient(); 70 ~ConnectionToClient() override;
71 71
72 // Set |event_handler| for connection events. Must be called once when this 72 // Set |event_handler| for connection events. Must be called once when this
73 // object is created. 73 // object is created.
74 void SetEventHandler(EventHandler* event_handler); 74 void SetEventHandler(EventHandler* event_handler);
75 75
76 // Returns the connection in use. 76 // Returns the connection in use.
77 virtual Session* session(); 77 virtual Session* session();
78 78
79 // Disconnect the client connection. 79 // Disconnect the client connection.
80 virtual void Disconnect(); 80 virtual void Disconnect();
(...skipping 13 matching lines...) Expand all
94 // Set/get the stubs which will handle messages we receive from the client. 94 // Set/get the stubs which will handle messages we receive from the client.
95 // All stubs MUST be set before the session's channels become connected. 95 // All stubs MUST be set before the session's channels become connected.
96 virtual void set_clipboard_stub(ClipboardStub* clipboard_stub); 96 virtual void set_clipboard_stub(ClipboardStub* clipboard_stub);
97 virtual ClipboardStub* clipboard_stub(); 97 virtual ClipboardStub* clipboard_stub();
98 virtual void set_host_stub(HostStub* host_stub); 98 virtual void set_host_stub(HostStub* host_stub);
99 virtual HostStub* host_stub(); 99 virtual HostStub* host_stub();
100 virtual void set_input_stub(InputStub* input_stub); 100 virtual void set_input_stub(InputStub* input_stub);
101 virtual InputStub* input_stub(); 101 virtual InputStub* input_stub();
102 102
103 // Session::EventHandler interface. 103 // Session::EventHandler interface.
104 virtual void OnSessionStateChange(Session::State state) override; 104 void OnSessionStateChange(Session::State state) override;
105 virtual void OnSessionRouteChange(const std::string& channel_name, 105 void OnSessionRouteChange(const std::string& channel_name,
106 const TransportRoute& route) override; 106 const TransportRoute& route) override;
107 107
108 private: 108 private:
109 // Callback for channel initialization. 109 // Callback for channel initialization.
110 void OnChannelInitialized(bool successful); 110 void OnChannelInitialized(bool successful);
111 111
112 void NotifyIfChannelsReady(); 112 void NotifyIfChannelsReady();
113 113
114 void Close(ErrorCode error); 114 void Close(ErrorCode error);
115 115
116 // Stops writing in the channels. 116 // Stops writing in the channels.
(...skipping 15 matching lines...) Expand all
132 scoped_ptr<HostVideoDispatcher> video_dispatcher_; 132 scoped_ptr<HostVideoDispatcher> video_dispatcher_;
133 scoped_ptr<AudioWriter> audio_writer_; 133 scoped_ptr<AudioWriter> audio_writer_;
134 134
135 DISALLOW_COPY_AND_ASSIGN(ConnectionToClient); 135 DISALLOW_COPY_AND_ASSIGN(ConnectionToClient);
136 }; 136 };
137 137
138 } // namespace protocol 138 } // namespace protocol
139 } // namespace remoting 139 } // namespace remoting
140 140
141 #endif // REMOTING_PROTOCOL_CONNECTION_TO_CLIENT_H_ 141 #endif // REMOTING_PROTOCOL_CONNECTION_TO_CLIENT_H_
OLDNEW
« no previous file with comments | « remoting/protocol/clipboard_thread_proxy.h ('k') | remoting/protocol/connection_to_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698