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_COMMON_FILEAPI_FILE_SYSTEM_DISPATCHER_H_ | 5 #ifndef CONTENT_COMMON_FILEAPI_FILE_SYSTEM_DISPATCHER_H_ |
6 #define CONTENT_COMMON_FILEAPI_FILE_SYSTEM_DISPATCHER_H_ | 6 #define CONTENT_COMMON_FILEAPI_FILE_SYSTEM_DISPATCHER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 bool OpenFile(const GURL& file_path, | 88 bool OpenFile(const GURL& file_path, |
89 int file_flags, // passed to FileUtilProxy::CreateOrOpen | 89 int file_flags, // passed to FileUtilProxy::CreateOrOpen |
90 fileapi::FileSystemCallbackDispatcher* dispatcher); | 90 fileapi::FileSystemCallbackDispatcher* dispatcher); |
91 // This must be paired with OpenFile, and called after finished using the | 91 // This must be paired with OpenFile, and called after finished using the |
92 // raw PlatformFile returned from OpenFile. | 92 // raw PlatformFile returned from OpenFile. |
93 bool NotifyCloseFile(const GURL& file_path); | 93 bool NotifyCloseFile(const GURL& file_path); |
94 | 94 |
95 bool CreateSnapshotFile(const GURL& file_path, | 95 bool CreateSnapshotFile(const GURL& file_path, |
96 fileapi::FileSystemCallbackDispatcher* dispatcher); | 96 fileapi::FileSystemCallbackDispatcher* dispatcher); |
97 | 97 |
98 bool CreateSnapshotFile_Deprecated( | |
99 const GURL& blod_url, | |
100 const GURL& file_path, | |
101 fileapi::FileSystemCallbackDispatcher* dispatcher); | |
102 | |
103 private: | 98 private: |
104 // Message handlers. | 99 // Message handlers. |
105 void OnDidOpenFileSystem(int request_id, | 100 void OnDidOpenFileSystem(int request_id, |
106 const std::string& name, | 101 const std::string& name, |
107 const GURL& root); | 102 const GURL& root); |
108 void OnDidSucceed(int request_id); | 103 void OnDidSucceed(int request_id); |
109 void OnDidReadMetadata(int request_id, | 104 void OnDidReadMetadata(int request_id, |
110 const base::PlatformFileInfo& file_info, | 105 const base::PlatformFileInfo& file_info, |
111 const base::FilePath& platform_path); | 106 const base::FilePath& platform_path); |
112 void OnDidCreateSnapshotFile(int request_id, | 107 void OnDidCreateSnapshotFile(int request_id, |
(...skipping 11 matching lines...) Expand all Loading... |
124 quota::QuotaLimitType quota_policy); | 119 quota::QuotaLimitType quota_policy); |
125 | 120 |
126 IDMap<fileapi::FileSystemCallbackDispatcher, IDMapOwnPointer> dispatchers_; | 121 IDMap<fileapi::FileSystemCallbackDispatcher, IDMapOwnPointer> dispatchers_; |
127 | 122 |
128 DISALLOW_COPY_AND_ASSIGN(FileSystemDispatcher); | 123 DISALLOW_COPY_AND_ASSIGN(FileSystemDispatcher); |
129 }; | 124 }; |
130 | 125 |
131 } // namespace content | 126 } // namespace content |
132 | 127 |
133 #endif // CONTENT_COMMON_FILEAPI_FILE_SYSTEM_DISPATCHER_H_ | 128 #endif // CONTENT_COMMON_FILEAPI_FILE_SYSTEM_DISPATCHER_H_ |
OLD | NEW |