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..54a4697745e669932aade9d8a63c85390b6132e7 |
| --- /dev/null |
| +++ b/chrome/browser/media/router/local_media_routes_observer.h |
| @@ -0,0 +1,34 @@ |
| +// 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 <vector> |
| + |
| +// #include "base/macros.h" |
|
imcheng
2015/10/01 18:46:50
remove these includes? they don't appear to be use
apacible
2015/10/01 23:21:47
Done.
|
| +#include "chrome/browser/media/router/media_route.h" |
| + |
| +namespace media_router { |
| + |
| +class MediaRouter; |
| + |
| +// Base class for observing when a new route has been created locally. |
| +class LocalMediaRoutesObserver { |
| + public: |
| + explicit LocalMediaRoutesObserver(MediaRouter* router); |
| + virtual ~LocalMediaRoutesObserver(); |
| + |
| + // Called when a local route has been successfully created. |
| + virtual void OnLocalRouteCreated() {} |
| + |
| + private: |
| + MediaRouter* router_; |
|
imcheng
2015/10/01 18:46:49
MediaRouter* const router_;
apacible
2015/10/01 23:21:47
Done.
|
| + |
| + DISALLOW_COPY_AND_ASSIGN(LocalMediaRoutesObserver); |
| +}; |
| + |
| +} // namespace media_router |
| + |
| +#endif // CHROME_BROWSER_MEDIA_ROUTER_LOCAL_MEDIA_ROUTES_OBSERVER_H_ |