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

Unified Diff: webkit/fileapi/file_system_file_stream_reader.h

Issue 10447083: Rename webkit_blob::FileReader to FileStreamReader. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge master branch. Created 8 years, 7 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
« no previous file with comments | « webkit/fileapi/file_system_file_reader.cc ('k') | webkit/fileapi/file_system_file_stream_reader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/file_system_file_stream_reader.h
diff --git a/webkit/fileapi/file_system_file_reader.h b/webkit/fileapi/file_system_file_stream_reader.h
similarity index 68%
rename from webkit/fileapi/file_system_file_reader.h
rename to webkit/fileapi/file_system_file_stream_reader.h
index 4b63ed3de1878bdedf5fce28f3043300b8527bce..f7727adc5087062edce477d41a2c9f1adb72cfb3 100644
--- a/webkit/fileapi/file_system_file_reader.h
+++ b/webkit/fileapi/file_system_file_stream_reader.h
@@ -2,15 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef WEBKIT_FILEAPI_FILE_SYSTEM_FILE_READER_H_
-#define WEBKIT_FILEAPI_FILE_SYSTEM_FILE_READER_H_
+#ifndef WEBKIT_FILEAPI_FILE_SYSTEM_FILE_STREAM_READER_H_
+#define WEBKIT_FILEAPI_FILE_SYSTEM_FILE_STREAM_READER_H_
#pragma once
#include "base/bind.h"
#include "base/memory/ref_counted.h"
#include "base/platform_file.h"
#include "googleurl/src/gurl.h"
-#include "webkit/blob/file_reader.h"
+#include "webkit/blob/file_stream_reader.h"
class FilePath;
@@ -19,7 +19,7 @@ class SequencedTaskRunner;
}
namespace webkit_blob {
-class LocalFileReader;
+class LocalFileStreamReader;
class ShareableFileReference;
}
@@ -31,13 +31,13 @@ class FileSystemContext;
// filesystems but remote filesystem should implement its own reader
// rather than relying on FileSystemOperation::GetSnapshotFile() which
// may force downloading the entire contents for remote files.
-class FileSystemFileReader : public webkit_blob::FileReader {
+class FileSystemFileStreamReader : public webkit_blob::FileStreamReader {
public:
// Creates a new FileReader for a filesystem URL |url| form |initial_offset|.
- FileSystemFileReader(FileSystemContext* file_system_context,
- const GURL& url,
- int64 initial_offset);
- virtual ~FileSystemFileReader();
+ FileSystemFileStreamReader(FileSystemContext* file_system_context,
+ const GURL& url,
+ int64 initial_offset);
+ virtual ~FileSystemFileStreamReader();
// FileReader override.
virtual int Read(net::IOBuffer* buf, int buf_len,
@@ -55,14 +55,14 @@ class FileSystemFileReader : public webkit_blob::FileReader {
scoped_refptr<FileSystemContext> file_system_context_;
const GURL url_;
const int64 initial_offset_;
- scoped_ptr<webkit_blob::LocalFileReader> local_file_reader_;
+ scoped_ptr<webkit_blob::LocalFileStreamReader> local_file_reader_;
scoped_refptr<webkit_blob::ShareableFileReference> snapshot_ref_;
bool has_pending_create_snapshot_;
- base::WeakPtrFactory<FileSystemFileReader> weak_factory_;
+ base::WeakPtrFactory<FileSystemFileStreamReader> weak_factory_;
- DISALLOW_COPY_AND_ASSIGN(FileSystemFileReader);
+ DISALLOW_COPY_AND_ASSIGN(FileSystemFileStreamReader);
};
} // namespace fileapi
-#endif // WEBKIT_FILEAPI_FILE_SYSTEM_FILE_READER_H_
+#endif // WEBKIT_FILEAPI_FILE_SYSTEM_FILE_STREAM_READER_H_
« no previous file with comments | « webkit/fileapi/file_system_file_reader.cc ('k') | webkit/fileapi/file_system_file_stream_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698