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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 #include "device/bluetooth/public/interfaces/adapter.mojom.h" | 175 #include "device/bluetooth/public/interfaces/adapter.mojom.h" |
176 #include "device/usb/public/interfaces/chooser_service.mojom.h" | 176 #include "device/usb/public/interfaces/chooser_service.mojom.h" |
177 #include "device/usb/public/interfaces/device_manager.mojom.h" | 177 #include "device/usb/public/interfaces/device_manager.mojom.h" |
178 #include "gin/v8_initializer.h" | 178 #include "gin/v8_initializer.h" |
179 #include "net/base/mime_util.h" | 179 #include "net/base/mime_util.h" |
180 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" | 180 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
181 #include "net/cookies/canonical_cookie.h" | 181 #include "net/cookies/canonical_cookie.h" |
182 #include "net/cookies/cookie_options.h" | 182 #include "net/cookies/cookie_options.h" |
183 #include "net/ssl/ssl_cert_request_info.h" | 183 #include "net/ssl/ssl_cert_request_info.h" |
184 #include "ppapi/host/ppapi_host.h" | 184 #include "ppapi/host/ppapi_host.h" |
| 185 #include "printing/features/features.h" |
185 #include "services/service_manager/public/cpp/interface_provider.h" | 186 #include "services/service_manager/public/cpp/interface_provider.h" |
186 #include "services/service_manager/public/cpp/service.h" | 187 #include "services/service_manager/public/cpp/service.h" |
187 #include "storage/browser/fileapi/external_mount_points.h" | 188 #include "storage/browser/fileapi/external_mount_points.h" |
188 #include "third_party/WebKit/public/platform/modules/webshare/webshare.mojom.h" | 189 #include "third_party/WebKit/public/platform/modules/webshare/webshare.mojom.h" |
189 #include "ui/base/l10n/l10n_util.h" | 190 #include "ui/base/l10n/l10n_util.h" |
190 #include "ui/base/resource/resource_bundle.h" | 191 #include "ui/base/resource/resource_bundle.h" |
191 #include "ui/resources/grit/ui_resources.h" | 192 #include "ui/resources/grit/ui_resources.h" |
192 #include "url/gurl.h" | 193 #include "url/gurl.h" |
193 #include "url/origin.h" | 194 #include "url/origin.h" |
194 | 195 |
(...skipping 824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1019 int id = host->GetID(); | 1020 int id = host->GetID(); |
1020 Profile* profile = Profile::FromBrowserContext(host->GetBrowserContext()); | 1021 Profile* profile = Profile::FromBrowserContext(host->GetBrowserContext()); |
1021 net::URLRequestContextGetter* context = | 1022 net::URLRequestContextGetter* context = |
1022 host->GetStoragePartition()->GetURLRequestContext(); | 1023 host->GetStoragePartition()->GetURLRequestContext(); |
1023 | 1024 |
1024 host->AddFilter(new ChromeRenderMessageFilter( | 1025 host->AddFilter(new ChromeRenderMessageFilter( |
1025 id, profile, host->GetStoragePartition()->GetServiceWorkerContext())); | 1026 id, profile, host->GetStoragePartition()->GetServiceWorkerContext())); |
1026 #if defined(ENABLE_EXTENSIONS) | 1027 #if defined(ENABLE_EXTENSIONS) |
1027 host->AddFilter(new cast::CastTransportHostFilter); | 1028 host->AddFilter(new cast::CastTransportHostFilter); |
1028 #endif | 1029 #endif |
1029 #if defined(ENABLE_PRINTING) | 1030 #if BUILDFLAG(ENABLE_PRINTING) |
1030 host->AddFilter(new printing::PrintingMessageFilter(id, profile)); | 1031 host->AddFilter(new printing::PrintingMessageFilter(id, profile)); |
1031 #endif | 1032 #endif |
1032 #if defined(ENABLE_SPELLCHECK) | 1033 #if defined(ENABLE_SPELLCHECK) |
1033 host->AddFilter(new SpellCheckMessageFilter(id)); | 1034 host->AddFilter(new SpellCheckMessageFilter(id)); |
1034 #endif | 1035 #endif |
1035 #if defined(USE_BROWSER_SPELLCHECKER) | 1036 #if defined(USE_BROWSER_SPELLCHECKER) |
1036 host->AddFilter(new SpellCheckMessageFilterPlatform(id)); | 1037 host->AddFilter(new SpellCheckMessageFilterPlatform(id)); |
1037 #endif | 1038 #endif |
1038 host->AddFilter(new ChromeNetBenchmarkingMessageFilter(profile, context)); | 1039 host->AddFilter(new ChromeNetBenchmarkingMessageFilter(profile, context)); |
1039 host->AddFilter(new prerender::PrerenderMessageFilter(id, profile)); | 1040 host->AddFilter(new prerender::PrerenderMessageFilter(id, profile)); |
(...skipping 2185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3225 kWebRtcDevSwitchNames, | 3226 kWebRtcDevSwitchNames, |
3226 arraysize(kWebRtcDevSwitchNames)); | 3227 arraysize(kWebRtcDevSwitchNames)); |
3227 } | 3228 } |
3228 } | 3229 } |
3229 #endif // defined(ENABLE_WEBRTC) | 3230 #endif // defined(ENABLE_WEBRTC) |
3230 | 3231 |
3231 std::unique_ptr<content::MemoryCoordinatorDelegate> | 3232 std::unique_ptr<content::MemoryCoordinatorDelegate> |
3232 ChromeContentBrowserClient::GetMemoryCoordinatorDelegate() { | 3233 ChromeContentBrowserClient::GetMemoryCoordinatorDelegate() { |
3233 return memory::ChromeMemoryCoordinatorDelegate::Create(); | 3234 return memory::ChromeMemoryCoordinatorDelegate::Create(); |
3234 } | 3235 } |
OLD | NEW |