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_RENDERER_FILEAPI_WEBFILEWRITER_BASE_H_ | 5 #ifndef WEBKIT_RENDERER_FILEAPI_WEBFILEWRITER_BASE_H_ |
6 #define WEBKIT_RENDERER_FILEAPI_WEBFILEWRITER_BASE_H_ | 6 #define WEBKIT_RENDERER_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/storage/webkit_storage_export.h" | 11 #include "webkit/renderer/webkit_storage_renderer_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 WEBKIT_STORAGE_EXPORT WebFileWriterBase | 20 class WEBKIT_STORAGE_RENDERER_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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 GURL path_; | 63 GURL path_; |
64 WebKit::WebFileWriterClient* client_; | 64 WebKit::WebFileWriterClient* client_; |
65 OperationType operation_; | 65 OperationType operation_; |
66 CancelState cancel_state_; | 66 CancelState cancel_state_; |
67 }; | 67 }; |
68 | 68 |
69 } // namespace fileapi | 69 } // namespace fileapi |
70 | 70 |
71 #endif // WEBKIT_RENDERER_FILEAPI_WEBFILEWRITER_BASE_H_ | 71 #endif // WEBKIT_RENDERER_FILEAPI_WEBFILEWRITER_BASE_H_ |
OLD | NEW |