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

Side by Side Diff: webkit/fileapi/sandbox_file_writer.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/obfuscated_file_util.h ('k') | webkit/fileapi/sandbox_mount_point_provider.h » ('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) 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_SANDBOX_FILE_WRITER_H_ 5 #ifndef WEBKIT_FILEAPI_SANDBOX_FILE_WRITER_H_
6 #define WEBKIT_FILEAPI_SANDBOX_FILE_WRITER_H_ 6 #define WEBKIT_FILEAPI_SANDBOX_FILE_WRITER_H_
7 7
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/platform_file.h" 10 #include "base/platform_file.h"
11 #include "googleurl/src/gurl.h" 11 #include "googleurl/src/gurl.h"
12 #include "webkit/fileapi/fileapi_export.h"
12 #include "webkit/fileapi/file_system_types.h" 13 #include "webkit/fileapi/file_system_types.h"
13 #include "webkit/fileapi/file_writer.h" 14 #include "webkit/fileapi/file_writer.h"
14 #include "webkit/quota/quota_types.h" 15 #include "webkit/quota/quota_types.h"
15 16
16 namespace fileapi { 17 namespace fileapi {
17 18
18 class FileSystemContext; 19 class FileSystemContext;
19 class FileSystemQuotaUtil; 20 class FileSystemQuotaUtil;
20 class LocalFileWriter; 21 class LocalFileWriter;
21 22
22 class SandboxFileWriter : public FileWriter { 23 class FILEAPI_EXPORT_PRIVATE SandboxFileWriter : public FileWriter {
23 public: 24 public:
24 SandboxFileWriter(FileSystemContext* file_system_context, 25 SandboxFileWriter(FileSystemContext* file_system_context,
25 const GURL& url, 26 const GURL& url,
26 int64 initial_offset); 27 int64 initial_offset);
27 virtual ~SandboxFileWriter(); 28 virtual ~SandboxFileWriter();
28 29
29 // FileWriter overrides. 30 // FileWriter overrides.
30 virtual int Write(net::IOBuffer* buf, int buf_len, 31 virtual int Write(net::IOBuffer* buf, int buf_len,
31 const net::CompletionCallback& callback) OVERRIDE; 32 const net::CompletionCallback& callback) OVERRIDE;
32 virtual int Cancel(const net::CompletionCallback& callback) OVERRIDE; 33 virtual int Cancel(const net::CompletionCallback& callback) OVERRIDE;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 int64 default_quota_; 82 int64 default_quota_;
82 83
83 base::WeakPtrFactory<SandboxFileWriter> weak_factory_; 84 base::WeakPtrFactory<SandboxFileWriter> weak_factory_;
84 85
85 DISALLOW_COPY_AND_ASSIGN(SandboxFileWriter); 86 DISALLOW_COPY_AND_ASSIGN(SandboxFileWriter);
86 }; 87 };
87 88
88 } // namespace fileapi 89 } // namespace fileapi
89 90
90 #endif // WEBKIT_FILEAPI_SANDBOX_FILE_WRITER_H_ 91 #endif // WEBKIT_FILEAPI_SANDBOX_FILE_WRITER_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/obfuscated_file_util.h ('k') | webkit/fileapi/sandbox_mount_point_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698