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 WEBKIT_BROWSER_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_ |
6 #define WEBKIT_BROWSER_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/synchronization/lock.h" | 15 #include "base/synchronization/lock.h" |
16 #include "webkit/browser/fileapi/file_system_mount_point_provider.h" | 16 #include "webkit/browser/fileapi/file_system_mount_point_provider.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 // | 56 // |
57 // "drive" is a mount point for Google Drive. Drive is integrated with the | 57 // "drive" is a mount point for Google Drive. Drive is integrated with the |
58 // FileSystem API layer via drive::FileSystemProxy. This mount point is added | 58 // FileSystem API layer via drive::FileSystemProxy. This mount point is added |
59 // by drive::DriveIntegrationService. | 59 // by drive::DriveIntegrationService. |
60 // | 60 // |
61 // These mount points are placed under the "external" namespace, and file | 61 // These mount points are placed under the "external" namespace, and file |
62 // system URLs for these mount points look like: | 62 // system URLs for these mount points look like: |
63 // | 63 // |
64 // filesystem:<origin>/external/<mount_name>/... | 64 // filesystem:<origin>/external/<mount_name>/... |
65 // | 65 // |
66 class WEBKIT_STORAGE_BROWSER_EXPORT CrosMountPointProvider | 66 class CrosMountPointProvider |
67 : public fileapi::ExternalFileSystemMountPointProvider { | 67 : public fileapi::ExternalFileSystemMountPointProvider { |
68 public: | 68 public: |
69 using fileapi::FileSystemMountPointProvider::OpenFileSystemCallback; | 69 using fileapi::FileSystemMountPointProvider::OpenFileSystemCallback; |
70 using fileapi::FileSystemMountPointProvider::DeleteFileSystemCallback; | 70 using fileapi::FileSystemMountPointProvider::DeleteFileSystemCallback; |
71 | 71 |
72 // CrosMountPointProvider will take an ownership of a |mount_points| | 72 // CrosMountPointProvider will take an ownership of a |mount_points| |
73 // reference. On the other hand, |system_mount_points| will be kept as a raw | 73 // reference. On the other hand, |system_mount_points| will be kept as a raw |
74 // pointer and it should outlive CrosMountPointProvider instance. | 74 // pointer and it should outlive CrosMountPointProvider instance. |
75 CrosMountPointProvider( | 75 CrosMountPointProvider( |
76 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy, | 76 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy, |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 | 163 |
164 // Globally visible mount points. System MountPonts instance should outlive | 164 // Globally visible mount points. System MountPonts instance should outlive |
165 // all CrosMountPointProvider instances, so raw pointer is safe. | 165 // all CrosMountPointProvider instances, so raw pointer is safe. |
166 fileapi::ExternalMountPoints* system_mount_points_; | 166 fileapi::ExternalMountPoints* system_mount_points_; |
167 | 167 |
168 DISALLOW_COPY_AND_ASSIGN(CrosMountPointProvider); | 168 DISALLOW_COPY_AND_ASSIGN(CrosMountPointProvider); |
169 }; | 169 }; |
170 | 170 |
171 } // namespace chromeos | 171 } // namespace chromeos |
172 | 172 |
173 #endif // WEBKIT_BROWSER_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_ | 173 #endif // CHROME_BROWSER_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_ |
OLD | NEW |