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

Side by Side Diff: chrome/browser/media/android/router/media_router_dialog_controller_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_dialog_controller_and roid.h" 5 #include "chrome/browser/media/android/router/media_router_dialog_controller_and roid.h"
6 6
7 #include "base/android/context_utils.h" 7 #include "base/android/context_utils.h"
8 #include "base/android/jni_android.h" 8 #include "base/android/jni_android.h"
9 #include "base/android/jni_string.h" 9 #include "base/android/jni_string.h"
10 #include "chrome/browser/media/android/router/media_router_android.h" 10 #include "chrome/browser/media/android/router/media_router_android.h"
11 #include "chrome/browser/media/router/media_router.h" 11 #include "chrome/browser/media/router/media_router.h"
12 #include "chrome/browser/media/router/media_router_factory.h" 12 #include "chrome/browser/media/router/media_router_factory.h"
13 #include "chrome/browser/media/router/media_source.h" 13 #include "chrome/browser/media/router/media_source.h"
14 #include "chrome/browser/media/router/presentation_request.h" 14 #include "chrome/browser/media/router/presentation_request.h"
15 #include "content/public/browser/browser_context.h" 15 #include "content/public/browser/browser_context.h"
16 #include "content/public/browser/browser_thread.h" 16 #include "content/public/browser/browser_thread.h"
17 #include "content/public/browser/web_contents.h" 17 #include "content/public/browser/web_contents.h"
18 #include "content/public/browser/web_contents_delegate.h" 18 #include "content/public/browser/web_contents_delegate.h"
19 #include "jni/ChromeMediaRouterDialogController_jni.h" 19 #include "jni/ChromeMediaRouterDialogController_jni.h"
20 20
21 DEFINE_WEB_CONTENTS_USER_DATA_KEY( 21 DEFINE_WEB_CONTENTS_USER_DATA_KEY(
22 media_router::MediaRouterDialogControllerAndroid); 22 media_router::MediaRouterDialogControllerAndroid);
23 23
24 using base::android::ConvertJavaStringToUTF8; 24 using base::android::ConvertJavaStringToUTF8;
25 using base::android::JavaParamRef;
26 using base::android::ScopedJavaLocalRef;
25 using content::WebContents; 27 using content::WebContents;
26 28
27 namespace media_router { 29 namespace media_router {
28 30
29 // static 31 // static
30 MediaRouterDialogControllerAndroid* 32 MediaRouterDialogControllerAndroid*
31 MediaRouterDialogControllerAndroid::GetOrCreateForWebContents( 33 MediaRouterDialogControllerAndroid::GetOrCreateForWebContents(
32 WebContents* web_contents) { 34 WebContents* web_contents) {
33 DCHECK(web_contents); 35 DCHECK(web_contents);
34 // This call does nothing if the controller already exists. 36 // This call does nothing if the controller already exists.
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 } 150 }
149 151
150 bool MediaRouterDialogControllerAndroid::IsShowingMediaRouterDialog() const { 152 bool MediaRouterDialogControllerAndroid::IsShowingMediaRouterDialog() const {
151 JNIEnv* env = base::android::AttachCurrentThread(); 153 JNIEnv* env = base::android::AttachCurrentThread();
152 return Java_ChromeMediaRouterDialogController_isShowingDialog( 154 return Java_ChromeMediaRouterDialogController_isShowingDialog(
153 env, java_dialog_controller_.obj()); 155 env, java_dialog_controller_.obj());
154 } 156 }
155 157
156 } // namespace media_router 158 } // namespace media_router
157 159
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698