Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(532)

Side by Side Diff: webkit/fileapi/file_system_context.h

Issue 14352004: Split Media-related code from IsolatedMountPointProvider (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_FILEAPI_FILE_SYSTEM_CONTEXT_H_ 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_ 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 class FileStreamWriter; 48 class FileStreamWriter;
49 class FileSystemFileUtil; 49 class FileSystemFileUtil;
50 class FileSystemMountPointProvider; 50 class FileSystemMountPointProvider;
51 class FileSystemOperation; 51 class FileSystemOperation;
52 class FileSystemOptions; 52 class FileSystemOptions;
53 class FileSystemQuotaUtil; 53 class FileSystemQuotaUtil;
54 class FileSystemTaskRunners; 54 class FileSystemTaskRunners;
55 class FileSystemURL; 55 class FileSystemURL;
56 class IsolatedMountPointProvider; 56 class IsolatedMountPointProvider;
57 class MountPoints; 57 class MountPoints;
58 class MediaFileSystemMountPointProvider;
58 class SandboxMountPointProvider; 59 class SandboxMountPointProvider;
59 60
60 struct DefaultContextDeleter; 61 struct DefaultContextDeleter;
61 62
62 // This class keeps and provides a file system context for FileSystem API. 63 // This class keeps and provides a file system context for FileSystem API.
63 // An instance of this class is created and owned by profile. 64 // An instance of this class is created and owned by profile.
64 class WEBKIT_STORAGE_EXPORT FileSystemContext 65 class WEBKIT_STORAGE_EXPORT FileSystemContext
65 : public base::RefCountedThreadSafe<FileSystemContext, 66 : public base::RefCountedThreadSafe<FileSystemContext,
66 DefaultContextDeleter> { 67 DefaultContextDeleter> {
67 public: 68 public:
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 272
272 scoped_ptr<FileSystemTaskRunners> task_runners_; 273 scoped_ptr<FileSystemTaskRunners> task_runners_;
273 274
274 scoped_refptr<quota::QuotaManagerProxy> quota_manager_proxy_; 275 scoped_refptr<quota::QuotaManagerProxy> quota_manager_proxy_;
275 276
276 // Regular mount point providers. 277 // Regular mount point providers.
277 scoped_ptr<SandboxMountPointProvider> sandbox_provider_; 278 scoped_ptr<SandboxMountPointProvider> sandbox_provider_;
278 scoped_ptr<IsolatedMountPointProvider> isolated_provider_; 279 scoped_ptr<IsolatedMountPointProvider> isolated_provider_;
279 scoped_ptr<ExternalFileSystemMountPointProvider> external_provider_; 280 scoped_ptr<ExternalFileSystemMountPointProvider> external_provider_;
280 281
282 // TODO(kinuko,vandebo): Move this out of webkit/fileapi layer and
283 // give this provider as additional_providers.
284 scoped_ptr<MediaFileSystemMountPointProvider> media_provider_;
285
281 // Additional mount point providers. 286 // Additional mount point providers.
282 ScopedVector<FileSystemMountPointProvider> additional_providers_; 287 ScopedVector<FileSystemMountPointProvider> additional_providers_;
283 288
284 // Registered mount point providers. 289 // Registered mount point providers.
285 // The map must be constructed in the constructor since it can be accessed 290 // The map must be constructed in the constructor since it can be accessed
286 // on multiple threads. 291 // on multiple threads.
287 // The ownership of each provider is held by mount_point_providers_. 292 // The ownership of each provider is held by mount_point_providers_.
288 MountPointProviderMap provider_map_; 293 MountPointProviderMap provider_map_;
289 // External mount points visible in the file system context (excluding system 294 // External mount points visible in the file system context (excluding system
290 // external mount points). 295 // external mount points).
(...skipping 15 matching lines...) Expand all
306 311
307 struct DefaultContextDeleter { 312 struct DefaultContextDeleter {
308 static void Destruct(const FileSystemContext* context) { 313 static void Destruct(const FileSystemContext* context) {
309 context->DeleteOnCorrectThread(); 314 context->DeleteOnCorrectThread();
310 } 315 }
311 }; 316 };
312 317
313 } // namespace fileapi 318 } // namespace fileapi
314 319
315 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_ 320 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698