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

Unified Diff: webkit/fileapi/upload_file_system_file_element_reader.h

Issue 15859007: Move browser-specific FileAPI code from webkit/fileapi to webkit/browser/fileapi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: dump_file_system build fix Created 7 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
Index: webkit/fileapi/upload_file_system_file_element_reader.h
diff --git a/webkit/fileapi/upload_file_system_file_element_reader.h b/webkit/fileapi/upload_file_system_file_element_reader.h
deleted file mode 100644
index 19b3db1a61e45a3cf140e85ebdcd789b8b4fb0be..0000000000000000000000000000000000000000
--- a/webkit/fileapi/upload_file_system_file_element_reader.h
+++ /dev/null
@@ -1,64 +0,0 @@
-// Copyright (c) 2013 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_FILEAPI_UPLOAD_FILE_SYSTEM_FILE_ELEMENT_READER_H_
-#define WEBKIT_FILEAPI_UPLOAD_FILE_SYSTEM_FILE_ELEMENT_READER_H_
-
-#include "base/memory/weak_ptr.h"
-#include "base/time.h"
-#include "googleurl/src/gurl.h"
-#include "net/base/upload_element_reader.h"
-#include "webkit/storage/webkit_storage_export.h"
-
-namespace webkit_blob {
-class FileStreamReader;
-}
-
-namespace fileapi {
-
-class FileSystemContext;
-
-// An UploadElementReader implementation for filesystem file.
-class WEBKIT_STORAGE_EXPORT UploadFileSystemFileElementReader
- : public net::UploadElementReader {
- public:
- UploadFileSystemFileElementReader(
- FileSystemContext* file_system_context,
- const GURL& url,
- uint64 range_offset,
- uint64 range_length,
- const base::Time& expected_modification_time);
- virtual ~UploadFileSystemFileElementReader();
-
- // UploadElementReader overrides:
- virtual int Init(const net::CompletionCallback& callback) OVERRIDE;
- virtual uint64 GetContentLength() const OVERRIDE;
- virtual uint64 BytesRemaining() const OVERRIDE;
- virtual int Read(net::IOBuffer* buf,
- int buf_length,
- const net::CompletionCallback& callback) OVERRIDE;
-
- private:
- void OnGetLength(const net::CompletionCallback& callback, int64 result);
- void OnRead(const net::CompletionCallback& callback, int result);
-
- scoped_refptr<FileSystemContext> file_system_context_;
- const GURL url_;
- const uint64 range_offset_;
- const uint64 range_length_;
- const base::Time expected_modification_time_;
-
- scoped_ptr<webkit_blob::FileStreamReader> stream_reader_;
-
- uint64 stream_length_;
- uint64 position_;
-
- base::WeakPtrFactory<UploadFileSystemFileElementReader> weak_ptr_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(UploadFileSystemFileElementReader);
-};
-
-} // namespace fileapi
-
-#endif // WEBKIT_FILEAPI_UPLOAD_FILE_SYSTEM_FILE_ELEMENT_READER_H_
« no previous file with comments | « webkit/fileapi/test_mount_point_provider.cc ('k') | webkit/fileapi/upload_file_system_file_element_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698