| 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 "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "storage/browser/fileapi/async_file_util.h" | 10 #include "storage/browser/fileapi/async_file_util.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 void EnsureFileExists(scoped_ptr<storage::FileSystemOperationContext> context, | 49 void EnsureFileExists(scoped_ptr<storage::FileSystemOperationContext> context, |
| 50 const storage::FileSystemURL& url, | 50 const storage::FileSystemURL& url, |
| 51 const EnsureFileExistsCallback& callback) override; | 51 const EnsureFileExistsCallback& callback) override; |
| 52 void CreateDirectory(scoped_ptr<storage::FileSystemOperationContext> context, | 52 void CreateDirectory(scoped_ptr<storage::FileSystemOperationContext> context, |
| 53 const storage::FileSystemURL& url, | 53 const storage::FileSystemURL& url, |
| 54 bool exclusive, | 54 bool exclusive, |
| 55 bool recursive, | 55 bool recursive, |
| 56 const StatusCallback& callback) override; | 56 const StatusCallback& callback) override; |
| 57 void GetFileInfo(scoped_ptr<storage::FileSystemOperationContext> context, | 57 void GetFileInfo(scoped_ptr<storage::FileSystemOperationContext> context, |
| 58 const storage::FileSystemURL& url, | 58 const storage::FileSystemURL& url, |
| 59 int /* fields */, |
| 59 const GetFileInfoCallback& callback) override; | 60 const GetFileInfoCallback& callback) override; |
| 60 void ReadDirectory(scoped_ptr<storage::FileSystemOperationContext> context, | 61 void ReadDirectory(scoped_ptr<storage::FileSystemOperationContext> context, |
| 61 const storage::FileSystemURL& url, | 62 const storage::FileSystemURL& url, |
| 62 const ReadDirectoryCallback& callback) override; | 63 const ReadDirectoryCallback& callback) override; |
| 63 void Touch(scoped_ptr<storage::FileSystemOperationContext> context, | 64 void Touch(scoped_ptr<storage::FileSystemOperationContext> context, |
| 64 const storage::FileSystemURL& url, | 65 const storage::FileSystemURL& url, |
| 65 const base::Time& last_access_time, | 66 const base::Time& last_access_time, |
| 66 const base::Time& last_modified_time, | 67 const base::Time& last_modified_time, |
| 67 const StatusCallback& callback) override; | 68 const StatusCallback& callback) override; |
| 68 void Truncate(scoped_ptr<storage::FileSystemOperationContext> context, | 69 void Truncate(scoped_ptr<storage::FileSystemOperationContext> context, |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 | 215 |
| 215 // Not owned, owned by the backend which owns this. | 216 // Not owned, owned by the backend which owns this. |
| 216 MediaPathFilter* const media_path_filter_; | 217 MediaPathFilter* const media_path_filter_; |
| 217 | 218 |
| 218 base::WeakPtrFactory<NativeMediaFileUtil> weak_factory_; | 219 base::WeakPtrFactory<NativeMediaFileUtil> weak_factory_; |
| 219 | 220 |
| 220 DISALLOW_COPY_AND_ASSIGN(NativeMediaFileUtil); | 221 DISALLOW_COPY_AND_ASSIGN(NativeMediaFileUtil); |
| 221 }; | 222 }; |
| 222 | 223 |
| 223 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_NATIVE_MEDIA_FILE_UTIL_H_ | 224 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_NATIVE_MEDIA_FILE_UTIL_H_ |
| OLD | NEW |