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

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

Issue 10447055: Move fileapi into its own component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes and use FILEAPI_EXPORT_PRIVATE Created 8 years, 6 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_SANDBOX_MOUNT_POINT_PROVIDER_H_ 5 #ifndef WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_
6 #define WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_ 6 #define WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_
7 7
8 #include <set> 8 #include <set>
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/file_path.h" 13 #include "base/file_path.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "base/memory/weak_ptr.h" 16 #include "base/memory/weak_ptr.h"
17 #include "googleurl/src/gurl.h" 17 #include "googleurl/src/gurl.h"
18 #include "webkit/fileapi/fileapi_export.h"
18 #include "webkit/fileapi/file_system_mount_point_provider.h" 19 #include "webkit/fileapi/file_system_mount_point_provider.h"
19 #include "webkit/fileapi/file_system_options.h" 20 #include "webkit/fileapi/file_system_options.h"
20 #include "webkit/fileapi/file_system_quota_util.h" 21 #include "webkit/fileapi/file_system_quota_util.h"
21 22
22 namespace base { 23 namespace base {
23 class SequencedTaskRunner; 24 class SequencedTaskRunner;
24 } 25 }
25 26
26 namespace quota { 27 namespace quota {
27 class QuotaManagerProxy; 28 class QuotaManagerProxy;
28 } 29 }
29 30
30 namespace fileapi { 31 namespace fileapi {
31 32
32 class ObfuscatedFileUtil; 33 class ObfuscatedFileUtil;
33 34
34 // An interface to construct or crack sandboxed filesystem paths for 35 // An interface to construct or crack sandboxed filesystem paths for
35 // TEMPORARY or PERSISTENT filesystems, which are placed under the user's 36 // TEMPORARY or PERSISTENT filesystems, which are placed under the user's
36 // profile directory in a sandboxed way. 37 // profile directory in a sandboxed way.
37 // This interface also lets one enumerate and remove storage for the origins 38 // This interface also lets one enumerate and remove storage for the origins
38 // that use the filesystem. 39 // that use the filesystem.
39 class SandboxMountPointProvider 40 class FILEAPI_EXPORT SandboxMountPointProvider
40 : public FileSystemMountPointProvider, 41 : public FileSystemMountPointProvider,
41 public FileSystemQuotaUtil { 42 public FileSystemQuotaUtil {
42 public: 43 public:
43 typedef FileSystemMountPointProvider::ValidateFileSystemCallback 44 typedef FileSystemMountPointProvider::ValidateFileSystemCallback
44 ValidateFileSystemCallback; 45 ValidateFileSystemCallback;
45 46
46 // Origin enumerator interface. 47 // Origin enumerator interface.
47 // An instance of this interface is assumed to be called on the file thread. 48 // An instance of this interface is assumed to be called on the file thread.
48 class OriginEnumerator { 49 class OriginEnumerator {
49 public: 50 public:
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 base::Time next_release_time_for_open_filesystem_stat_; 198 base::Time next_release_time_for_open_filesystem_stat_;
198 199
199 base::WeakPtrFactory<SandboxMountPointProvider> weak_factory_; 200 base::WeakPtrFactory<SandboxMountPointProvider> weak_factory_;
200 201
201 DISALLOW_COPY_AND_ASSIGN(SandboxMountPointProvider); 202 DISALLOW_COPY_AND_ASSIGN(SandboxMountPointProvider);
202 }; 203 };
203 204
204 } // namespace fileapi 205 } // namespace fileapi
205 206
206 #endif // WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_ 207 #endif // WEBKIT_FILEAPI_SANDBOX_MOUNT_POINT_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698