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

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

Issue 2837363002: [Media Router] Use DialMediaSinkService in MediaRouterMojoImpl (Closed)
Patch Set: resolve code review comments from Derek Created 3 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/media/android/router/media_router_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_ANDROID_ROUTER_MEDIA_ROUTER_ANDROID_H_ 5 #ifndef CHROME_BROWSER_MEDIA_ANDROID_ROUTER_MEDIA_ROUTER_ANDROID_H_
6 #define CHROME_BROWSER_MEDIA_ANDROID_ROUTER_MEDIA_ROUTER_ANDROID_H_ 6 #define CHROME_BROWSER_MEDIA_ANDROID_ROUTER_MEDIA_ROUTER_ANDROID_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 void AddIssue(const IssueInfo& issue_info) override; 64 void AddIssue(const IssueInfo& issue_info) override;
65 void ClearIssue(const Issue::Id& issue_id) override; 65 void ClearIssue(const Issue::Id& issue_id) override;
66 void OnUserGesture() override; 66 void OnUserGesture() override;
67 void SearchSinks( 67 void SearchSinks(
68 const MediaSink::Id& sink_id, 68 const MediaSink::Id& sink_id,
69 const MediaSource::Id& source_id, 69 const MediaSource::Id& source_id,
70 const std::string& search_input, 70 const std::string& search_input,
71 const std::string& domain, 71 const std::string& domain,
72 const MediaSinkSearchResponseCallback& sink_callback) override; 72 const MediaSinkSearchResponseCallback& sink_callback) override;
73 void ProvideSinks(const std::string& provider_name, 73 void ProvideSinks(const std::string& provider_name,
74 const std::vector<MediaSinkInternal>& sinks) override; 74 std::vector<MediaSinkInternal> sinks) override;
75 75
76 // The methods called by the Java bridge. 76 // The methods called by the Java bridge.
77 // Notifies the media router that information about sinks is received for 77 // Notifies the media router that information about sinks is received for
78 // a specific source id. 78 // a specific source id.
79 void OnSinksReceived(const MediaSource::Id& source_id, 79 void OnSinksReceived(const MediaSource::Id& source_id,
80 const std::vector<MediaSink>& sinks); 80 const std::vector<MediaSink>& sinks);
81 81
82 // Notifies the media router about a successful route creation. 82 // Notifies the media router about a successful route creation.
83 void OnRouteCreated(const MediaRoute::Id& route_id, 83 void OnRouteCreated(const MediaRoute::Id& route_id,
84 const MediaSink::Id& sink_id, 84 const MediaSink::Id& sink_id,
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 MediaRoute::Id, 159 MediaRoute::Id,
160 std::unique_ptr<base::ObserverList<RouteMessageObserver>>>; 160 std::unique_ptr<base::ObserverList<RouteMessageObserver>>>;
161 MessageObservers message_observers_; 161 MessageObservers message_observers_;
162 162
163 DISALLOW_COPY_AND_ASSIGN(MediaRouterAndroid); 163 DISALLOW_COPY_AND_ASSIGN(MediaRouterAndroid);
164 }; 164 };
165 165
166 } // namespace media_router 166 } // namespace media_router
167 167
168 #endif // CHROME_BROWSER_MEDIA_ANDROID_ROUTER_MEDIA_ROUTER_ANDROID_H_ 168 #endif // CHROME_BROWSER_MEDIA_ANDROID_ROUTER_MEDIA_ROUTER_ANDROID_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/media/android/router/media_router_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698