OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_LOCAL_MEDIA_ROUTES_OBSERVER_H_ | |
6 #define CHROME_BROWSER_MEDIA_ROUTER_LOCAL_MEDIA_ROUTES_OBSERVER_H_ | |
7 | |
8 #include "base/macros.h" | |
9 | |
10 namespace media_router { | |
11 | |
12 class MediaRouter; | |
13 | |
14 // Base class for observing when a new route has been created locally. | |
imcheng
2015/10/02 17:21:11
Please update comments.
apacible
2015/10/02 18:48:20
Done.
| |
15 class LocalMediaRoutesObserver { | |
16 public: | |
17 explicit LocalMediaRoutesObserver(MediaRouter* router); | |
18 virtual ~LocalMediaRoutesObserver(); | |
19 | |
20 // Called when a local route has been successfully created or if there has | |
21 // been an update to the list of routes. | |
22 virtual void UpdateHasLocalRoute(bool has_local_route) {} | |
imcheng
2015/10/02 17:21:11
naming: The method name is a little strange. Usual
apacible
2015/10/02 18:48:20
Done.
| |
23 | |
24 private: | |
25 MediaRouter* const router_; | |
26 | |
27 DISALLOW_COPY_AND_ASSIGN(LocalMediaRoutesObserver); | |
28 }; | |
29 | |
30 } // namespace media_router | |
31 | |
32 #endif // CHROME_BROWSER_MEDIA_ROUTER_LOCAL_MEDIA_ROUTES_OBSERVER_H_ | |
OLD | NEW |