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