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

Side by Side Diff: chrome/browser/extensions/api/dial/dial_registry.h

Issue 2701633002: [Media Router] Add DialMediaSinkService and DeviceDescriptionService (Closed)
Patch Set: Add DialMediaSinkCacheService and unit test Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_EXTENSIONS_API_DIAL_DIAL_REGISTRY_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_DIAL_DIAL_REGISTRY_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_DIAL_DIAL_REGISTRY_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_DIAL_DIAL_REGISTRY_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 ~DialRegistry() override; 65 ~DialRegistry() override;
66 66
67 // Called by the DIAL API when event listeners are added or removed. The dial 67 // Called by the DIAL API when event listeners are added or removed. The dial
68 // service is started after the first listener is added and stopped after the 68 // service is started after the first listener is added and stopped after the
69 // last listener is removed. 69 // last listener is removed.
70 void OnListenerAdded(); 70 void OnListenerAdded();
71 void OnListenerRemoved(); 71 void OnListenerRemoved();
72 72
73 // This class does not take ownership of observer. 73 // This class does not take ownership of observer.
74 void RegisterObserver(Observer* observer); 74 virtual void RegisterObserver(Observer* observer);
75 void UnregisterObserver(Observer* observer); 75 virtual void UnregisterObserver(Observer* observer);
76 76
77 // Called by the DIAL API to try to kickoff a discovery if there is not one 77 // Called by the DIAL API to try to kickoff a discovery if there is not one
78 // already active. 78 // already active.
79 bool DiscoverNow(); 79 bool DiscoverNow();
80 80
81 // Returns the URL of the device description for the device identified by 81 // Returns the URL of the device description for the device identified by
82 // |label|, or an empty GURL if no such device exists. 82 // |label|, or an empty GURL if no such device exists.
83 GURL GetDeviceDescriptionURL(const std::string& label) const; 83 GURL GetDeviceDescriptionURL(const std::string& label) const;
84 84
85 // Adds a device directly to the registry as if it was discovered. For tests 85 // Adds a device directly to the registry as if it was discovered. For tests
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 FRIEND_TEST_ALL_PREFIXES(DialRegistryTest, 201 FRIEND_TEST_ALL_PREFIXES(DialRegistryTest,
202 TestNetworkEventConnectionRestored); 202 TestNetworkEventConnectionRestored);
203 DISALLOW_COPY_AND_ASSIGN(DialRegistry); 203 DISALLOW_COPY_AND_ASSIGN(DialRegistry);
204 }; 204 };
205 205
206 } // namespace dial 206 } // namespace dial
207 } // namespace api 207 } // namespace api
208 } // namespace extensions 208 } // namespace extensions
209 209
210 #endif // CHROME_BROWSER_EXTENSIONS_API_DIAL_DIAL_REGISTRY_H_ 210 #endif // CHROME_BROWSER_EXTENSIONS_API_DIAL_DIAL_REGISTRY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698