Index: chrome/browser/media/android/router/media_router_android.h |
diff --git a/chrome/browser/media/android/router/media_router_android.h b/chrome/browser/media/android/router/media_router_android.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0dbc1179d4d67e4671ec6578cbb3eb2c69c9fa3d |
--- /dev/null |
+++ b/chrome/browser/media/android/router/media_router_android.h |
@@ -0,0 +1,59 @@ |
+// 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_ANDROID_ROUTER_MEDIA_ROUTER_ANDROID_H_ |
+#define CHROME_BROWSER_MEDIA_ANDROID_ROUTER_MEDIA_ROUTER_ANDROID_H_ |
+ |
+#include "chrome/browser/media/router/media_router.h" |
+ |
+namespace content { |
+class BrowserContext; |
+} |
+ |
+namespace media_router { |
+ |
+// A stub implementation of MediaRouter interface on Android. |
+class MediaRouterAndroid: public MediaRouter { |
imcheng
2015/07/16 18:28:19
nit: space before :
whywhat
2015/07/16 20:17:18
Done.
|
+ public: |
+ ~MediaRouterAndroid() override; |
+ |
+ // MediaRouter implementation. |
+ void CreateRoute(const MediaSource::Id& source_id, |
+ const MediaSink::Id& sink_id, |
+ const GURL& origin, |
+ int tab_id, |
+ const MediaRouteResponseCallback& callback) override; |
+ void JoinRoute(const MediaSource::Id& source, |
+ const std::string& presentation_id, |
+ const GURL& origin, |
+ int tab_id, |
+ const MediaRouteResponseCallback& callback) override; |
+ void CloseRoute(const MediaRoute::Id& route_id) override; |
+ void SendRouteMessage(const MediaRoute::Id& route_id, |
+ const std::string& message, |
+ const SendRouteMessageCallback& callback) override; |
+ void ListenForRouteMessages( |
+ const std::vector<MediaRoute::Id>& route_ids, |
+ const PresentationSessionMessageCallback& message_cb) override; |
+ void ClearIssue(const Issue::Id& issue_id) override; |
+ |
+ private: |
+ friend class MediaRouterFactory; |
+ |
+ explicit MediaRouterAndroid(content::BrowserContext* context); |
imcheng
2015/07/16 18:28:19
Unused argument?
whywhat
2015/07/16 20:17:18
Removed the name.
It seems easier to ignore it her
|
+ |
+ // MediaRouter implementation. |
+ void RegisterMediaSinksObserver(MediaSinksObserver* observer) override; |
+ void UnregisterMediaSinksObserver(MediaSinksObserver* observer) override; |
+ void RegisterMediaRoutesObserver(MediaRoutesObserver* observer) override; |
+ void UnregisterMediaRoutesObserver(MediaRoutesObserver* observer) override; |
+ void RegisterIssuesObserver(IssuesObserver* observer) override; |
+ void UnregisterIssuesObserver(IssuesObserver* observer) override; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(MediaRouterAndroid); |
+}; |
+ |
+} // namespace media_router |
+ |
+#endif // CHROME_BROWSER_MEDIA_ANDROID_ROUTER_MEDIA_ROUTER_ANDROID_H_ |