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

Unified Diff: chrome/browser/media_galleries/win/mtp_device_delegate_impl_win.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/win/mtp_device_delegate_impl_win.h
diff --git a/chrome/browser/media_galleries/win/mtp_device_delegate_impl_win.h b/chrome/browser/media_galleries/win/mtp_device_delegate_impl_win.h
index e3f8c050cd3cf9c098cca6f2ee894ac09ab6a31c..e88b7c2d4c9cb7c7549d355f6eecdb8781560278 100644
--- a/chrome/browser/media_galleries/win/mtp_device_delegate_impl_win.h
+++ b/chrome/browser/media_galleries/win/mtp_device_delegate_impl_win.h
@@ -8,10 +8,10 @@
#include <queue>
#include "base/callback.h"
+#include "base/files/file.h"
#include "base/location.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
-#include "base/platform_file.h"
#include "base/strings/string16.h"
#include "base/win/scoped_comptr.h"
#include "chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h"
@@ -72,12 +72,12 @@ class MTPDeviceDelegateImplWin : public MTPDeviceAsyncDelegate {
// Used to represent pending task details.
struct PendingTaskInfo {
PendingTaskInfo(const tracked_objects::Location& location,
- const base::Callback<base::PlatformFileError(void)>& task,
- const base::Callback<void(base::PlatformFileError)>& reply);
+ const base::Callback<base::File::Error(void)>& task,
+ const base::Callback<void(base::File::Error)>& reply);
const tracked_objects::Location location;
- const base::Callback<base::PlatformFileError(void)> task;
- const base::Callback<void(base::PlatformFileError)> reply;
+ const base::Callback<base::File::Error(void)> task;
+ const base::Callback<void(base::File::Error)> reply;
};
// Defers the device initializations until the first file operation request.
@@ -146,8 +146,8 @@ class MTPDeviceDelegateImplWin : public MTPDeviceAsyncDelegate {
// invoked to notify the caller about the platform file |error|.
void OnGetFileInfo(const GetFileInfoSuccessCallback& success_callback,
const ErrorCallback& error_callback,
- base::PlatformFileInfo* file_info,
- base::PlatformFileError error);
+ base::File::Info* file_info,
+ base::File::Error error);
// Called when ReadDirectory() completes. |file_list| contains the directory
// file entries information. |error| specifies the platform file error code.
@@ -160,7 +160,7 @@ class MTPDeviceDelegateImplWin : public MTPDeviceAsyncDelegate {
void OnDidReadDirectory(const ReadDirectorySuccessCallback& success_callback,
const ErrorCallback& error_callback,
fileapi::AsyncFileUtil::EntryList* file_list,
- base::PlatformFileError error);
+ base::File::Error error);
// Called when the get file stream request completes.
// |file_details.request_info| contains the CreateSnapshot request param
@@ -172,7 +172,7 @@ class MTPDeviceDelegateImplWin : public MTPDeviceAsyncDelegate {
//
// If the get file stream request fails, |error| is set accordingly.
void OnGetFileStream(scoped_ptr<SnapshotFileDetails> file_details,
- base::PlatformFileError error);
+ base::File::Error error);
// Called when WriteDataChunkIntoSnapshotFile() completes.
// |bytes_written| specifies the number of bytes written into the

Powered by Google App Engine
This is Rietveld 408576698