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

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 560323005: [DevTools] Move target-related methods from DevToolsHttpHandlerDelegate to DevToolsManagerDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 3 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 | « chrome/browser/android/dev_tools_server.cc ('k') | chrome/browser/devtools/BUILD.gn » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/chrome_content_browser_client.h" 5 #include "chrome/browser/chrome_content_browser_client.h"
6 6
7 #include <set> 7 #include <set>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 14 matching lines...) Expand all
25 #include "chrome/browser/character_encoding.h" 25 #include "chrome/browser/character_encoding.h"
26 #include "chrome/browser/chrome_content_browser_client_parts.h" 26 #include "chrome/browser/chrome_content_browser_client_parts.h"
27 #include "chrome/browser/chrome_net_benchmarking_message_filter.h" 27 #include "chrome/browser/chrome_net_benchmarking_message_filter.h"
28 #include "chrome/browser/chrome_quota_permission_context.h" 28 #include "chrome/browser/chrome_quota_permission_context.h"
29 #include "chrome/browser/content_settings/content_settings_utils.h" 29 #include "chrome/browser/content_settings/content_settings_utils.h"
30 #include "chrome/browser/content_settings/cookie_settings.h" 30 #include "chrome/browser/content_settings/cookie_settings.h"
31 #include "chrome/browser/content_settings/host_content_settings_map.h" 31 #include "chrome/browser/content_settings/host_content_settings_map.h"
32 #include "chrome/browser/content_settings/permission_request_id.h" 32 #include "chrome/browser/content_settings/permission_request_id.h"
33 #include "chrome/browser/content_settings/tab_specific_content_settings.h" 33 #include "chrome/browser/content_settings/tab_specific_content_settings.h"
34 #include "chrome/browser/defaults.h" 34 #include "chrome/browser/defaults.h"
35 #include "chrome/browser/devtools/chrome_devtools_manager_delegate.h"
36 #include "chrome/browser/download/download_prefs.h" 35 #include "chrome/browser/download/download_prefs.h"
37 #include "chrome/browser/font_family_cache.h" 36 #include "chrome/browser/font_family_cache.h"
38 #include "chrome/browser/geolocation/chrome_access_token_store.h" 37 #include "chrome/browser/geolocation/chrome_access_token_store.h"
39 #include "chrome/browser/geolocation/geolocation_permission_context.h" 38 #include "chrome/browser/geolocation/geolocation_permission_context.h"
40 #include "chrome/browser/geolocation/geolocation_permission_context_factory.h" 39 #include "chrome/browser/geolocation/geolocation_permission_context_factory.h"
41 #include "chrome/browser/media/cast_transport_host_filter.h" 40 #include "chrome/browser/media/cast_transport_host_filter.h"
42 #include "chrome/browser/media/media_capture_devices_dispatcher.h" 41 #include "chrome/browser/media/media_capture_devices_dispatcher.h"
43 #include "chrome/browser/media/midi_permission_context.h" 42 #include "chrome/browser/media/midi_permission_context.h"
44 #include "chrome/browser/media/midi_permission_context_factory.h" 43 #include "chrome/browser/media/midi_permission_context_factory.h"
45 #include "chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h" 44 #include "chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h"
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 #include "base/debug/leak_annotations.h" 166 #include "base/debug/leak_annotations.h"
168 #include "components/crash/app/breakpad_linux.h" 167 #include "components/crash/app/breakpad_linux.h"
169 #include "components/crash/browser/crash_handler_host_linux.h" 168 #include "components/crash/browser/crash_handler_host_linux.h"
170 #endif 169 #endif
171 170
172 #if defined(OS_ANDROID) 171 #if defined(OS_ANDROID)
173 #include "ui/base/ui_base_paths.h" 172 #include "ui/base/ui_base_paths.h"
174 #include "ui/gfx/android/device_display_info.h" 173 #include "ui/gfx/android/device_display_info.h"
175 #endif 174 #endif
176 175
176 #if defined(OS_ANDROID)
177 #include "chrome/browser/android/dev_tools_manager_delegate_android.h"
178 #else
179 #include "chrome/browser/devtools/chrome_devtools_manager_delegate.h"
180 #endif
181
177 #if !defined(OS_CHROMEOS) 182 #if !defined(OS_CHROMEOS)
178 #include "chrome/browser/signin/chrome_signin_client.h" 183 #include "chrome/browser/signin/chrome_signin_client.h"
179 #include "chrome/browser/signin/chrome_signin_client_factory.h" 184 #include "chrome/browser/signin/chrome_signin_client_factory.h"
180 #include "chrome/browser/signin/signin_manager_factory.h" 185 #include "chrome/browser/signin/signin_manager_factory.h"
181 #include "components/signin/core/browser/signin_manager.h" 186 #include "components/signin/core/browser/signin_manager.h"
182 #endif 187 #endif
183 188
184 #if defined(TOOLKIT_VIEWS) 189 #if defined(TOOLKIT_VIEWS)
185 #include "chrome/browser/ui/views/chrome_browser_main_extra_parts_views.h" 190 #include "chrome/browser/ui/views/chrome_browser_main_extra_parts_views.h"
186 #endif 191 #endif
(...skipping 2310 matching lines...) Expand 10 before | Expand all | Expand 10 after
2497 content::BrowserContext* browser_context, 2502 content::BrowserContext* browser_context,
2498 const GURL& security_origin, 2503 const GURL& security_origin,
2499 content::MediaStreamType type) { 2504 content::MediaStreamType type) {
2500 return MediaCaptureDevicesDispatcher::GetInstance() 2505 return MediaCaptureDevicesDispatcher::GetInstance()
2501 ->CheckMediaAccessPermission( 2506 ->CheckMediaAccessPermission(
2502 browser_context, security_origin, type); 2507 browser_context, security_origin, type);
2503 } 2508 }
2504 2509
2505 content::DevToolsManagerDelegate* 2510 content::DevToolsManagerDelegate*
2506 ChromeContentBrowserClient::GetDevToolsManagerDelegate() { 2511 ChromeContentBrowserClient::GetDevToolsManagerDelegate() {
2512 #if defined(OS_ANDROID)
2513 return new DevToolsManagerDelegateAndroid();
2514 #else
2507 return new ChromeDevToolsManagerDelegate(); 2515 return new ChromeDevToolsManagerDelegate();
2516 #endif
2508 } 2517 }
2509 2518
2510 bool ChromeContentBrowserClient::IsPluginAllowedToCallRequestOSFileHandle( 2519 bool ChromeContentBrowserClient::IsPluginAllowedToCallRequestOSFileHandle(
2511 content::BrowserContext* browser_context, 2520 content::BrowserContext* browser_context,
2512 const GURL& url) { 2521 const GURL& url) {
2513 #if defined(ENABLE_EXTENSIONS) 2522 #if defined(ENABLE_EXTENSIONS)
2514 Profile* profile = Profile::FromBrowserContext(browser_context); 2523 Profile* profile = Profile::FromBrowserContext(browser_context);
2515 const extensions::ExtensionSet* extension_set = NULL; 2524 const extensions::ExtensionSet* extension_set = NULL;
2516 if (profile) { 2525 if (profile) {
2517 const ExtensionService* ext_service = 2526 const ExtensionService* ext_service =
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
2593 switches::kDisableWebRtcEncryption, 2602 switches::kDisableWebRtcEncryption,
2594 }; 2603 };
2595 to_command_line->CopySwitchesFrom(from_command_line, 2604 to_command_line->CopySwitchesFrom(from_command_line,
2596 kWebRtcDevSwitchNames, 2605 kWebRtcDevSwitchNames,
2597 arraysize(kWebRtcDevSwitchNames)); 2606 arraysize(kWebRtcDevSwitchNames));
2598 } 2607 }
2599 } 2608 }
2600 #endif // defined(ENABLE_WEBRTC) 2609 #endif // defined(ENABLE_WEBRTC)
2601 2610
2602 } // namespace chrome 2611 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/android/dev_tools_server.cc ('k') | chrome/browser/devtools/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698