Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(203)

Side by Side Diff: chrome/browser/media_galleries/fileapi/native_media_file_util.h

Issue 1455403003: Add an option to specify requested fields for fetching metadata. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleaned up. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698