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

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

Issue 2209993003: Add missing using statements for JNI types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 11 matching lines...) Expand all
22 #include "chrome/browser/media/router/media_sinks_observer.h" 22 #include "chrome/browser/media/router/media_sinks_observer.h"
23 #include "chrome/browser/media/router/route_message.h" 23 #include "chrome/browser/media/router/route_message.h"
24 #include "chrome/browser/media/router/route_message_observer.h" 24 #include "chrome/browser/media/router/route_message_observer.h"
25 #include "chrome/browser/media/router/route_request_result.h" 25 #include "chrome/browser/media/router/route_request_result.h"
26 #include "content/public/browser/browser_context.h" 26 #include "content/public/browser/browser_context.h"
27 #include "jni/ChromeMediaRouter_jni.h" 27 #include "jni/ChromeMediaRouter_jni.h"
28 #include "url/gurl.h" 28 #include "url/gurl.h"
29 29
30 using base::android::ConvertUTF8ToJavaString; 30 using base::android::ConvertUTF8ToJavaString;
31 using base::android::ConvertJavaStringToUTF8; 31 using base::android::ConvertJavaStringToUTF8;
32 using base::android::JavaParamRef;
32 using base::android::ScopedJavaLocalRef; 33 using base::android::ScopedJavaLocalRef;
33 using base::android::AttachCurrentThread; 34 using base::android::AttachCurrentThread;
34 35
35 namespace media_router { 36 namespace media_router {
36 37
37 MediaRouterAndroid::MediaRouteRequest::MediaRouteRequest( 38 MediaRouterAndroid::MediaRouteRequest::MediaRouteRequest(
38 const MediaSource& source, 39 const MediaSource& source,
39 const std::string& presentation_id, 40 const std::string& presentation_id,
40 const std::vector<MediaRouteResponseCallback>& callbacks) 41 const std::vector<MediaRouteResponseCallback>& callbacks)
41 : media_source(source), 42 : media_source(source),
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 return; 481 return;
481 482
482 std::vector<RouteMessage> messages(1); 483 std::vector<RouteMessage> messages(1);
483 messages.front().type = RouteMessage::TEXT; 484 messages.front().type = RouteMessage::TEXT;
484 messages.front().text = ConvertJavaStringToUTF8(env, jmessage); 485 messages.front().text = ConvertJavaStringToUTF8(env, jmessage);
485 FOR_EACH_OBSERVER(RouteMessageObserver, *observer_list, 486 FOR_EACH_OBSERVER(RouteMessageObserver, *observer_list,
486 OnMessagesReceived(messages)); 487 OnMessagesReceived(messages));
487 } 488 }
488 489
489 } // namespace media_router 490 } // namespace media_router
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698