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

Side by Side Diff: webkit/fileapi/webfilewriter_base.h

Issue 10447055: Move fileapi into its own component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup Created 8 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/fileapi/test_mount_point_provider.h ('k') | webkit/fileapi/webfilewriter_base.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « webkit/fileapi/test_mount_point_provider.h ('k') | webkit/fileapi/webfilewriter_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698