Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(784)

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2950153002: Improve process launch handle sharing API. (Closed)
Patch Set: Fix Mojo launcher, review comments Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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(&region); 2784 int fd = ui::GetMainAndroidPackFd(&region);
2785 mappings->ShareWithRegion(kAndroidUIResourcesPakDescriptor, fd, region); 2785 mappings->ShareWithRegion(kAndroidUIResourcesPakDescriptor, fd, region);
2786 2786
2787 fd = ui::GetCommonResourcesPackFd(&region); 2787 fd = ui::GetCommonResourcesPackFd(&region);
2788 mappings->ShareWithRegion(kAndroidChrome100PercentPakDescriptor, fd, region); 2788 mappings->ShareWithRegion(kAndroidChrome100PercentPakDescriptor, fd, region);
2789 2789
2790 fd = ui::GetLocalePackFd(&region); 2790 fd = ui::GetLocalePackFd(&region);
2791 mappings->ShareWithRegion(kAndroidLocalePakDescriptor, fd, region); 2791 mappings->ShareWithRegion(kAndroidLocalePakDescriptor, fd, region);
(...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698