| 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 1143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1154 content::WebContentsViewDelegate* | 1154 content::WebContentsViewDelegate* |
| 1155 ChromeContentBrowserClient::GetWebContentsViewDelegate( | 1155 ChromeContentBrowserClient::GetWebContentsViewDelegate( |
| 1156 content::WebContents* web_contents) { | 1156 content::WebContents* web_contents) { |
| 1157 return chrome::CreateWebContentsViewDelegate(web_contents); | 1157 return chrome::CreateWebContentsViewDelegate(web_contents); |
| 1158 } | 1158 } |
| 1159 | 1159 |
| 1160 void ChromeContentBrowserClient::RenderProcessWillLaunch( | 1160 void ChromeContentBrowserClient::RenderProcessWillLaunch( |
| 1161 content::RenderProcessHost* host) { | 1161 content::RenderProcessHost* host) { |
| 1162 int id = host->GetID(); | 1162 int id = host->GetID(); |
| 1163 Profile* profile = Profile::FromBrowserContext(host->GetBrowserContext()); | 1163 Profile* profile = Profile::FromBrowserContext(host->GetBrowserContext()); |
| 1164 host->AddFilter(new ChromeRenderMessageFilter( | 1164 host->AddFilter(new ChromeRenderMessageFilter(id, profile)); |
| 1165 id, profile, host->GetStoragePartition()->GetServiceWorkerContext())); | |
| 1166 #if BUILDFLAG(ENABLE_EXTENSIONS) && defined(ENABLE_MEDIA_ROUTER) | 1165 #if BUILDFLAG(ENABLE_EXTENSIONS) && defined(ENABLE_MEDIA_ROUTER) |
| 1167 host->AddFilter(new cast::CastTransportHostFilter); | 1166 host->AddFilter(new cast::CastTransportHostFilter); |
| 1168 #endif | 1167 #endif |
| 1169 #if BUILDFLAG(ENABLE_PRINTING) | 1168 #if BUILDFLAG(ENABLE_PRINTING) |
| 1170 host->AddFilter(new printing::PrintingMessageFilter(id, profile)); | 1169 host->AddFilter(new printing::PrintingMessageFilter(id, profile)); |
| 1171 #endif | 1170 #endif |
| 1172 #if BUILDFLAG(ENABLE_SPELLCHECK) | 1171 #if BUILDFLAG(ENABLE_SPELLCHECK) |
| 1173 host->AddFilter(new SpellCheckMessageFilter(id)); | 1172 host->AddFilter(new SpellCheckMessageFilter(id)); |
| 1174 #endif | 1173 #endif |
| 1175 #if BUILDFLAG(USE_BROWSER_SPELLCHECKER) | 1174 #if BUILDFLAG(USE_BROWSER_SPELLCHECKER) |
| (...skipping 2395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3571 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { | 3570 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { |
| 3572 return variations::GetVariationParamValue( | 3571 return variations::GetVariationParamValue( |
| 3573 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; | 3572 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; |
| 3574 } | 3573 } |
| 3575 | 3574 |
| 3576 // static | 3575 // static |
| 3577 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting( | 3576 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting( |
| 3578 const storage::QuotaSettings* settings) { | 3577 const storage::QuotaSettings* settings) { |
| 3579 g_default_quota_settings = settings; | 3578 g_default_quota_settings = settings; |
| 3580 } | 3579 } |
| OLD | NEW |