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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 FileSystemMountPointProvider; |
72 } | 72 } |
73 | 73 |
74 namespace quota { | |
75 class SpecialStoragePolicy; | |
76 } | |
77 | |
78 namespace content { | 74 namespace content { |
79 | 75 |
80 class AccessTokenStore; | 76 class AccessTokenStore; |
81 class BrowserChildProcessHost; | 77 class BrowserChildProcessHost; |
82 class BrowserContext; | 78 class BrowserContext; |
83 class BrowserMainParts; | 79 class BrowserMainParts; |
84 class BrowserPluginGuestDelegate; | 80 class BrowserPluginGuestDelegate; |
85 class BrowserPpapiHost; | 81 class BrowserPpapiHost; |
86 class BrowserURLHandler; | 82 class BrowserURLHandler; |
87 class LocationProvider; | 83 class LocationProvider; |
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
555 // Returns an implementation of a file selecition policy. Can return NULL. | 551 // Returns an implementation of a file selecition policy. Can return NULL. |
556 virtual ui::SelectFilePolicy* CreateSelectFilePolicy( | 552 virtual ui::SelectFilePolicy* CreateSelectFilePolicy( |
557 WebContents* web_contents); | 553 WebContents* web_contents); |
558 | 554 |
559 // Returns additional allowed scheme set which can access files in | 555 // Returns additional allowed scheme set which can access files in |
560 // FileSystem API. | 556 // FileSystem API. |
561 virtual void GetAdditionalAllowedSchemesForFileSystem( | 557 virtual void GetAdditionalAllowedSchemesForFileSystem( |
562 std::vector<std::string>* additional_schemes) {} | 558 std::vector<std::string>* additional_schemes) {} |
563 | 559 |
564 // Returns additional MountPointProviders for FileSystem API. | 560 // Returns additional MountPointProviders for FileSystem API. |
565 // |special_storage_policy| and |external_mount_points| are needed in the | 561 // |browser_context| and |special_storage_policy| are needed in the |
kinuko
2013/07/04 07:34:54
nit: please remove |special_storage_policy|
hidehiko
2013/07/04 14:51:31
Done.
| |
566 // additional MountPointProviders. |special_storage_policy| is used to grant | 562 // additional MountPointProviders. |browser_context| has mount points to |
567 // permissions. |external_mount_points| has mount points to create objects | 563 // create objects returned by additional MountPointProviders, and |
568 // returned by additional MountPointProviders. (Note: although it is named | 564 // SpecialStoragePolicy for permission granting. |
569 // "provider", it acts creating objects based on mount points provided by | |
570 // |external_mount_points|). | |
571 virtual void GetAdditionalFileSystemMountPointProviders( | 565 virtual void GetAdditionalFileSystemMountPointProviders( |
566 BrowserContext* browser_context, | |
572 const base::FilePath& storage_partition_path, | 567 const base::FilePath& storage_partition_path, |
573 quota::SpecialStoragePolicy* special_storage_policy, | |
574 fileapi::ExternalMountPoints* external_mount_points, | |
575 ScopedVector<fileapi::FileSystemMountPointProvider>* | 568 ScopedVector<fileapi::FileSystemMountPointProvider>* |
576 additional_providers) {} | 569 additional_providers) {} |
577 | 570 |
578 // Allows an embedder to return its own LocationProvider implementation. | 571 // Allows an embedder to return its own LocationProvider implementation. |
579 // Return NULL to use the default one for the platform to be created. | 572 // Return NULL to use the default one for the platform to be created. |
580 virtual LocationProvider* OverrideSystemLocationProvider(); | 573 virtual LocationProvider* OverrideSystemLocationProvider(); |
581 | 574 |
582 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 575 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
583 // Populates |mappings| with all files that need to be mapped before launching | 576 // Populates |mappings| with all files that need to be mapped before launching |
584 // a child process. | 577 // a child process. |
585 virtual void GetAdditionalMappedFilesForChildProcess( | 578 virtual void GetAdditionalMappedFilesForChildProcess( |
586 const CommandLine& command_line, | 579 const CommandLine& command_line, |
(...skipping 17 matching lines...) Expand all Loading... | |
604 // This is called on a worker thread. | 597 // This is called on a worker thread. |
605 virtual | 598 virtual |
606 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 599 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
607 const GURL& url); | 600 const GURL& url); |
608 #endif | 601 #endif |
609 }; | 602 }; |
610 | 603 |
611 } // namespace content | 604 } // namespace content |
612 | 605 |
613 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 606 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |