OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 | 12 |
12 namespace WebKit { | 13 namespace WebKit { |
13 class WebFileWriterClient; | 14 class WebFileWriterClient; |
14 class WebURL; | 15 class WebURL; |
15 } | 16 } |
16 | 17 |
17 namespace fileapi { | 18 namespace fileapi { |
18 | 19 |
19 class WebFileWriterBase : public WebKit::WebFileWriter { | 20 class FILEAPI_EXPORT WebFileWriterBase |
| 21 : public NON_EXPORTED_BASE(WebKit::WebFileWriter) { |
20 public: | 22 public: |
21 WebFileWriterBase( | 23 WebFileWriterBase( |
22 const GURL& path, WebKit::WebFileWriterClient* client); | 24 const GURL& path, WebKit::WebFileWriterClient* client); |
23 virtual ~WebFileWriterBase(); | 25 virtual ~WebFileWriterBase(); |
24 | 26 |
25 // WebFileWriter implementation | 27 // WebFileWriter implementation |
26 virtual void truncate(long long length); | 28 virtual void truncate(long long length); |
27 virtual void write(long long position, const WebKit::WebURL& blobURL); | 29 virtual void write(long long position, const WebKit::WebURL& blobURL); |
28 virtual void cancel(); | 30 virtual void cancel(); |
29 | 31 |
(...skipping 27 matching lines...) Expand all Loading... |
57 | 59 |
58 GURL path_; | 60 GURL path_; |
59 WebKit::WebFileWriterClient* client_; | 61 WebKit::WebFileWriterClient* client_; |
60 OperationType operation_; | 62 OperationType operation_; |
61 CancelState cancel_state_; | 63 CancelState cancel_state_; |
62 }; | 64 }; |
63 | 65 |
64 } // namespace fileapi | 66 } // namespace fileapi |
65 | 67 |
66 #endif // WEBKIT_FILEAPI_WEBFILEWRITER_BASE_H_ | 68 #endif // WEBKIT_FILEAPI_WEBFILEWRITER_BASE_H_ |
OLD | NEW |