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

Side by Side Diff: chrome/browser/android/tab_web_contents_delegate_android.cc

Issue 1871343002: Remove PermissionContext factories (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | chrome/browser/background_sync/background_sync_permission_context_factory.h » ('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 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> 7 #include <stddef.h>
8 8
9 #include "base/android/jni_android.h" 9 #include "base/android/jni_android.h"
10 #include "base/android/jni_string.h" 10 #include "base/android/jni_string.h"
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "chrome/browser/android/feature_utilities.h" 12 #include "chrome/browser/android/feature_utilities.h"
13 #include "chrome/browser/android/hung_renderer_infobar_delegate.h" 13 #include "chrome/browser/android/hung_renderer_infobar_delegate.h"
14 #include "chrome/browser/android/media/media_throttle_infobar_delegate.h" 14 #include "chrome/browser/android/media/media_throttle_infobar_delegate.h"
15 #include "chrome/browser/chrome_notification_types.h" 15 #include "chrome/browser/chrome_notification_types.h"
16 #include "chrome/browser/file_select_helper.h" 16 #include "chrome/browser/file_select_helper.h"
17 #include "chrome/browser/infobars/infobar_service.h" 17 #include "chrome/browser/infobars/infobar_service.h"
18 #include "chrome/browser/media/media_capture_devices_dispatcher.h" 18 #include "chrome/browser/media/media_capture_devices_dispatcher.h"
19 #include "chrome/browser/media/media_stream_capture_indicator.h" 19 #include "chrome/browser/media/media_stream_capture_indicator.h"
20 #include "chrome/browser/media/protected_media_identifier_permission_context.h" 20 #include "chrome/browser/media/protected_media_identifier_permission_context.h"
21 #include "chrome/browser/media/protected_media_identifier_permission_context_fac tory.h"
22 #include "chrome/browser/prerender/prerender_manager.h" 21 #include "chrome/browser/prerender/prerender_manager.h"
23 #include "chrome/browser/prerender/prerender_manager_factory.h" 22 #include "chrome/browser/prerender/prerender_manager_factory.h"
24 #include "chrome/browser/profiles/profile.h" 23 #include "chrome/browser/profiles/profile.h"
25 #include "chrome/browser/ui/android/bluetooth_chooser_android.h" 24 #include "chrome/browser/ui/android/bluetooth_chooser_android.h"
26 #include "chrome/browser/ui/blocked_content/popup_blocker_tab_helper.h" 25 #include "chrome/browser/ui/blocked_content/popup_blocker_tab_helper.h"
27 #include "chrome/browser/ui/find_bar/find_notification_details.h" 26 #include "chrome/browser/ui/find_bar/find_notification_details.h"
28 #include "chrome/browser/ui/find_bar/find_tab_helper.h" 27 #include "chrome/browser/ui/find_bar/find_tab_helper.h"
29 #include "chrome/browser/ui/tab_helpers.h" 28 #include "chrome/browser/ui/tab_helpers.h"
30 #include "chrome/common/chrome_switches.h" 29 #include "chrome/common/chrome_switches.h"
31 #include "chrome/common/url_constants.h" 30 #include "chrome/common/url_constants.h"
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 jboolean IsCapturingVideo(JNIEnv* env, 480 jboolean IsCapturingVideo(JNIEnv* env,
482 const JavaParamRef<jclass>& clazz, 481 const JavaParamRef<jclass>& clazz,
483 const JavaParamRef<jobject>& java_web_contents) { 482 const JavaParamRef<jobject>& java_web_contents) {
484 content::WebContents* web_contents = 483 content::WebContents* web_contents =
485 content::WebContents::FromJavaWebContents(java_web_contents); 484 content::WebContents::FromJavaWebContents(java_web_contents);
486 scoped_refptr<MediaStreamCaptureIndicator> indicator = 485 scoped_refptr<MediaStreamCaptureIndicator> indicator =
487 MediaCaptureDevicesDispatcher::GetInstance()-> 486 MediaCaptureDevicesDispatcher::GetInstance()->
488 GetMediaStreamCaptureIndicator(); 487 GetMediaStreamCaptureIndicator();
489 return indicator->IsCapturingVideo(web_contents); 488 return indicator->IsCapturingVideo(web_contents);
490 } 489 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/background_sync/background_sync_permission_context_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698