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

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: 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 7084e4c9a458f8fffd6614c65bb8ef66dad39acc..b0127e9edaa8f17872914330d46f5e592efb22fe 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 {
@@ -23,7 +23,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<
@@ -32,12 +32,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;
// Gets information about the given |file_path| and invokes the appropriate

Powered by Google App Engine
This is Rietveld 408576698