OLD | NEW |
---|---|
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" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
15 #include "remoting/protocol/connection_to_client.h" | 15 #include "remoting/protocol/connection_to_client.h" |
16 #include "remoting/protocol/video_feedback_stub.h" | 16 #include "remoting/protocol/video_feedback_stub.h" |
17 #include "remoting/protocol/video_stream.h" | 17 #include "remoting/protocol/video_stream.h" |
18 #include "remoting/protocol/video_stub.h" | 18 #include "remoting/protocol/video_stub.h" |
19 | 19 |
20 namespace remoting { | 20 namespace remoting { |
21 namespace protocol { | 21 namespace protocol { |
22 | 22 |
23 class FakeVideoStream : public protocol::VideoStream { | 23 class FakeVideoStream : public protocol::VideoStream { |
24 public: | 24 public: |
25 FakeVideoStream(); | 25 FakeVideoStream(); |
26 ~FakeVideoStream() override; | 26 ~FakeVideoStream() override; |
27 | 27 |
28 // protocol::VideoStream interface. | 28 // protocol::VideoStream interface. |
29 void SetEventTimestampsSource(scoped_refptr<InputEventTimestampsSource> | |
30 event_timestamps_source) override; | |
Jamie
2016/10/14 20:30:30
Nit: Indentation.
Sergey Ulanov
2016/10/14 21:04:20
This was formatted by clang-format and I think it'
| |
29 void Pause(bool pause) override; | 31 void Pause(bool pause) override; |
30 void OnInputEventReceived(int64_t event_timestamp) override; | |
31 void SetLosslessEncode(bool want_lossless) override; | 32 void SetLosslessEncode(bool want_lossless) override; |
32 void SetLosslessColor(bool want_lossless) override; | 33 void SetLosslessColor(bool want_lossless) override; |
33 void SetObserver(Observer* observer) override; | 34 void SetObserver(Observer* observer) override; |
34 | 35 |
35 Observer* observer() { return observer_; } | 36 Observer* observer() { return observer_; } |
36 | 37 |
37 base::WeakPtr<FakeVideoStream> GetWeakPtr(); | 38 base::WeakPtr<FakeVideoStream> GetWeakPtr(); |
38 | 39 |
39 private: | 40 private: |
40 Observer* observer_ = nullptr; | 41 Observer* observer_ = nullptr; |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
105 bool is_connected_ = true; | 106 bool is_connected_ = true; |
106 ErrorCode disconnect_error_ = OK; | 107 ErrorCode disconnect_error_ = OK; |
107 | 108 |
108 DISALLOW_COPY_AND_ASSIGN(FakeConnectionToClient); | 109 DISALLOW_COPY_AND_ASSIGN(FakeConnectionToClient); |
109 }; | 110 }; |
110 | 111 |
111 } // namespace protocol | 112 } // namespace protocol |
112 } // namespace remoting | 113 } // namespace remoting |
113 | 114 |
114 #endif // REMOTING_PROTOCOL_FAKE_CONNECTION_TO_CLIENT_H_ | 115 #endif // REMOTING_PROTOCOL_FAKE_CONNECTION_TO_CLIENT_H_ |
OLD | NEW |