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 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 using content::RenderFrameHost; | 418 using content::RenderFrameHost; |
419 using content::RenderViewHost; | 419 using content::RenderViewHost; |
420 using content::ResourceType; | 420 using content::ResourceType; |
421 using content::SiteInstance; | 421 using content::SiteInstance; |
422 using content::WebContents; | 422 using content::WebContents; |
423 using content::WebPreferences; | 423 using content::WebPreferences; |
424 using message_center::NotifierId; | 424 using message_center::NotifierId; |
425 using security_interstitials::SSLErrorUI; | 425 using security_interstitials::SSLErrorUI; |
426 | 426 |
427 #if defined(OS_POSIX) | 427 #if defined(OS_POSIX) |
428 using content::FileDescriptorInfo; | 428 using content::PosixFileDescriptorInfo; |
429 #endif | 429 #endif |
430 | 430 |
431 #if BUILDFLAG(ENABLE_EXTENSIONS) | 431 #if BUILDFLAG(ENABLE_EXTENSIONS) |
432 using extensions::APIPermission; | 432 using extensions::APIPermission; |
433 using extensions::ChromeContentBrowserClientExtensionsPart; | 433 using extensions::ChromeContentBrowserClientExtensionsPart; |
434 using extensions::Extension; | 434 using extensions::Extension; |
435 using extensions::InfoMap; | 435 using extensions::InfoMap; |
436 using extensions::Manifest; | 436 using extensions::Manifest; |
437 #endif | 437 #endif |
438 | 438 |
(...skipping 2332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2771 for (size_t i = 0; i < extra_parts_.size(); ++i) { | 2771 for (size_t i = 0; i < extra_parts_.size(); ++i) { |
2772 extra_parts_[i]->GetAdditionalFileSystemBackends( | 2772 extra_parts_[i]->GetAdditionalFileSystemBackends( |
2773 browser_context, storage_partition_path, additional_backends); | 2773 browser_context, storage_partition_path, additional_backends); |
2774 } | 2774 } |
2775 } | 2775 } |
2776 | 2776 |
2777 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 2777 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
2778 void ChromeContentBrowserClient::GetAdditionalMappedFilesForChildProcess( | 2778 void ChromeContentBrowserClient::GetAdditionalMappedFilesForChildProcess( |
2779 const base::CommandLine& command_line, | 2779 const base::CommandLine& command_line, |
2780 int child_process_id, | 2780 int child_process_id, |
2781 FileDescriptorInfo* mappings) { | 2781 PosixFileDescriptorInfo* mappings) { |
2782 #if defined(OS_ANDROID) | 2782 #if defined(OS_ANDROID) |
2783 base::MemoryMappedFile::Region region; | 2783 base::MemoryMappedFile::Region region; |
2784 int fd = ui::GetMainAndroidPackFd(®ion); | 2784 int fd = ui::GetMainAndroidPackFd(®ion); |
2785 mappings->ShareWithRegion(kAndroidUIResourcesPakDescriptor, fd, region); | 2785 mappings->ShareWithRegion(kAndroidUIResourcesPakDescriptor, fd, region); |
2786 | 2786 |
2787 fd = ui::GetCommonResourcesPackFd(®ion); | 2787 fd = ui::GetCommonResourcesPackFd(®ion); |
2788 mappings->ShareWithRegion(kAndroidChrome100PercentPakDescriptor, fd, region); | 2788 mappings->ShareWithRegion(kAndroidChrome100PercentPakDescriptor, fd, region); |
2789 | 2789 |
2790 fd = ui::GetLocalePackFd(®ion); | 2790 fd = ui::GetLocalePackFd(®ion); |
2791 mappings->ShareWithRegion(kAndroidLocalePakDescriptor, fd, region); | 2791 mappings->ShareWithRegion(kAndroidLocalePakDescriptor, fd, region); |
(...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3463 // displayed URL when rewriting chrome://help to chrome://settings/help. | 3463 // displayed URL when rewriting chrome://help to chrome://settings/help. |
3464 return url->SchemeIs(content::kChromeUIScheme) && | 3464 return url->SchemeIs(content::kChromeUIScheme) && |
3465 url->host() == chrome::kChromeUISettingsHost; | 3465 url->host() == chrome::kChromeUISettingsHost; |
3466 } | 3466 } |
3467 | 3467 |
3468 // static | 3468 // static |
3469 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting( | 3469 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting( |
3470 const storage::QuotaSettings* settings) { | 3470 const storage::QuotaSettings* settings) { |
3471 g_default_quota_settings = settings; | 3471 g_default_quota_settings = settings; |
3472 } | 3472 } |
OLD | NEW |