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

Unified Diff: chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h

Issue 145303002: Convert Media Galleries to use base::File (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 11 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h
diff --git a/chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h b/chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h
index d9ffe8422af321549f2a0ca4b8b528a765c54d34..9ac5f7bb7740b1e6f37b74588a77bd7b1b97797c 100644
--- a/chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h
+++ b/chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h
@@ -6,8 +6,8 @@
#define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MTP_DEVICE_ASYNC_DELEGATE_H_
#include "base/callback.h"
+#include "base/files/file.h"
#include "base/memory/ref_counted.h"
-#include "base/platform_file.h"
#include "webkit/browser/fileapi/async_file_util.h"
namespace base {
@@ -27,7 +27,7 @@ class MTPDeviceAsyncDelegate {
public:
// A callback to be called when GetFileInfo method call succeeds.
typedef base::Callback<
- void(const base::PlatformFileInfo& file_info)> GetFileInfoSuccessCallback;
+ void(const base::File::Info& file_info)> GetFileInfoSuccessCallback;
// A callback to be called when ReadDirectory method call succeeds.
typedef base::Callback<
@@ -36,12 +36,11 @@ class MTPDeviceAsyncDelegate {
// A callback to be called when GetFileInfo/ReadDirectory/CreateSnapshot
// method call fails.
- typedef base::Callback<
- void(base::PlatformFileError error)> ErrorCallback;
+ typedef base::Callback<void(base::File::Error error)> ErrorCallback;
// A callback to be called when CreateSnapshotFile method call succeeds.
typedef base::Callback<
- void(const base::PlatformFileInfo& file_info,
+ void(const base::File::Info& file_info,
const base::FilePath& local_path)> CreateSnapshotFileSuccessCallback;
// A callback to be called when ReadBytes method call succeeds.

Powered by Google App Engine
This is Rietveld 408576698