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

Unified Diff: chrome/browser/media/router/discovery/dial/dial_registry.h

Issue 2701633002: [Media Router] Add DialMediaSinkService and DeviceDescriptionService (Closed)
Patch Set: fix chromeos compile error Created 3 years, 8 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
Index: chrome/browser/media/router/discovery/dial/dial_registry.h
diff --git a/chrome/browser/media/router/discovery/dial/dial_registry.h b/chrome/browser/media/router/discovery/dial/dial_registry.h
index 962533727f4aa2ac641f5e6d53c7594fd342b048..c1f885c2dea86c32132271f90bb899f549ce1425 100644
--- a/chrome/browser/media/router/discovery/dial/dial_registry.h
+++ b/chrome/browser/media/router/discovery/dial/dial_registry.h
@@ -63,9 +63,9 @@ class DialRegistry : public DialService::Observer,
void OnListenerRemoved();
// pass a reference of |observer| to allow it to notify on DIAL device events.
- // This class does not take ownership of |observer|.
- void RegisterObserver(Observer* observer);
- void UnregisterObserver(Observer* observer);
+ // This class does not take ownership of observer.
+ virtual void RegisterObserver(Observer* observer);
+ virtual void UnregisterObserver(Observer* observer);
// Called by the DIAL API to try to kickoff a discovery if there is not one
// already active.
@@ -102,6 +102,7 @@ class DialRegistry : public DialService::Observer,
using DeviceByLabelMap = std::map<std::string, DialDeviceData*>;
friend class MockDialRegistry;
+ friend class TestDialRegistry;
friend struct base::DefaultSingletonTraits<DialRegistry>;
DialRegistry();

Powered by Google App Engine
This is Rietveld 408576698