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

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

Issue 1805813002: [Media Router] Wiring for searching route providers for new sinks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments and tests Created 4 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
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 #include "chrome/browser/media/android/router/media_router_android.h" 5 #include "chrome/browser/media/android/router/media_router_android.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 NOTIMPLEMENTED(); 240 NOTIMPLEMENTED();
241 } 241 }
242 242
243 void MediaRouterAndroid::ClearIssue(const Issue::Id& issue_id) { 243 void MediaRouterAndroid::ClearIssue(const Issue::Id& issue_id) {
244 NOTIMPLEMENTED(); 244 NOTIMPLEMENTED();
245 } 245 }
246 246
247 void MediaRouterAndroid::OnUserGesture() { 247 void MediaRouterAndroid::OnUserGesture() {
248 } 248 }
249 249
250 void MediaRouterAndroid::SearchSinksAndCreateRoute(
251 const MediaSource::Id& source_id,
252 const MediaSink::Id& sink_id,
253 const std::string& search_input,
254 const std::string& domain,
255 const GURL& origin,
256 content::WebContents* web_contents,
257 const std::vector<MediaRouteResponseCallback>& route_callbacks,
258 const MediaSinkSearchResponseCallback& sink_callback,
259 base::TimeDelta timeout,
260 bool off_the_record) {
261 NOTIMPLEMENTED();
262 }
263
250 void MediaRouterAndroid::DetachRoute(const MediaRoute::Id& route_id) { 264 void MediaRouterAndroid::DetachRoute(const MediaRoute::Id& route_id) {
251 JNIEnv* env = base::android::AttachCurrentThread(); 265 JNIEnv* env = base::android::AttachCurrentThread();
252 ScopedJavaLocalRef<jstring> jroute_id = 266 ScopedJavaLocalRef<jstring> jroute_id =
253 base::android::ConvertUTF8ToJavaString(env, route_id); 267 base::android::ConvertUTF8ToJavaString(env, route_id);
254 Java_ChromeMediaRouter_detachRoute( 268 Java_ChromeMediaRouter_detachRoute(
255 env, java_media_router_.obj(), jroute_id.obj()); 269 env, java_media_router_.obj(), jroute_id.obj());
256 } 270 }
257 271
258 bool MediaRouterAndroid::RegisterMediaSinksObserver( 272 bool MediaRouterAndroid::RegisterMediaSinksObserver(
259 MediaSinksObserver* observer) { 273 MediaSinksObserver* observer) {
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 scoped_ptr<content::PresentationSessionMessage> message( 477 scoped_ptr<content::PresentationSessionMessage> message(
464 new content::PresentationSessionMessage(content::TEXT)); 478 new content::PresentationSessionMessage(content::TEXT));
465 message->message = ConvertJavaStringToUTF8(env, jmessage); 479 message->message = ConvertJavaStringToUTF8(env, jmessage);
466 session_messages.push_back(std::move(message)); 480 session_messages.push_back(std::move(message));
467 481
468 FOR_EACH_OBSERVER(PresentationSessionMessagesObserver, *observer_list, 482 FOR_EACH_OBSERVER(PresentationSessionMessagesObserver, *observer_list,
469 OnMessagesReceived(session_messages, true)); 483 OnMessagesReceived(session_messages, true));
470 } 484 }
471 485
472 } // namespace media_router 486 } // namespace media_router
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698