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

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

Issue 2679893002: [Media Router] Add ProvideSinks() Mojo API (Closed)
Patch Set: fix android compile error Created 3 years, 8 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 <jni.h> 8 #include <jni.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 const SendRouteMessageCallback& callback) override; 66 const SendRouteMessageCallback& callback) override;
67 void AddIssue(const IssueInfo& issue_info) override; 67 void AddIssue(const IssueInfo& issue_info) override;
68 void ClearIssue(const Issue::Id& issue_id) override; 68 void ClearIssue(const Issue::Id& issue_id) override;
69 void OnUserGesture() override; 69 void OnUserGesture() override;
70 void SearchSinks( 70 void SearchSinks(
71 const MediaSink::Id& sink_id, 71 const MediaSink::Id& sink_id,
72 const MediaSource::Id& source_id, 72 const MediaSource::Id& source_id,
73 const std::string& search_input, 73 const std::string& search_input,
74 const std::string& domain, 74 const std::string& domain,
75 const MediaSinkSearchResponseCallback& sink_callback) override; 75 const MediaSinkSearchResponseCallback& sink_callback) override;
76 void ProvideSinks(const std::string& provider_name,
77 const std::vector<MediaSinkInternal>& sinks) override;
76 78
77 // The methods called by the Java counterpart. 79 // The methods called by the Java counterpart.
78 80
79 // Notifies the media router that information about sinks is received for 81 // Notifies the media router that information about sinks is received for
80 // a specific source URN. 82 // a specific source URN.
81 void OnSinksReceived(JNIEnv* env, 83 void OnSinksReceived(JNIEnv* env,
82 const base::android::JavaParamRef<jobject>& obj, 84 const base::android::JavaParamRef<jobject>& obj,
83 const base::android::JavaParamRef<jstring>& jsource_urn, 85 const base::android::JavaParamRef<jstring>& jsource_urn,
84 jint jcount); 86 jint jcount);
85 87
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 MediaRoute::Id, 175 MediaRoute::Id,
174 std::unique_ptr<base::ObserverList<RouteMessageObserver>>>; 176 std::unique_ptr<base::ObserverList<RouteMessageObserver>>>;
175 MessageObservers message_observers_; 177 MessageObservers message_observers_;
176 178
177 DISALLOW_COPY_AND_ASSIGN(MediaRouterAndroid); 179 DISALLOW_COPY_AND_ASSIGN(MediaRouterAndroid);
178 }; 180 };
179 181
180 } // namespace media_router 182 } // namespace media_router
181 183
182 #endif // CHROME_BROWSER_MEDIA_ANDROID_ROUTER_MEDIA_ROUTER_ANDROID_H_ 184 #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