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

Side by Side Diff: chrome/browser/media/router/media_router_impl.h

Issue 1055403006: Upstreaming review for Media Router Mojo interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporate latest changes to MR API. Created 5 years, 7 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_IMPL_H_ 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_IMPL_H_
6 #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_IMPL_H_ 6 #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 #include <string> 10 #include <string>
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 public: 42 public:
43 ~MediaRouterImpl() override; 43 ~MediaRouterImpl() override;
44 44
45 // |provider_manager_host_| must be null at the time this is called. 45 // |provider_manager_host_| must be null at the time this is called.
46 // |provider_manager_host| must not be null. 46 // |provider_manager_host| must not be null.
47 // Does not take ownership of |provider_manager_host_|. 47 // Does not take ownership of |provider_manager_host_|.
48 // This function can only be called once. 48 // This function can only be called once.
49 void Initialize(MediaRouter* provider_manager_host); 49 void Initialize(MediaRouter* provider_manager_host);
50 50
51 // MediaRouter implementation. 51 // MediaRouter implementation.
52 void RequestRoute(const MediaSourceId& source, 52 void CreateRoute(const MediaSourceId& source,
53 const MediaSinkId& sink_id, 53 const MediaSinkId& sink_id,
54 const MediaRouteResponseCallback& callback) override; 54 const MediaRouteResponseCallback& callback) override;
55 void CloseRoute(const MediaRouteId& route_id) override; 55 void CloseRoute(const MediaRouteId& route_id) override;
56 void PostMessage(const MediaRouteId& route_id, 56 void PostMessage(const MediaRouteId& route_id,
57 const std::string& message) override; 57 const std::string& message) override;
58 void ClearIssue(const std::string& issue_id) override;
58 59
59 private: 60 private:
60 friend class MediaRouterImplFactory; 61 friend class MediaRouterImplFactory;
61 62
62 // Use MediaRouterImplFactory::GetForBrowserContext(). 63 // Use MediaRouterImplFactory::GetForBrowserContext().
63 MediaRouterImpl(); 64 MediaRouterImpl();
64 65
65 // MediaRouter implementation. 66 // MediaRouter implementation.
66 bool RegisterMediaSinksObserver(MediaSinksObserver* observer) override; 67 bool RegisterMediaSinksObserver(MediaSinksObserver* observer) override;
67 void UnregisterMediaSinksObserver(MediaSinksObserver* observer) override; 68 void UnregisterMediaSinksObserver(MediaSinksObserver* observer) override;
68 bool RegisterMediaRoutesObserver(MediaRoutesObserver* observer) override; 69 bool RegisterMediaRoutesObserver(MediaRoutesObserver* observer) override;
69 void UnregisterMediaRoutesObserver(MediaRoutesObserver* observer) override; 70 void UnregisterMediaRoutesObserver(MediaRoutesObserver* observer) override;
71 void AddIssuesObserver(IssuesObserver* observer) override;
72 void RemoveIssuesObserver(IssuesObserver* observer) override;
70 73
71 // MRPM host to forward calls to MRPM to. 74 // MRPM host to forward calls to MRPM to.
72 // This class does not own provider_manager_host_. 75 // This class does not own provider_manager_host_.
73 MediaRouter* provider_manager_host_; 76 MediaRouter* provider_manager_host_;
74 77
75 DISALLOW_COPY_AND_ASSIGN(MediaRouterImpl); 78 DISALLOW_COPY_AND_ASSIGN(MediaRouterImpl);
76 }; 79 };
77 80
78 } // namespace media_router 81 } // namespace media_router
79 82
80 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_IMPL_H_ 83 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/media/router/media_router.gyp ('k') | chrome/browser/media/router/media_router_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698