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

Unified Diff: chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.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/mac/mtp_device_delegate_impl_mac.h
diff --git a/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.h b/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.h
index 7e2c905402be2b40731f3d4a93c80c816aa2bf01..13e25c2c19c45b100a98958e776e5687362be539 100644
--- a/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.h
+++ b/chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.h
@@ -10,9 +10,9 @@
#include <vector>
#include "base/containers/hash_tables.h"
+#include "base/files/file.h"
#include "base/files/file_path.h"
#include "base/memory/weak_ptr.h"
-#include "base/platform_file.h"
#include "chrome/browser/media_galleries/fileapi/mtp_device_async_delegate.h"
// Delegate for presenting an Image Capture device through the filesystem
@@ -60,10 +60,10 @@ class MTPDeviceDelegateImplMac : public MTPDeviceAsyncDelegate {
// Forward delegates for ImageCaptureDeviceListener. These are
// invoked in callbacks of the ImageCapture library on the UI thread.
virtual void ItemAdded(const std::string& name,
- const base::PlatformFileInfo& info);
+ const base::File::Info& info);
virtual void NoMoreItems();
virtual void DownloadedFile(const std::string& name,
- base::PlatformFileError error);
+ base::File::Error error);
// Scheduled when early directory reads are requested. The
// timeout will signal an ABORT error to the caller if the
@@ -77,8 +77,8 @@ class MTPDeviceDelegateImplMac : public MTPDeviceAsyncDelegate {
// Delegate for GetFileInfo, called on the UI thread.
void GetFileInfoImpl(const base::FilePath& file_path,
- base::PlatformFileInfo* file_info,
- base::PlatformFileError* error);
+ base::File::Info* file_info,
+ base::File::Error* error);
// Delegate for ReadDirectory, called on the UI thread.
void ReadDirectoryImpl(
@@ -112,7 +112,7 @@ class MTPDeviceDelegateImplMac : public MTPDeviceAsyncDelegate {
// Stores a map from filename to file metadata received from the camera.
base::hash_map<base::FilePath::StringType,
- base::PlatformFileInfo> file_info_;
+ base::File::Info> file_info_;
// List of filenames received from the camera.
std::vector<base::FilePath> file_paths_;

Powered by Google App Engine
This is Rietveld 408576698