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

Side by Side Diff: webkit/browser/blob/local_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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_BROWSER_BLOB_LOCAL_FILE_STREAM_READER_H_ 5 #ifndef WEBKIT_BROWSER_BLOB_LOCAL_FILE_STREAM_READER_H_
6 #define WEBKIT_BROWSER_BLOB_LOCAL_FILE_STREAM_READER_H_ 6 #define WEBKIT_BROWSER_BLOB_LOCAL_FILE_STREAM_READER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/files/file.h"
10 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
11 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
12 #include "base/platform_file.h"
13 #include "base/time/time.h" 13 #include "base/time/time.h"
14 #include "webkit/browser/blob/file_stream_reader.h" 14 #include "webkit/browser/blob/file_stream_reader.h"
15 #include "webkit/browser/webkit_storage_browser_export.h" 15 #include "webkit/browser/webkit_storage_browser_export.h"
16 16
17 namespace base { 17 namespace base {
18 class TaskRunner; 18 class TaskRunner;
19 } 19 }
20 20
21 namespace net { 21 namespace net {
22 class FileStream; 22 class FileStream;
(...skipping 30 matching lines...) Expand all
53 void DidOpenFileStream(const net::CompletionCallback& callback, 53 void DidOpenFileStream(const net::CompletionCallback& callback,
54 int result); 54 int result);
55 void DidSeekFileStream(const net::CompletionCallback& callback, 55 void DidSeekFileStream(const net::CompletionCallback& callback,
56 int64 seek_result); 56 int64 seek_result);
57 void DidOpenForRead(net::IOBuffer* buf, 57 void DidOpenForRead(net::IOBuffer* buf,
58 int buf_len, 58 int buf_len,
59 const net::CompletionCallback& callback, 59 const net::CompletionCallback& callback,
60 int open_result); 60 int open_result);
61 61
62 void DidGetFileInfoForGetLength(const net::Int64CompletionCallback& callback, 62 void DidGetFileInfoForGetLength(const net::Int64CompletionCallback& callback,
63 base::PlatformFileError error, 63 base::File::Error error,
64 const base::PlatformFileInfo& file_info); 64 const base::File::Info& file_info);
65 65
66 scoped_refptr<base::TaskRunner> task_runner_; 66 scoped_refptr<base::TaskRunner> task_runner_;
67 scoped_ptr<net::FileStream> stream_impl_; 67 scoped_ptr<net::FileStream> stream_impl_;
68 const base::FilePath file_path_; 68 const base::FilePath file_path_;
69 const int64 initial_offset_; 69 const int64 initial_offset_;
70 const base::Time expected_modification_time_; 70 const base::Time expected_modification_time_;
71 bool has_pending_open_; 71 bool has_pending_open_;
72 base::WeakPtrFactory<LocalFileStreamReader> weak_factory_; 72 base::WeakPtrFactory<LocalFileStreamReader> weak_factory_;
73 }; 73 };
74 74
75 } // namespace webkit_blob 75 } // namespace webkit_blob
76 76
77 #endif // WEBKIT_BROWSER_BLOB_LOCAL_FILE_STREAM_READER_H_ 77 #endif // WEBKIT_BROWSER_BLOB_LOCAL_FILE_STREAM_READER_H_
OLDNEW
« no previous file with comments | « webkit/browser/blob/file_stream_reader.cc ('k') | webkit/browser/blob/local_file_stream_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698