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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 namespace sandbox { | 60 namespace sandbox { |
61 class TargetPolicy; | 61 class TargetPolicy; |
62 } | 62 } |
63 | 63 |
64 namespace ui { | 64 namespace ui { |
65 class SelectFilePolicy; | 65 class SelectFilePolicy; |
66 } | 66 } |
67 | 67 |
68 namespace fileapi { | 68 namespace fileapi { |
| 69 class ExternalMountPoints; |
69 class FileSystemMountPointProvider; | 70 class FileSystemMountPointProvider; |
70 } | 71 } |
71 | 72 |
| 73 namespace quota { |
| 74 class SpecialStoragePolicy; |
| 75 } |
| 76 |
72 namespace content { | 77 namespace content { |
73 | 78 |
74 class AccessTokenStore; | 79 class AccessTokenStore; |
75 class BrowserChildProcessHost; | 80 class BrowserChildProcessHost; |
76 class BrowserContext; | 81 class BrowserContext; |
77 class BrowserMainParts; | 82 class BrowserMainParts; |
78 class BrowserPpapiHost; | 83 class BrowserPpapiHost; |
79 class BrowserURLHandler; | 84 class BrowserURLHandler; |
80 class LocationProvider; | 85 class LocationProvider; |
81 class MediaObserver; | 86 class MediaObserver; |
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
528 // Returns an implementation of a file selecition policy. Can return NULL. | 533 // Returns an implementation of a file selecition policy. Can return NULL. |
529 virtual ui::SelectFilePolicy* CreateSelectFilePolicy( | 534 virtual ui::SelectFilePolicy* CreateSelectFilePolicy( |
530 WebContents* web_contents); | 535 WebContents* web_contents); |
531 | 536 |
532 // Returns additional allowed scheme set which can access files in | 537 // Returns additional allowed scheme set which can access files in |
533 // FileSystem API. | 538 // FileSystem API. |
534 virtual void GetAdditionalAllowedSchemesForFileSystem( | 539 virtual void GetAdditionalAllowedSchemesForFileSystem( |
535 std::vector<std::string>* additional_schemes) {} | 540 std::vector<std::string>* additional_schemes) {} |
536 | 541 |
537 // Returns additional MountPointProviders for FileSystem API. | 542 // Returns additional MountPointProviders for FileSystem API. |
| 543 // |special_storage_policy| and |external_mount_points| are needed in the |
| 544 // additional MountPointProviders. |special_storage_policy| is used to grant |
| 545 // permissions. |external_mount_points| has mount points to create objects |
| 546 // returned by additional MountPointProviders. (Note: although it is named |
| 547 // "provider", it acts creating objects based on mount points provided by |
| 548 // |external_mount_points|). |
538 virtual void GetAdditionalFileSystemMountPointProviders( | 549 virtual void GetAdditionalFileSystemMountPointProviders( |
539 const base::FilePath& storage_partition_path, | 550 const base::FilePath& storage_partition_path, |
| 551 quota::SpecialStoragePolicy* special_storage_policy, |
| 552 fileapi::ExternalMountPoints* external_mount_points, |
540 ScopedVector<fileapi::FileSystemMountPointProvider>* | 553 ScopedVector<fileapi::FileSystemMountPointProvider>* |
541 additional_providers) {} | 554 additional_providers) {} |
542 | 555 |
543 // Allows an embedder to return its own LocationProvider implementation. | 556 // Allows an embedder to return its own LocationProvider implementation. |
544 // Return NULL to use the default one for the platform to be created. | 557 // Return NULL to use the default one for the platform to be created. |
545 virtual LocationProvider* OverrideSystemLocationProvider(); | 558 virtual LocationProvider* OverrideSystemLocationProvider(); |
546 | 559 |
547 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 560 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
548 // Populates |mappings| with all files that need to be mapped before launching | 561 // Populates |mappings| with all files that need to be mapped before launching |
549 // a child process. | 562 // a child process. |
(...skipping 19 matching lines...) Expand all Loading... |
569 // This is called on a worker thread. | 582 // This is called on a worker thread. |
570 virtual | 583 virtual |
571 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 584 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
572 const GURL& url); | 585 const GURL& url); |
573 #endif | 586 #endif |
574 }; | 587 }; |
575 | 588 |
576 } // namespace content | 589 } // namespace content |
577 | 590 |
578 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 591 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |