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

Unified Diff: chrome/common/media_router/discovery/media_sink_service.h

Issue 2878103004: [Media Router] Create MediaSinkServiceBase and make DialMediaSinkService inherit from it (Closed)
Patch Set: rebase with master Created 3 years, 7 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 | « chrome/browser/media/router/discovery/media_sink_service_base_unittest.cc ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/media_router/discovery/media_sink_service.h
diff --git a/chrome/common/media_router/discovery/media_sink_service.h b/chrome/common/media_router/discovery/media_sink_service.h
index 5e2f0bcd48f44b591949db9d916e0167af88fc89..5f88cf916e743ee61fabcef3d5faa538de2d51ce 100644
--- a/chrome/common/media_router/discovery/media_sink_service.h
+++ b/chrome/common/media_router/discovery/media_sink_service.h
@@ -18,7 +18,7 @@ namespace media_router {
// MediaSinks. Often these are remote devices, like Chromecast. In addition, the
// service is capable of answering MediaSink queries using the sinks that it
// generated.
-// This class is not thread safe. All methods must be called from the IO thread.
+// This class is not thread safe. All methods must be called from the UI thread.
class MediaSinkService {
public:
// Callback to be invoked when this class finishes sink discovering.
@@ -36,6 +36,9 @@ class MediaSinkService {
// |callback|.
virtual void Start() = 0;
+ // Stops sink discovery. No-ops if already stopped.
+ virtual void Stop() = 0;
+
protected:
OnSinksDiscoveredCallback sink_discovery_callback_;
« no previous file with comments | « chrome/browser/media/router/discovery/media_sink_service_base_unittest.cc ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698