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

Unified Diff: chrome/browser/media_galleries/fileapi/mtp_file_stream_reader.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_file_stream_reader.h
diff --git a/chrome/browser/media_galleries/fileapi/mtp_file_stream_reader.h b/chrome/browser/media_galleries/fileapi/mtp_file_stream_reader.h
index 397c3e3c94f7d3ced282b9677b6f79f18fc71480..cc5d910f3c7fe4f0a8eca609d92d1e72b8b9a4f7 100644
--- a/chrome/browser/media_galleries/fileapi/mtp_file_stream_reader.h
+++ b/chrome/browser/media_galleries/fileapi/mtp_file_stream_reader.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_MTP_FILE_STREAM_READER_H_
#include "base/bind.h"
+#include "base/files/file.h"
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
#include "webkit/browser/blob/file_stream_reader.h"
@@ -14,7 +15,6 @@
namespace base {
class FilePath;
-struct PlatformFileInfo;
}
namespace fileapi {
@@ -40,13 +40,13 @@ class MTPFileStreamReader
private:
void OnFileInfoForRead(net::IOBuffer* buf, int buf_len,
const net::CompletionCallback& callback,
- const base::PlatformFileInfo& file_info);
+ const base::File::Info& file_info);
void FinishRead(const net::CompletionCallback& callback,
int bytes_read);
void FinishGetLength(const net::Int64CompletionCallback& callback,
- const base::PlatformFileInfo& file_info);
+ const base::File::Info& file_info);
scoped_refptr<fileapi::FileSystemContext> file_system_context_;
fileapi::FileSystemURL url_;

Powered by Google App Engine
This is Rietveld 408576698