| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_DEVICE_MEDIA_ASYNC_FILE_UTIL_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_DEVICE_MEDIA_ASYNC_FILE_UTIL_H_ |
| 6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_DEVICE_MEDIA_ASYNC_FILE_UTIL_H_ | 6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_DEVICE_MEDIA_ASYNC_FILE_UTIL_H_ |
| 7 | 7 |
| 8 #include "base/files/file.h" | 8 #include "base/files/file.h" |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 void EnsureFileExists(scoped_ptr<storage::FileSystemOperationContext> context, | 47 void EnsureFileExists(scoped_ptr<storage::FileSystemOperationContext> context, |
| 48 const storage::FileSystemURL& url, | 48 const storage::FileSystemURL& url, |
| 49 const EnsureFileExistsCallback& callback) override; | 49 const EnsureFileExistsCallback& callback) override; |
| 50 void CreateDirectory(scoped_ptr<storage::FileSystemOperationContext> context, | 50 void CreateDirectory(scoped_ptr<storage::FileSystemOperationContext> context, |
| 51 const storage::FileSystemURL& url, | 51 const storage::FileSystemURL& url, |
| 52 bool exclusive, | 52 bool exclusive, |
| 53 bool recursive, | 53 bool recursive, |
| 54 const StatusCallback& callback) override; | 54 const StatusCallback& callback) override; |
| 55 void GetFileInfo(scoped_ptr<storage::FileSystemOperationContext> context, | 55 void GetFileInfo(scoped_ptr<storage::FileSystemOperationContext> context, |
| 56 const storage::FileSystemURL& url, | 56 const storage::FileSystemURL& url, |
| 57 int /* flags */, |
| 57 const GetFileInfoCallback& callback) override; | 58 const GetFileInfoCallback& callback) override; |
| 58 void ReadDirectory(scoped_ptr<storage::FileSystemOperationContext> context, | 59 void ReadDirectory(scoped_ptr<storage::FileSystemOperationContext> context, |
| 59 const storage::FileSystemURL& url, | 60 const storage::FileSystemURL& url, |
| 60 const ReadDirectoryCallback& callback) override; | 61 const ReadDirectoryCallback& callback) override; |
| 61 void Touch(scoped_ptr<storage::FileSystemOperationContext> context, | 62 void Touch(scoped_ptr<storage::FileSystemOperationContext> context, |
| 62 const storage::FileSystemURL& url, | 63 const storage::FileSystemURL& url, |
| 63 const base::Time& last_access_time, | 64 const base::Time& last_access_time, |
| 64 const base::Time& last_modified_time, | 65 const base::Time& last_modified_time, |
| 65 const StatusCallback& callback) override; | 66 const StatusCallback& callback) override; |
| 66 void Truncate(scoped_ptr<storage::FileSystemOperationContext> context, | 67 void Truncate(scoped_ptr<storage::FileSystemOperationContext> context, |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 | 186 |
| 186 scoped_refptr<MediaPathFilterWrapper> media_path_filter_wrapper_; | 187 scoped_refptr<MediaPathFilterWrapper> media_path_filter_wrapper_; |
| 187 | 188 |
| 188 // For callbacks that may run after destruction. | 189 // For callbacks that may run after destruction. |
| 189 base::WeakPtrFactory<DeviceMediaAsyncFileUtil> weak_ptr_factory_; | 190 base::WeakPtrFactory<DeviceMediaAsyncFileUtil> weak_ptr_factory_; |
| 190 | 191 |
| 191 DISALLOW_COPY_AND_ASSIGN(DeviceMediaAsyncFileUtil); | 192 DISALLOW_COPY_AND_ASSIGN(DeviceMediaAsyncFileUtil); |
| 192 }; | 193 }; |
| 193 | 194 |
| 194 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_DEVICE_MEDIA_ASYNC_FILE_UTIL_H
_ | 195 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_DEVICE_MEDIA_ASYNC_FILE_UTIL_H
_ |
| OLD | NEW |