| Index: webkit/browser/fileapi/file_system_file_stream_reader.h
|
| diff --git a/webkit/browser/fileapi/file_system_file_stream_reader.h b/webkit/browser/fileapi/file_system_file_stream_reader.h
|
| index 8845aa050de158660dabfbeee41373652ec631da..3290fa00096b0618df27f6928b1c33bb6ac6be6d 100644
|
| --- a/webkit/browser/fileapi/file_system_file_stream_reader.h
|
| +++ b/webkit/browser/fileapi/file_system_file_stream_reader.h
|
| @@ -1,79 +1,5 @@
|
| -// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_FILE_STREAM_READER_H_
|
| -#define WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_FILE_STREAM_READER_H_
|
| -
|
| -#include "base/bind.h"
|
| -#include "base/files/file.h"
|
| -#include "base/memory/ref_counted.h"
|
| -#include "base/time/time.h"
|
| -#include "webkit/browser/blob/file_stream_reader.h"
|
| -#include "webkit/browser/fileapi/file_system_url.h"
|
| -#include "webkit/browser/storage_browser_export.h"
|
| -#include "webkit/common/blob/shareable_file_reference.h"
|
| -
|
| -namespace base {
|
| -class FilePath;
|
| -class SequencedTaskRunner;
|
| -}
|
| -
|
| -namespace content {
|
| -class FileSystemFileStreamReaderTest;
|
| -}
|
| -
|
| -namespace storage {
|
| -
|
| -class FileSystemContext;
|
| -
|
| -// Generic FileStreamReader implementation for FileSystem files.
|
| -// Note: This generic implementation would work for any 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 STORAGE_EXPORT_PRIVATE FileSystemFileStreamReader
|
| - : public NON_EXPORTED_BASE(storage::FileStreamReader) {
|
| - public:
|
| - virtual ~FileSystemFileStreamReader();
|
| -
|
| - // FileStreamReader overrides.
|
| - virtual int Read(net::IOBuffer* buf, int buf_len,
|
| - const net::CompletionCallback& callback) OVERRIDE;
|
| - virtual int64 GetLength(
|
| - const net::Int64CompletionCallback& callback) OVERRIDE;
|
| -
|
| - private:
|
| - friend class storage::FileStreamReader;
|
| - friend class content::FileSystemFileStreamReaderTest;
|
| -
|
| - FileSystemFileStreamReader(FileSystemContext* file_system_context,
|
| - const FileSystemURL& url,
|
| - int64 initial_offset,
|
| - const base::Time& expected_modification_time);
|
| -
|
| - int CreateSnapshot(const base::Closure& callback,
|
| - const net::CompletionCallback& error_callback);
|
| - void DidCreateSnapshot(
|
| - const base::Closure& callback,
|
| - const net::CompletionCallback& error_callback,
|
| - base::File::Error file_error,
|
| - const base::File::Info& file_info,
|
| - const base::FilePath& platform_path,
|
| - const scoped_refptr<storage::ShareableFileReference>& file_ref);
|
| -
|
| - scoped_refptr<FileSystemContext> file_system_context_;
|
| - FileSystemURL url_;
|
| - const int64 initial_offset_;
|
| - const base::Time expected_modification_time_;
|
| - scoped_ptr<storage::FileStreamReader> local_file_reader_;
|
| - scoped_refptr<storage::ShareableFileReference> snapshot_ref_;
|
| - bool has_pending_create_snapshot_;
|
| - base::WeakPtrFactory<FileSystemFileStreamReader> weak_factory_;
|
| -
|
| - DISALLOW_COPY_AND_ASSIGN(FileSystemFileStreamReader);
|
| -};
|
| -
|
| -} // namespace storage
|
| -
|
| -#endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_FILE_STREAM_READER_H_
|
| +#include "storage/browser/fileapi/file_system_file_stream_reader.h"
|
|
|