| 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 <map> | 7 #include <map> |
| 8 #include <set> | 8 #include <set> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 #include "base/strings/stringprintf.h" | 27 #include "base/strings/stringprintf.h" |
| 28 #include "base/strings/utf_string_conversions.h" | 28 #include "base/strings/utf_string_conversions.h" |
| 29 #include "base/threading/sequenced_worker_pool.h" | 29 #include "base/threading/sequenced_worker_pool.h" |
| 30 #include "base/threading/thread_task_runner_handle.h" | 30 #include "base/threading/thread_task_runner_handle.h" |
| 31 #include "build/build_config.h" | 31 #include "build/build_config.h" |
| 32 #include "chrome/browser/after_startup_task_utils.h" | 32 #include "chrome/browser/after_startup_task_utils.h" |
| 33 #include "chrome/browser/apps/app_url_redirector.h" | 33 #include "chrome/browser/apps/app_url_redirector.h" |
| 34 #include "chrome/browser/browser_about_handler.h" | 34 #include "chrome/browser/browser_about_handler.h" |
| 35 #include "chrome/browser/browser_process.h" | 35 #include "chrome/browser/browser_process.h" |
| 36 #include "chrome/browser/browser_shutdown.h" | 36 #include "chrome/browser/browser_shutdown.h" |
| 37 #include "chrome/browser/browsing_data/browsing_data_filter_builder.h" | |
| 38 #include "chrome/browser/browsing_data/browsing_data_helper.h" | 37 #include "chrome/browser/browsing_data/browsing_data_helper.h" |
| 39 #include "chrome/browser/browsing_data/browsing_data_remover.h" | 38 #include "chrome/browser/browsing_data/browsing_data_remover.h" |
| 40 #include "chrome/browser/browsing_data/browsing_data_remover_factory.h" | 39 #include "chrome/browser/browsing_data/browsing_data_remover_factory.h" |
| 41 #include "chrome/browser/budget_service/budget_service_impl.h" | 40 #include "chrome/browser/budget_service/budget_service_impl.h" |
| 42 #include "chrome/browser/chrome_content_browser_client_parts.h" | 41 #include "chrome/browser/chrome_content_browser_client_parts.h" |
| 43 #include "chrome/browser/chrome_quota_permission_context.h" | 42 #include "chrome/browser/chrome_quota_permission_context.h" |
| 44 #include "chrome/browser/content_settings/cookie_settings_factory.h" | 43 #include "chrome/browser/content_settings/cookie_settings_factory.h" |
| 45 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" | 44 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" |
| 46 #include "chrome/browser/content_settings/tab_specific_content_settings.h" | 45 #include "chrome/browser/content_settings/tab_specific_content_settings.h" |
| 47 #include "chrome/browser/defaults.h" | 46 #include "chrome/browser/defaults.h" |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 #include "components/task_scheduler_util/common/variations_util.h" | 151 #include "components/task_scheduler_util/common/variations_util.h" |
| 153 #include "components/translate/core/common/translate_switches.h" | 152 #include "components/translate/core/common/translate_switches.h" |
| 154 #include "components/url_formatter/url_fixer.h" | 153 #include "components/url_formatter/url_fixer.h" |
| 155 #include "components/variations/variations_associated_data.h" | 154 #include "components/variations/variations_associated_data.h" |
| 156 #include "components/version_info/version_info.h" | 155 #include "components/version_info/version_info.h" |
| 157 #include "content/public/browser/browser_child_process_host.h" | 156 #include "content/public/browser/browser_child_process_host.h" |
| 158 #include "content/public/browser/browser_main_parts.h" | 157 #include "content/public/browser/browser_main_parts.h" |
| 159 #include "content/public/browser/browser_ppapi_host.h" | 158 #include "content/public/browser/browser_ppapi_host.h" |
| 160 #include "content/public/browser/browser_thread.h" | 159 #include "content/public/browser/browser_thread.h" |
| 161 #include "content/public/browser/browser_url_handler.h" | 160 #include "content/public/browser/browser_url_handler.h" |
| 161 #include "content/public/browser/browsing_data_filter_builder.h" |
| 162 #include "content/public/browser/child_process_data.h" | 162 #include "content/public/browser/child_process_data.h" |
| 163 #include "content/public/browser/child_process_security_policy.h" | 163 #include "content/public/browser/child_process_security_policy.h" |
| 164 #include "content/public/browser/client_certificate_delegate.h" | 164 #include "content/public/browser/client_certificate_delegate.h" |
| 165 #include "content/public/browser/navigation_handle.h" | 165 #include "content/public/browser/navigation_handle.h" |
| 166 #include "content/public/browser/navigation_throttle.h" | 166 #include "content/public/browser/navigation_throttle.h" |
| 167 #include "content/public/browser/render_frame_host.h" | 167 #include "content/public/browser/render_frame_host.h" |
| 168 #include "content/public/browser/render_process_host.h" | 168 #include "content/public/browser/render_process_host.h" |
| 169 #include "content/public/browser/render_view_host.h" | 169 #include "content/public/browser/render_view_host.h" |
| 170 #include "content/public/browser/resource_context.h" | 170 #include "content/public/browser/resource_context.h" |
| 171 #include "content/public/browser/site_instance.h" | 171 #include "content/public/browser/site_instance.h" |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 #endif | 373 #endif |
| 374 | 374 |
| 375 #if defined(OS_CHROMEOS) | 375 #if defined(OS_CHROMEOS) |
| 376 #include "chrome/browser/metrics/leak_detector/leak_detector_remote_controller.h
" | 376 #include "chrome/browser/metrics/leak_detector/leak_detector_remote_controller.h
" |
| 377 #endif | 377 #endif |
| 378 | 378 |
| 379 using base::FileDescriptor; | 379 using base::FileDescriptor; |
| 380 using blink::WebWindowFeatures; | 380 using blink::WebWindowFeatures; |
| 381 using content::BrowserThread; | 381 using content::BrowserThread; |
| 382 using content::BrowserURLHandler; | 382 using content::BrowserURLHandler; |
| 383 using content::BrowsingDataFilterBuilder; |
| 383 using content::ChildProcessSecurityPolicy; | 384 using content::ChildProcessSecurityPolicy; |
| 384 using content::QuotaPermissionContext; | 385 using content::QuotaPermissionContext; |
| 385 using content::RenderFrameHost; | 386 using content::RenderFrameHost; |
| 386 using content::RenderViewHost; | 387 using content::RenderViewHost; |
| 387 using content::ResourceType; | 388 using content::ResourceType; |
| 388 using content::SiteInstance; | 389 using content::SiteInstance; |
| 389 using content::WebContents; | 390 using content::WebContents; |
| 390 using content::WebPreferences; | 391 using content::WebPreferences; |
| 391 using message_center::NotifierId; | 392 using message_center::NotifierId; |
| 392 using security_interstitials::SSLErrorUI; | 393 using security_interstitials::SSLErrorUI; |
| (...skipping 3021 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3414 bool ChromeContentBrowserClient::ShouldRedirectDOMStorageTaskRunner() { | 3415 bool ChromeContentBrowserClient::ShouldRedirectDOMStorageTaskRunner() { |
| 3415 return variations::GetVariationParamValue( | 3416 return variations::GetVariationParamValue( |
| 3416 "BrowserScheduler", "RedirectDOMStorageTaskRunner") == "true"; | 3417 "BrowserScheduler", "RedirectDOMStorageTaskRunner") == "true"; |
| 3417 } | 3418 } |
| 3418 | 3419 |
| 3419 bool ChromeContentBrowserClient:: | 3420 bool ChromeContentBrowserClient:: |
| 3420 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { | 3421 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { |
| 3421 return variations::GetVariationParamValue( | 3422 return variations::GetVariationParamValue( |
| 3422 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; | 3423 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; |
| 3423 } | 3424 } |
| OLD | NEW |