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

Side by Side Diff: webkit/chromeos/fileapi/cros_mount_point_provider.h

Issue 6749021: Added new fileBrowserPrivate and fileHandler extension APIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_ 5 #ifndef WEBKIT_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_
6 #define WEBKIT_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_ 6 #define WEBKIT_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set>
10 #include <string> 9 #include <string>
10 #include <vector>
11 11
12 #include "webkit/fileapi/file_system_mount_point_provider.h" 12 #include "webkit/fileapi/file_system_mount_point_provider.h"
13 #include "webkit/quota/special_storage_policy.h" 13 #include "webkit/quota/special_storage_policy.h"
14 14
15 namespace chromeos { 15 namespace chromeos {
16 16
17 // An interface to provide local filesystem paths. 17 // An interface to provide local filesystem paths.
18 class CrosMountPointProvider 18 class CrosMountPointProvider
19 : public fileapi::FileSystemMountPointProvider { 19 : public fileapi::FileSystemMountPointProvider {
20 public: 20 public:
(...skipping 11 matching lines...) Expand all
32 fileapi::FileSystemPathManager::GetRootPathCallback* callback) OVERRIDE; 32 fileapi::FileSystemPathManager::GetRootPathCallback* callback) OVERRIDE;
33 33
34 virtual FilePath GetFileSystemRootPathOnFileThread( 34 virtual FilePath GetFileSystemRootPathOnFileThread(
35 const GURL& origin_url, 35 const GURL& origin_url,
36 fileapi::FileSystemType type, 36 fileapi::FileSystemType type,
37 const FilePath& virtual_path, 37 const FilePath& virtual_path,
38 bool create); 38 bool create);
39 39
40 virtual bool IsRestrictedFileName(const FilePath& filename) const OVERRIDE; 40 virtual bool IsRestrictedFileName(const FilePath& filename) const OVERRIDE;
41 41
42 virtual std::vector<FilePath> GetRootDirectories() const OVERRIDE;
43
42 private: 44 private:
43 class GetFileSystemRootPathTask; 45 class GetFileSystemRootPathTask;
44 typedef std::map<std::string, std::string> MountPointMap; 46 typedef std::map<std::string, std::string> MountPointMap;
45 47
46 static const char kLocalDirName[]; 48 static const char kLocalDirName[];
47 static const char kLocalName[]; 49 static const char kLocalName[];
48 FilePath virtual_root_path_; 50 FilePath virtual_root_path_;
49 FilePath base_path_; 51 FilePath base_path_;
50 std::string local_dir_name_; 52 std::string local_dir_name_;
51 MountPointMap mount_point_map_; 53 MountPointMap mount_point_map_;
52 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_; 54 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_;
53 55
54 DISALLOW_COPY_AND_ASSIGN(CrosMountPointProvider); 56 DISALLOW_COPY_AND_ASSIGN(CrosMountPointProvider);
55 }; 57 };
56 58
57 } // namespace chromeos 59 } // namespace chromeos
58 60
59 #endif // WEBKIT_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_ 61 #endif // WEBKIT_CHROMEOS_FILEAPI_CROS_MOUNT_POINT_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698