Chromium Code Reviews| Index: chrome/browser/media/router/local_media_routes_observer.h |
| diff --git a/chrome/browser/media/router/local_media_routes_observer.h b/chrome/browser/media/router/local_media_routes_observer.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..20947fcd485ae9a51bb3a87ea78c976a6b96277f |
| --- /dev/null |
| +++ b/chrome/browser/media/router/local_media_routes_observer.h |
| @@ -0,0 +1,32 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_MEDIA_ROUTER_LOCAL_MEDIA_ROUTES_OBSERVER_H_ |
| +#define CHROME_BROWSER_MEDIA_ROUTER_LOCAL_MEDIA_ROUTES_OBSERVER_H_ |
| + |
| +#include "base/macros.h" |
| + |
| +namespace media_router { |
| + |
| +class MediaRouter; |
| + |
| +// 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.
|
| +class LocalMediaRoutesObserver { |
| + public: |
| + explicit LocalMediaRoutesObserver(MediaRouter* router); |
| + virtual ~LocalMediaRoutesObserver(); |
| + |
| + // Called when a local route has been successfully created or if there has |
| + // been an update to the list of routes. |
| + 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.
|
| + |
| + private: |
| + MediaRouter* const router_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(LocalMediaRoutesObserver); |
| +}; |
| + |
| +} // namespace media_router |
| + |
| +#endif // CHROME_BROWSER_MEDIA_ROUTER_LOCAL_MEDIA_ROUTES_OBSERVER_H_ |