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 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
569 virtual void GetAdditionalFileSystemBackends( | 569 virtual void GetAdditionalFileSystemBackends( |
570 const base::FilePath& storage_partition_path, | 570 const base::FilePath& storage_partition_path, |
571 quota::SpecialStoragePolicy* special_storage_policy, | 571 quota::SpecialStoragePolicy* special_storage_policy, |
572 fileapi::ExternalMountPoints* external_mount_points, | 572 fileapi::ExternalMountPoints* external_mount_points, |
573 ScopedVector<fileapi::FileSystemBackend>* additional_backends) {} | 573 ScopedVector<fileapi::FileSystemBackend>* additional_backends) {} |
574 | 574 |
575 // Allows an embedder to return its own LocationProvider implementation. | 575 // Allows an embedder to return its own LocationProvider implementation. |
576 // Return NULL to use the default one for the platform to be created. | 576 // Return NULL to use the default one for the platform to be created. |
577 virtual LocationProvider* OverrideSystemLocationProvider(); | 577 virtual LocationProvider* OverrideSystemLocationProvider(); |
578 | 578 |
| 579 // Allows an embedder to decide whether a child process should be killed |
| 580 // if it sends a bad IPC message. |
| 581 // Apart from testing, it is an incredibly bad idea from a security |
| 582 // perspective to allow a child process to survive after sending a bad |
| 583 // message. |
| 584 virtual bool ShouldKillChildProcessOnBadMessage(); |
| 585 |
579 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 586 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
580 // Populates |mappings| with all files that need to be mapped before launching | 587 // Populates |mappings| with all files that need to be mapped before launching |
581 // a child process. | 588 // a child process. |
582 virtual void GetAdditionalMappedFilesForChildProcess( | 589 virtual void GetAdditionalMappedFilesForChildProcess( |
583 const CommandLine& command_line, | 590 const CommandLine& command_line, |
584 int child_process_id, | 591 int child_process_id, |
585 std::vector<FileDescriptorInfo>* mappings) {} | 592 std::vector<FileDescriptorInfo>* mappings) {} |
586 #endif | 593 #endif |
587 | 594 |
588 #if defined(OS_WIN) | 595 #if defined(OS_WIN) |
(...skipping 12 matching lines...) Expand all Loading... |
601 // This is called on a worker thread. | 608 // This is called on a worker thread. |
602 virtual | 609 virtual |
603 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 610 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
604 const GURL& url); | 611 const GURL& url); |
605 #endif | 612 #endif |
606 }; | 613 }; |
607 | 614 |
608 } // namespace content | 615 } // namespace content |
609 | 616 |
610 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 617 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |