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

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

Issue 2334293002: Two minor cleanups in remoting protocol. (Closed)
Patch Set: . Created 4 years, 3 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_FAKE_CONNECTION_TO_CLIENT_H_ 5 #ifndef REMOTING_PROTOCOL_FAKE_CONNECTION_TO_CLIENT_H_
6 #define REMOTING_PROTOCOL_FAKE_CONNECTION_TO_CLIENT_H_ 6 #define REMOTING_PROTOCOL_FAKE_CONNECTION_TO_CLIENT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 std::unique_ptr<VideoStream> StartVideoStream( 54 std::unique_ptr<VideoStream> StartVideoStream(
55 std::unique_ptr<webrtc::DesktopCapturer> desktop_capturer) override; 55 std::unique_ptr<webrtc::DesktopCapturer> desktop_capturer) override;
56 std::unique_ptr<AudioStream> StartAudioStream( 56 std::unique_ptr<AudioStream> StartAudioStream(
57 std::unique_ptr<AudioSource> audio_source) override; 57 std::unique_ptr<AudioSource> audio_source) override;
58 58
59 ClientStub* client_stub() override; 59 ClientStub* client_stub() override;
60 void Disconnect(ErrorCode disconnect_error) override; 60 void Disconnect(ErrorCode disconnect_error) override;
61 61
62 Session* session() override; 62 Session* session() override;
63 void OnInputEventReceived(int64_t timestamp) override;
64 63
65 void set_clipboard_stub(ClipboardStub* clipboard_stub) override; 64 void set_clipboard_stub(ClipboardStub* clipboard_stub) override;
66 void set_host_stub(HostStub* host_stub) override; 65 void set_host_stub(HostStub* host_stub) override;
67 void set_input_stub(InputStub* input_stub) override; 66 void set_input_stub(InputStub* input_stub) override;
68 67
69 base::WeakPtr<FakeVideoStream> last_video_stream() { 68 base::WeakPtr<FakeVideoStream> last_video_stream() {
70 return last_video_stream_; 69 return last_video_stream_;
71 } 70 }
72 71
73 void set_client_stub(ClientStub* client_stub) { client_stub_ = client_stub; } 72 void set_client_stub(ClientStub* client_stub) { client_stub_ = client_stub; }
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 bool is_connected_ = true; 105 bool is_connected_ = true;
107 ErrorCode disconnect_error_ = OK; 106 ErrorCode disconnect_error_ = OK;
108 107
109 DISALLOW_COPY_AND_ASSIGN(FakeConnectionToClient); 108 DISALLOW_COPY_AND_ASSIGN(FakeConnectionToClient);
110 }; 109 };
111 110
112 } // namespace protocol 111 } // namespace protocol
113 } // namespace remoting 112 } // namespace remoting
114 113
115 #endif // REMOTING_PROTOCOL_FAKE_CONNECTION_TO_CLIENT_H_ 114 #endif // REMOTING_PROTOCOL_FAKE_CONNECTION_TO_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698