| OLD | NEW | 
|---|
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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/android/tab_web_contents_delegate_android.h" | 5 #include "chrome/browser/android/tab_web_contents_delegate_android.h" | 
| 6 | 6 | 
|  | 7 #include <stddef.h> | 
|  | 8 | 
| 7 #include "base/android/jni_android.h" | 9 #include "base/android/jni_android.h" | 
| 8 #include "base/android/jni_string.h" | 10 #include "base/android/jni_string.h" | 
| 9 #include "base/command_line.h" | 11 #include "base/command_line.h" | 
| 10 #include "chrome/browser/android/feature_utilities.h" | 12 #include "chrome/browser/android/feature_utilities.h" | 
| 11 #include "chrome/browser/android/hung_renderer_infobar_delegate.h" | 13 #include "chrome/browser/android/hung_renderer_infobar_delegate.h" | 
| 12 #include "chrome/browser/android/media/media_throttle_infobar_delegate.h" | 14 #include "chrome/browser/android/media/media_throttle_infobar_delegate.h" | 
| 13 #include "chrome/browser/chrome_notification_types.h" | 15 #include "chrome/browser/chrome_notification_types.h" | 
| 14 #include "chrome/browser/file_select_helper.h" | 16 #include "chrome/browser/file_select_helper.h" | 
| 15 #include "chrome/browser/infobars/infobar_service.h" | 17 #include "chrome/browser/infobars/infobar_service.h" | 
| 16 #include "chrome/browser/media/media_capture_devices_dispatcher.h" | 18 #include "chrome/browser/media/media_capture_devices_dispatcher.h" | 
| (...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 473 jboolean IsCapturingVideo(JNIEnv* env, | 475 jboolean IsCapturingVideo(JNIEnv* env, | 
| 474                           const JavaParamRef<jclass>& clazz, | 476                           const JavaParamRef<jclass>& clazz, | 
| 475                           const JavaParamRef<jobject>& java_web_contents) { | 477                           const JavaParamRef<jobject>& java_web_contents) { | 
| 476   content::WebContents* web_contents = | 478   content::WebContents* web_contents = | 
| 477       content::WebContents::FromJavaWebContents(java_web_contents); | 479       content::WebContents::FromJavaWebContents(java_web_contents); | 
| 478   scoped_refptr<MediaStreamCaptureIndicator> indicator = | 480   scoped_refptr<MediaStreamCaptureIndicator> indicator = | 
| 479       MediaCaptureDevicesDispatcher::GetInstance()-> | 481       MediaCaptureDevicesDispatcher::GetInstance()-> | 
| 480           GetMediaStreamCaptureIndicator(); | 482           GetMediaStreamCaptureIndicator(); | 
| 481   return indicator->IsCapturingVideo(web_contents); | 483   return indicator->IsCapturingVideo(web_contents); | 
| 482 } | 484 } | 
| OLD | NEW | 
|---|