OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_FILEAPI_UPLOAD_FILE_SYSTEM_FILE_ELEMENT_READER_H_ | 5 #ifndef WEBKIT_BROWSER_FILEAPI_UPLOAD_FILE_SYSTEM_FILE_ELEMENT_READER_H_ |
6 #define WEBKIT_BROWSER_FILEAPI_UPLOAD_FILE_SYSTEM_FILE_ELEMENT_READER_H_ | 6 #define WEBKIT_BROWSER_FILEAPI_UPLOAD_FILE_SYSTEM_FILE_ELEMENT_READER_H_ |
7 | 7 |
8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "base/time.h" | 9 #include "base/time.h" |
10 #include "googleurl/src/gurl.h" | 10 #include "googleurl/src/gurl.h" |
11 #include "net/base/upload_element_reader.h" | 11 #include "net/base/upload_element_reader.h" |
12 #include "webkit/storage/webkit_storage_export.h" | 12 #include "webkit/browser/webkit_storage_browser_export.h" |
13 | 13 |
14 namespace webkit_blob { | 14 namespace webkit_blob { |
15 class FileStreamReader; | 15 class FileStreamReader; |
16 } | 16 } |
17 | 17 |
18 namespace fileapi { | 18 namespace fileapi { |
19 | 19 |
20 class FileSystemContext; | 20 class FileSystemContext; |
21 | 21 |
22 // An UploadElementReader implementation for filesystem file. | 22 // An UploadElementReader implementation for filesystem file. |
23 class WEBKIT_STORAGE_EXPORT UploadFileSystemFileElementReader | 23 class WEBKIT_STORAGE_BROWSER_EXPORT UploadFileSystemFileElementReader |
24 : public net::UploadElementReader { | 24 : public net::UploadElementReader { |
25 public: | 25 public: |
26 UploadFileSystemFileElementReader( | 26 UploadFileSystemFileElementReader( |
27 FileSystemContext* file_system_context, | 27 FileSystemContext* file_system_context, |
28 const GURL& url, | 28 const GURL& url, |
29 uint64 range_offset, | 29 uint64 range_offset, |
30 uint64 range_length, | 30 uint64 range_length, |
31 const base::Time& expected_modification_time); | 31 const base::Time& expected_modification_time); |
32 virtual ~UploadFileSystemFileElementReader(); | 32 virtual ~UploadFileSystemFileElementReader(); |
33 | 33 |
(...skipping 21 matching lines...) Expand all Loading... |
55 uint64 position_; | 55 uint64 position_; |
56 | 56 |
57 base::WeakPtrFactory<UploadFileSystemFileElementReader> weak_ptr_factory_; | 57 base::WeakPtrFactory<UploadFileSystemFileElementReader> weak_ptr_factory_; |
58 | 58 |
59 DISALLOW_COPY_AND_ASSIGN(UploadFileSystemFileElementReader); | 59 DISALLOW_COPY_AND_ASSIGN(UploadFileSystemFileElementReader); |
60 }; | 60 }; |
61 | 61 |
62 } // namespace fileapi | 62 } // namespace fileapi |
63 | 63 |
64 #endif // WEBKIT_BROWSER_FILEAPI_UPLOAD_FILE_SYSTEM_FILE_ELEMENT_READER_H_ | 64 #endif // WEBKIT_BROWSER_FILEAPI_UPLOAD_FILE_SYSTEM_FILE_ELEMENT_READER_H_ |
OLD | NEW |