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

Unified Diff: remoting/protocol/fake_connection_to_client.h

Issue 2083843002: Replace VideoStream::SizeCallback with VideoStream::Observer interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@merge-sched-stream
Patch Set: Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/client_session_unittest.cc ('k') | remoting/protocol/fake_connection_to_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « remoting/host/client_session_unittest.cc ('k') | remoting/protocol/fake_connection_to_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698