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

Side by Side Diff: content/common/file_system/webfilewriter_impl.h

Issue 6767010: More filesystem cleanup: convert URL-encoded-as-FilePath to actual URL, where (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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
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 CONTENT_COMMON_FILE_SYSTEM_WEBFILEWRITER_IMPL_H_ 5 #ifndef CONTENT_COMMON_FILE_SYSTEM_WEBFILEWRITER_IMPL_H_
6 #define CONTENT_COMMON_FILE_SYSTEM_WEBFILEWRITER_IMPL_H_ 6 #define CONTENT_COMMON_FILE_SYSTEM_WEBFILEWRITER_IMPL_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "webkit/fileapi/webfilewriter_base.h" 10 #include "webkit/fileapi/webfilewriter_base.h"
11 11
12 class FileSystemDispatcher; 12 class FileSystemDispatcher;
13 13
14 // An implementation of WebFileWriter for use in chrome renderers and workers. 14 // An implementation of WebFileWriter for use in chrome renderers and workers.
15 class WebFileWriterImpl : public fileapi::WebFileWriterBase, 15 class WebFileWriterImpl : public fileapi::WebFileWriterBase,
16 public base::SupportsWeakPtr<WebFileWriterImpl> { 16 public base::SupportsWeakPtr<WebFileWriterImpl> {
17 public: 17 public:
18 WebFileWriterImpl( 18 WebFileWriterImpl(const GURL& path, WebKit::WebFileWriterClient* client);
19 const WebKit::WebString& path, WebKit::WebFileWriterClient* client);
20 virtual ~WebFileWriterImpl(); 19 virtual ~WebFileWriterImpl();
21 20
22 protected: 21 protected:
23 // WebFileWriterBase overrides 22 // WebFileWriterBase overrides
24 virtual void DoTruncate(const FilePath& path, int64 offset); 23 virtual void DoTruncate(const GURL& path, int64 offset);
25 virtual void DoWrite(const FilePath& path, const GURL& blob_url, 24 virtual void DoWrite(const GURL& path, const GURL& blob_url,
26 int64 offset); 25 int64 offset);
27 virtual void DoCancel(); 26 virtual void DoCancel();
28 27
29 private: 28 private:
30 class CallbackDispatcher; 29 class CallbackDispatcher;
31 int request_id_; 30 int request_id_;
32 }; 31 };
33 32
34 #endif // CONTENT_COMMON_FILE_SYSTEM_WEBFILEWRITER_IMPL_H_ 33 #endif // CONTENT_COMMON_FILE_SYSTEM_WEBFILEWRITER_IMPL_H_
OLDNEW
« no previous file with comments | « content/common/file_system/webfilesystem_impl.cc ('k') | content/common/file_system/webfilewriter_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698