| OLD | NEW |
| 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_FILEAPI_WEBFILEWRITER_BASE_H_ | 5 #ifndef WEBKIT_FILEAPI_WEBFILEWRITER_BASE_H_ |
| 6 #define WEBKIT_FILEAPI_WEBFILEWRITER_BASE_H_ | 6 #define WEBKIT_FILEAPI_WEBFILEWRITER_BASE_H_ |
| 7 | 7 |
| 8 #include "base/platform_file.h" | 8 #include "base/platform_file.h" |
| 9 #include "googleurl/src/gurl.h" | 9 #include "googleurl/src/gurl.h" |
| 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileWriter.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileWriter.h" |
| 11 #include "webkit/fileapi/fileapi_export.h" | 11 #include "webkit/storage/webkit_storage_export.h" |
| 12 | 12 |
| 13 namespace WebKit { | 13 namespace WebKit { |
| 14 class WebFileWriterClient; | 14 class WebFileWriterClient; |
| 15 class WebURL; | 15 class WebURL; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace fileapi { | 18 namespace fileapi { |
| 19 | 19 |
| 20 class FILEAPI_EXPORT WebFileWriterBase | 20 class WEBKIT_STORAGE_EXPORT WebFileWriterBase |
| 21 : public NON_EXPORTED_BASE(WebKit::WebFileWriter) { | 21 : public NON_EXPORTED_BASE(WebKit::WebFileWriter) { |
| 22 public: | 22 public: |
| 23 WebFileWriterBase( | 23 WebFileWriterBase( |
| 24 const GURL& path, WebKit::WebFileWriterClient* client); | 24 const GURL& path, WebKit::WebFileWriterClient* client); |
| 25 virtual ~WebFileWriterBase(); | 25 virtual ~WebFileWriterBase(); |
| 26 | 26 |
| 27 // WebFileWriter implementation | 27 // WebFileWriter implementation |
| 28 virtual void truncate(long long length); | 28 virtual void truncate(long long length); |
| 29 virtual void write(long long position, const WebKit::WebURL& blobURL); | 29 virtual void write(long long position, const WebKit::WebURL& blobURL); |
| 30 virtual void cancel(); | 30 virtual void cancel(); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 59 | 59 |
| 60 GURL path_; | 60 GURL path_; |
| 61 WebKit::WebFileWriterClient* client_; | 61 WebKit::WebFileWriterClient* client_; |
| 62 OperationType operation_; | 62 OperationType operation_; |
| 63 CancelState cancel_state_; | 63 CancelState cancel_state_; |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 } // namespace fileapi | 66 } // namespace fileapi |
| 67 | 67 |
| 68 #endif // WEBKIT_FILEAPI_WEBFILEWRITER_BASE_H_ | 68 #endif // WEBKIT_FILEAPI_WEBFILEWRITER_BASE_H_ |
| OLD | NEW |