OLD | NEW |
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 27 matching lines...) Expand all Loading... |
38 #include "chrome/browser/extensions/extension_util.h" | 38 #include "chrome/browser/extensions/extension_util.h" |
39 #include "chrome/browser/extensions/extension_web_ui.h" | 39 #include "chrome/browser/extensions/extension_web_ui.h" |
40 #include "chrome/browser/extensions/extension_webkit_preferences.h" | 40 #include "chrome/browser/extensions/extension_webkit_preferences.h" |
41 #include "chrome/browser/extensions/suggest_permission_util.h" | 41 #include "chrome/browser/extensions/suggest_permission_util.h" |
42 #include "chrome/browser/geolocation/chrome_access_token_store.h" | 42 #include "chrome/browser/geolocation/chrome_access_token_store.h" |
43 #include "chrome/browser/google/google_util.h" | 43 #include "chrome/browser/google/google_util.h" |
44 #include "chrome/browser/guestview/adview/adview_guest.h" | 44 #include "chrome/browser/guestview/adview/adview_guest.h" |
45 #include "chrome/browser/guestview/guestview.h" | 45 #include "chrome/browser/guestview/guestview.h" |
46 #include "chrome/browser/guestview/guestview_constants.h" | 46 #include "chrome/browser/guestview/guestview_constants.h" |
47 #include "chrome/browser/guestview/webview/webview_guest.h" | 47 #include "chrome/browser/guestview/webview/webview_guest.h" |
48 #include "chrome/browser/local_discovery/storage/privet_filesystem_backend.h" | |
49 #include "chrome/browser/media/cast_transport_host_filter.h" | 48 #include "chrome/browser/media/cast_transport_host_filter.h" |
50 #include "chrome/browser/media/media_capture_devices_dispatcher.h" | 49 #include "chrome/browser/media/media_capture_devices_dispatcher.h" |
51 #include "chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h" | 50 #include "chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h" |
52 #include "chrome/browser/nacl_host/nacl_browser_delegate_impl.h" | 51 #include "chrome/browser/nacl_host/nacl_browser_delegate_impl.h" |
53 #include "chrome/browser/net/chrome_net_log.h" | 52 #include "chrome/browser/net/chrome_net_log.h" |
54 #include "chrome/browser/notifications/desktop_notification_service.h" | 53 #include "chrome/browser/notifications/desktop_notification_service.h" |
55 #include "chrome/browser/notifications/desktop_notification_service_factory.h" | 54 #include "chrome/browser/notifications/desktop_notification_service_factory.h" |
56 #include "chrome/browser/platform_util.h" | 55 #include "chrome/browser/platform_util.h" |
57 #include "chrome/browser/plugins/plugin_info_message_filter.h" | 56 #include "chrome/browser/plugins/plugin_info_message_filter.h" |
58 #include "chrome/browser/prerender/prerender_final_status.h" | 57 #include "chrome/browser/prerender/prerender_final_status.h" |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 #include "base/win/windows_version.h" | 158 #include "base/win/windows_version.h" |
160 #include "chrome/browser/chrome_browser_main_win.h" | 159 #include "chrome/browser/chrome_browser_main_win.h" |
161 #include "sandbox/win/src/sandbox_policy.h" | 160 #include "sandbox/win/src/sandbox_policy.h" |
162 #elif defined(OS_MACOSX) | 161 #elif defined(OS_MACOSX) |
163 #include "chrome/browser/chrome_browser_main_mac.h" | 162 #include "chrome/browser/chrome_browser_main_mac.h" |
164 #include "chrome/browser/spellchecker/spellcheck_message_filter_mac.h" | 163 #include "chrome/browser/spellchecker/spellcheck_message_filter_mac.h" |
165 #include "components/breakpad/app/breakpad_mac.h" | 164 #include "components/breakpad/app/breakpad_mac.h" |
166 #elif defined(OS_CHROMEOS) | 165 #elif defined(OS_CHROMEOS) |
167 #include "chrome/browser/chromeos/chrome_browser_main_chromeos.h" | 166 #include "chrome/browser/chromeos/chrome_browser_main_chromeos.h" |
168 #include "chrome/browser/chromeos/drive/fileapi/file_system_backend_delegate.h" | 167 #include "chrome/browser/chromeos/drive/fileapi/file_system_backend_delegate.h" |
| 168 #include "chrome/browser/chromeos/file_system_provider/fileapi/backend_delegate.
h" |
169 #include "chrome/browser/chromeos/fileapi/file_system_backend.h" | 169 #include "chrome/browser/chromeos/fileapi/file_system_backend.h" |
170 #include "chrome/browser/chromeos/login/startup_utils.h" | 170 #include "chrome/browser/chromeos/login/startup_utils.h" |
171 #include "chrome/browser/chromeos/login/user_manager.h" | 171 #include "chrome/browser/chromeos/login/user_manager.h" |
172 #include "chrome/browser/chromeos/system/input_device_settings.h" | 172 #include "chrome/browser/chromeos/system/input_device_settings.h" |
173 #include "chromeos/chromeos_switches.h" | 173 #include "chromeos/chromeos_switches.h" |
174 #elif defined(OS_LINUX) | 174 #elif defined(OS_LINUX) |
175 #include "chrome/browser/chrome_browser_main_linux.h" | 175 #include "chrome/browser/chrome_browser_main_linux.h" |
176 #elif defined(OS_ANDROID) | 176 #elif defined(OS_ANDROID) |
177 #include "chrome/browser/android/new_tab_page_url_handler.h" | 177 #include "chrome/browser/android/new_tab_page_url_handler.h" |
178 #include "chrome/browser/android/webapps/single_tab_mode_tab_helper.h" | 178 #include "chrome/browser/android/webapps/single_tab_mode_tab_helper.h" |
(...skipping 2359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2538 base::SequencedWorkerPool* pool = content::BrowserThread::GetBlockingPool(); | 2538 base::SequencedWorkerPool* pool = content::BrowserThread::GetBlockingPool(); |
2539 additional_backends->push_back(new MediaFileSystemBackend( | 2539 additional_backends->push_back(new MediaFileSystemBackend( |
2540 storage_partition_path, | 2540 storage_partition_path, |
2541 pool->GetSequencedTaskRunner(pool->GetNamedSequenceToken( | 2541 pool->GetSequencedTaskRunner(pool->GetNamedSequenceToken( |
2542 MediaFileSystemBackend::kMediaTaskRunnerName)).get())); | 2542 MediaFileSystemBackend::kMediaTaskRunnerName)).get())); |
2543 #endif | 2543 #endif |
2544 #if defined(OS_CHROMEOS) | 2544 #if defined(OS_CHROMEOS) |
2545 fileapi::ExternalMountPoints* external_mount_points = | 2545 fileapi::ExternalMountPoints* external_mount_points = |
2546 content::BrowserContext::GetMountPoints(browser_context); | 2546 content::BrowserContext::GetMountPoints(browser_context); |
2547 DCHECK(external_mount_points); | 2547 DCHECK(external_mount_points); |
2548 chromeos::FileSystemBackend* backend = | 2548 chromeos::FileSystemBackend* backend = new chromeos::FileSystemBackend( |
2549 new chromeos::FileSystemBackend( | 2549 new drive::FileSystemBackendDelegate, |
2550 new drive::FileSystemBackendDelegate, | 2550 new chromeos::file_system_provider::BackendDelegate, |
2551 browser_context->GetSpecialStoragePolicy(), | 2551 browser_context->GetSpecialStoragePolicy(), |
2552 external_mount_points, | 2552 external_mount_points, |
2553 fileapi::ExternalMountPoints::GetSystemInstance()); | 2553 fileapi::ExternalMountPoints::GetSystemInstance()); |
2554 backend->AddSystemMountPoints(); | 2554 backend->AddSystemMountPoints(); |
2555 DCHECK(backend->CanHandleType(fileapi::kFileSystemTypeExternal)); | 2555 DCHECK(backend->CanHandleType(fileapi::kFileSystemTypeExternal)); |
2556 additional_backends->push_back(backend); | 2556 additional_backends->push_back(backend); |
2557 #endif | 2557 #endif |
2558 | 2558 |
2559 additional_backends->push_back( | 2559 additional_backends->push_back( |
2560 new sync_file_system::SyncFileSystemBackend( | 2560 new sync_file_system::SyncFileSystemBackend( |
2561 Profile::FromBrowserContext(browser_context))); | 2561 Profile::FromBrowserContext(browser_context))); |
2562 | 2562 |
2563 #if defined(ENABLE_SERVICE_DISCOVERY) | 2563 #if defined(ENABLE_SERVICE_DISCOVERY) |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2716 switches::kDisableWebRtcEncryption, | 2716 switches::kDisableWebRtcEncryption, |
2717 }; | 2717 }; |
2718 to_command_line->CopySwitchesFrom(from_command_line, | 2718 to_command_line->CopySwitchesFrom(from_command_line, |
2719 kWebRtcDevSwitchNames, | 2719 kWebRtcDevSwitchNames, |
2720 arraysize(kWebRtcDevSwitchNames)); | 2720 arraysize(kWebRtcDevSwitchNames)); |
2721 } | 2721 } |
2722 } | 2722 } |
2723 #endif // defined(ENABLE_WEBRTC) | 2723 #endif // defined(ENABLE_WEBRTC) |
2724 | 2724 |
2725 } // namespace chrome | 2725 } // namespace chrome |
OLD | NEW |