| 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_BROWSER_FILEAPI_FILEAPI_MESSAGE_FILTER_H_ | 5 #ifndef CONTENT_BROWSER_FILEAPI_FILEAPI_MESSAGE_FILTER_H_ |
| 6 #define CONTENT_BROWSER_FILEAPI_FILEAPI_MESSAGE_FILTER_H_ | 6 #define CONTENT_BROWSER_FILEAPI_FILEAPI_MESSAGE_FILTER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 ~FileAPIMessageFilter() override; | 83 ~FileAPIMessageFilter() override; |
| 84 | 84 |
| 85 private: | 85 private: |
| 86 typedef storage::FileSystemOperationRunner::OperationID OperationID; | 86 typedef storage::FileSystemOperationRunner::OperationID OperationID; |
| 87 | 87 |
| 88 void OnOpenFileSystem(int request_id, | 88 void OnOpenFileSystem(int request_id, |
| 89 const GURL& origin_url, | 89 const GURL& origin_url, |
| 90 storage::FileSystemType type); | 90 storage::FileSystemType type); |
| 91 void OnResolveURL(int request_id, | 91 void OnResolveURL(int request_id, |
| 92 const GURL& filesystem_url); | 92 const GURL& filesystem_url); |
| 93 void OnDeleteFileSystem(int request_id, | |
| 94 const GURL& origin_url, | |
| 95 storage::FileSystemType type); | |
| 96 void OnMove(int request_id, | 93 void OnMove(int request_id, |
| 97 const GURL& src_path, | 94 const GURL& src_path, |
| 98 const GURL& dest_path); | 95 const GURL& dest_path); |
| 99 void OnCopy(int request_id, | 96 void OnCopy(int request_id, |
| 100 const GURL& src_path, | 97 const GURL& src_path, |
| 101 const GURL& dest_path); | 98 const GURL& dest_path); |
| 102 void OnRemove(int request_id, const GURL& path, bool recursive); | 99 void OnRemove(int request_id, const GURL& path, bool recursive); |
| 103 void OnReadMetadata(int request_id, const GURL& path); | 100 void OnReadMetadata(int request_id, const GURL& path); |
| 104 void OnCreate(int request_id, | 101 void OnCreate(int request_id, |
| 105 const GURL& path, | 102 const GURL& path, |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 bool complete); | 158 bool complete); |
| 162 void DidOpenFileSystem(int request_id, | 159 void DidOpenFileSystem(int request_id, |
| 163 const GURL& root, | 160 const GURL& root, |
| 164 const std::string& filesystem_name, | 161 const std::string& filesystem_name, |
| 165 base::File::Error result); | 162 base::File::Error result); |
| 166 void DidResolveURL(int request_id, | 163 void DidResolveURL(int request_id, |
| 167 base::File::Error result, | 164 base::File::Error result, |
| 168 const storage::FileSystemInfo& info, | 165 const storage::FileSystemInfo& info, |
| 169 const base::FilePath& file_path, | 166 const base::FilePath& file_path, |
| 170 storage::FileSystemContext::ResolvedEntryType type); | 167 storage::FileSystemContext::ResolvedEntryType type); |
| 171 void DidDeleteFileSystem(int request_id, | |
| 172 base::File::Error result); | |
| 173 void DidCreateSnapshot( | 168 void DidCreateSnapshot( |
| 174 int request_id, | 169 int request_id, |
| 175 const storage::FileSystemURL& url, | 170 const storage::FileSystemURL& url, |
| 176 base::File::Error result, | 171 base::File::Error result, |
| 177 const base::File::Info& info, | 172 const base::File::Info& info, |
| 178 const base::FilePath& platform_path, | 173 const base::FilePath& platform_path, |
| 179 const scoped_refptr<storage::ShareableFileReference>& file_ref); | 174 const scoped_refptr<storage::ShareableFileReference>& file_ref); |
| 180 | 175 |
| 181 // Sends a FileSystemMsg_DidFail and returns false if |url| is invalid. | 176 // Sends a FileSystemMsg_DidFail and returns false if |url| is invalid. |
| 182 bool ValidateFileSystemURL(int request_id, const storage::FileSystemURL& url); | 177 bool ValidateFileSystemURL(int request_id, const storage::FileSystemURL& url); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 // is being sent to the renderer. | 213 // is being sent to the renderer. |
| 219 std::map<int, scoped_refptr<storage::ShareableFileReference> > | 214 std::map<int, scoped_refptr<storage::ShareableFileReference> > |
| 220 in_transit_snapshot_files_; | 215 in_transit_snapshot_files_; |
| 221 | 216 |
| 222 DISALLOW_COPY_AND_ASSIGN(FileAPIMessageFilter); | 217 DISALLOW_COPY_AND_ASSIGN(FileAPIMessageFilter); |
| 223 }; | 218 }; |
| 224 | 219 |
| 225 } // namespace content | 220 } // namespace content |
| 226 | 221 |
| 227 #endif // CONTENT_BROWSER_FILEAPI_FILEAPI_MESSAGE_FILTER_H_ | 222 #endif // CONTENT_BROWSER_FILEAPI_FILEAPI_MESSAGE_FILTER_H_ |
| OLD | NEW |