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

Side by Side Diff: chrome/browser/media/android/router/media_router_android.h

Issue 1228863005: [MediaRouter] The minimal change to make everything build on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed test_support compile issue on ChromeOS Created 5 years, 5 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
(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_ANDROID_ROUTER_MEDIA_ROUTER_ANDROID_H_
6 #define CHROME_BROWSER_MEDIA_ANDROID_ROUTER_MEDIA_ROUTER_ANDROID_H_
7
8 #include "chrome/browser/media/router/media_router.h"
9
10 namespace content {
11 class BrowserContext;
12 }
13
14 namespace media_router {
15
16 // A stub implementation of MediaRouter interface on Android.
17 class MediaRouterAndroid: public MediaRouter {
imcheng 2015/07/16 18:28:19 nit: space before :
whywhat 2015/07/16 20:17:18 Done.
18 public:
19 ~MediaRouterAndroid() override;
20
21 // MediaRouter implementation.
22 void CreateRoute(const MediaSource::Id& source_id,
23 const MediaSink::Id& sink_id,
24 const GURL& origin,
25 int tab_id,
26 const MediaRouteResponseCallback& callback) override;
27 void JoinRoute(const MediaSource::Id& source,
28 const std::string& presentation_id,
29 const GURL& origin,
30 int tab_id,
31 const MediaRouteResponseCallback& callback) override;
32 void CloseRoute(const MediaRoute::Id& route_id) override;
33 void SendRouteMessage(const MediaRoute::Id& route_id,
34 const std::string& message,
35 const SendRouteMessageCallback& callback) override;
36 void ListenForRouteMessages(
37 const std::vector<MediaRoute::Id>& route_ids,
38 const PresentationSessionMessageCallback& message_cb) override;
39 void ClearIssue(const Issue::Id& issue_id) override;
40
41 private:
42 friend class MediaRouterFactory;
43
44 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
45
46 // MediaRouter implementation.
47 void RegisterMediaSinksObserver(MediaSinksObserver* observer) override;
48 void UnregisterMediaSinksObserver(MediaSinksObserver* observer) override;
49 void RegisterMediaRoutesObserver(MediaRoutesObserver* observer) override;
50 void UnregisterMediaRoutesObserver(MediaRoutesObserver* observer) override;
51 void RegisterIssuesObserver(IssuesObserver* observer) override;
52 void UnregisterIssuesObserver(IssuesObserver* observer) override;
53
54 DISALLOW_COPY_AND_ASSIGN(MediaRouterAndroid);
55 };
56
57 } // namespace media_router
58
59 #endif // CHROME_BROWSER_MEDIA_ANDROID_ROUTER_MEDIA_ROUTER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698