| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 namespace sandbox { | 61 namespace sandbox { |
| 62 class TargetPolicy; | 62 class TargetPolicy; |
| 63 } | 63 } |
| 64 | 64 |
| 65 namespace ui { | 65 namespace ui { |
| 66 class SelectFilePolicy; | 66 class SelectFilePolicy; |
| 67 } | 67 } |
| 68 | 68 |
| 69 namespace fileapi { | 69 namespace fileapi { |
| 70 class ExternalMountPoints; | 70 class ExternalMountPoints; |
| 71 class FileSystemMountPointProvider; | 71 class FileSystemBackend; |
| 72 } | 72 } |
| 73 | 73 |
| 74 namespace quota { | 74 namespace quota { |
| 75 class SpecialStoragePolicy; | 75 class SpecialStoragePolicy; |
| 76 } | 76 } |
| 77 | 77 |
| 78 namespace content { | 78 namespace content { |
| 79 | 79 |
| 80 class AccessTokenStore; | 80 class AccessTokenStore; |
| 81 class BrowserChildProcessHost; | 81 class BrowserChildProcessHost; |
| (...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 554 | 554 |
| 555 // Returns an implementation of a file selecition policy. Can return NULL. | 555 // Returns an implementation of a file selecition policy. Can return NULL. |
| 556 virtual ui::SelectFilePolicy* CreateSelectFilePolicy( | 556 virtual ui::SelectFilePolicy* CreateSelectFilePolicy( |
| 557 WebContents* web_contents); | 557 WebContents* web_contents); |
| 558 | 558 |
| 559 // Returns additional allowed scheme set which can access files in | 559 // Returns additional allowed scheme set which can access files in |
| 560 // FileSystem API. | 560 // FileSystem API. |
| 561 virtual void GetAdditionalAllowedSchemesForFileSystem( | 561 virtual void GetAdditionalAllowedSchemesForFileSystem( |
| 562 std::vector<std::string>* additional_schemes) {} | 562 std::vector<std::string>* additional_schemes) {} |
| 563 | 563 |
| 564 // Returns additional MountPointProviders for FileSystem API. | 564 // Returns additional file system backends for FileSystem API. |
| 565 // |special_storage_policy| and |external_mount_points| are needed in the | 565 // |special_storage_policy| and |external_mount_points| are needed in the |
| 566 // additional MountPointProviders. |special_storage_policy| is used to grant | 566 // additional FileSystemBackends. |special_storage_policy| is used to grant |
| 567 // permissions. |external_mount_points| has mount points to create objects | 567 // permissions. |external_mount_points| has mount points to create objects |
| 568 // returned by additional MountPointProviders. (Note: although it is named | 568 // returned by additional FileSystemBackends. |
| 569 // "provider", it acts creating objects based on mount points provided by | 569 virtual void GetAdditionalFileSystemBackends( |
| 570 // |external_mount_points|). | |
| 571 virtual void GetAdditionalFileSystemMountPointProviders( | |
| 572 const base::FilePath& storage_partition_path, | 570 const base::FilePath& storage_partition_path, |
| 573 quota::SpecialStoragePolicy* special_storage_policy, | 571 quota::SpecialStoragePolicy* special_storage_policy, |
| 574 fileapi::ExternalMountPoints* external_mount_points, | 572 fileapi::ExternalMountPoints* external_mount_points, |
| 575 ScopedVector<fileapi::FileSystemMountPointProvider>* | 573 ScopedVector<fileapi::FileSystemBackend>* additional_backends) {} |
| 576 additional_providers) {} | |
| 577 | 574 |
| 578 // Allows an embedder to return its own LocationProvider implementation. | 575 // Allows an embedder to return its own LocationProvider implementation. |
| 579 // 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. |
| 580 virtual LocationProvider* OverrideSystemLocationProvider(); | 577 virtual LocationProvider* OverrideSystemLocationProvider(); |
| 581 | 578 |
| 582 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 579 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 583 // Populates |mappings| with all files that need to be mapped before launching | 580 // Populates |mappings| with all files that need to be mapped before launching |
| 584 // a child process. | 581 // a child process. |
| 585 virtual void GetAdditionalMappedFilesForChildProcess( | 582 virtual void GetAdditionalMappedFilesForChildProcess( |
| 586 const CommandLine& command_line, | 583 const CommandLine& command_line, |
| (...skipping 17 matching lines...) Expand all Loading... |
| 604 // This is called on a worker thread. | 601 // This is called on a worker thread. |
| 605 virtual | 602 virtual |
| 606 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 603 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
| 607 const GURL& url); | 604 const GURL& url); |
| 608 #endif | 605 #endif |
| 609 }; | 606 }; |
| 610 | 607 |
| 611 } // namespace content | 608 } // namespace content |
| 612 | 609 |
| 613 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 610 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |