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 CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_NATIVE_MEDIA_FILE_UTIL_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_NATIVE_MEDIA_FILE_UTIL_H_ |
6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_NATIVE_MEDIA_FILE_UTIL_H_ | 6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_NATIVE_MEDIA_FILE_UTIL_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 #include <stdint.h> |
| 10 |
| 11 #include "base/macros.h" |
8 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
9 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
10 #include "storage/browser/fileapi/async_file_util.h" | 14 #include "storage/browser/fileapi/async_file_util.h" |
11 | 15 |
12 namespace net { | 16 namespace net { |
13 class IOBuffer; | 17 class IOBuffer; |
14 } | 18 } |
15 | 19 |
16 class MediaPathFilter; | 20 class MediaPathFilter; |
17 | 21 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 void ReadDirectory(scoped_ptr<storage::FileSystemOperationContext> context, | 65 void ReadDirectory(scoped_ptr<storage::FileSystemOperationContext> context, |
62 const storage::FileSystemURL& url, | 66 const storage::FileSystemURL& url, |
63 const ReadDirectoryCallback& callback) override; | 67 const ReadDirectoryCallback& callback) override; |
64 void Touch(scoped_ptr<storage::FileSystemOperationContext> context, | 68 void Touch(scoped_ptr<storage::FileSystemOperationContext> context, |
65 const storage::FileSystemURL& url, | 69 const storage::FileSystemURL& url, |
66 const base::Time& last_access_time, | 70 const base::Time& last_access_time, |
67 const base::Time& last_modified_time, | 71 const base::Time& last_modified_time, |
68 const StatusCallback& callback) override; | 72 const StatusCallback& callback) override; |
69 void Truncate(scoped_ptr<storage::FileSystemOperationContext> context, | 73 void Truncate(scoped_ptr<storage::FileSystemOperationContext> context, |
70 const storage::FileSystemURL& url, | 74 const storage::FileSystemURL& url, |
71 int64 length, | 75 int64_t length, |
72 const StatusCallback& callback) override; | 76 const StatusCallback& callback) override; |
73 void CopyFileLocal(scoped_ptr<storage::FileSystemOperationContext> context, | 77 void CopyFileLocal(scoped_ptr<storage::FileSystemOperationContext> context, |
74 const storage::FileSystemURL& src_url, | 78 const storage::FileSystemURL& src_url, |
75 const storage::FileSystemURL& dest_url, | 79 const storage::FileSystemURL& dest_url, |
76 CopyOrMoveOption option, | 80 CopyOrMoveOption option, |
77 const CopyFileProgressCallback& progress_callback, | 81 const CopyFileProgressCallback& progress_callback, |
78 const StatusCallback& callback) override; | 82 const StatusCallback& callback) override; |
79 void MoveFileLocal(scoped_ptr<storage::FileSystemOperationContext> context, | 83 void MoveFileLocal(scoped_ptr<storage::FileSystemOperationContext> context, |
80 const storage::FileSystemURL& src_url, | 84 const storage::FileSystemURL& src_url, |
81 const storage::FileSystemURL& dest_url, | 85 const storage::FileSystemURL& dest_url, |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 | 219 |
216 // Not owned, owned by the backend which owns this. | 220 // Not owned, owned by the backend which owns this. |
217 MediaPathFilter* const media_path_filter_; | 221 MediaPathFilter* const media_path_filter_; |
218 | 222 |
219 base::WeakPtrFactory<NativeMediaFileUtil> weak_factory_; | 223 base::WeakPtrFactory<NativeMediaFileUtil> weak_factory_; |
220 | 224 |
221 DISALLOW_COPY_AND_ASSIGN(NativeMediaFileUtil); | 225 DISALLOW_COPY_AND_ASSIGN(NativeMediaFileUtil); |
222 }; | 226 }; |
223 | 227 |
224 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_NATIVE_MEDIA_FILE_UTIL_H_ | 228 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_NATIVE_MEDIA_FILE_UTIL_H_ |
OLD | NEW |