Index: remoting/protocol/fake_connection_to_client.h |
diff --git a/remoting/protocol/fake_connection_to_client.h b/remoting/protocol/fake_connection_to_client.h |
index 5e61dcfda0ca3f07b6eb062a94dd1fc398f5a0cb..4dfe7cc633d9e9d2957943fb01021b49975b89cb 100644 |
--- a/remoting/protocol/fake_connection_to_client.h |
+++ b/remoting/protocol/fake_connection_to_client.h |
@@ -30,14 +30,14 @@ class FakeVideoStream : public protocol::VideoStream { |
void OnInputEventReceived(int64_t event_timestamp) override; |
void SetLosslessEncode(bool want_lossless) override; |
void SetLosslessColor(bool want_lossless) override; |
- void SetSizeCallback(const SizeCallback& size_callback) override; |
+ void SetObserver(Observer* observer) override; |
- const SizeCallback& size_callback() { return size_callback_; } |
+ Observer* observer() { return observer_; } |
base::WeakPtr<FakeVideoStream> GetWeakPtr(); |
private: |
- SizeCallback size_callback_; |
+ Observer* observer_ = nullptr; |
base::WeakPtrFactory<FakeVideoStream> weak_factory_; |