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

Side by Side Diff: webkit/browser/fileapi/local_file_stream_writer.h

Issue 16701004: Fix webkit_storage exports definitions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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
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_BROWSER_FILEAPI_LOCAL_FILE_STREAM_WRITER_H_ 5 #ifndef WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_STREAM_WRITER_H_
6 #define WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_STREAM_WRITER_H_ 6 #define WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_STREAM_WRITER_H_
7 7
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/platform_file.h" 15 #include "base/platform_file.h"
16 #include "webkit/browser/fileapi/file_stream_writer.h" 16 #include "webkit/browser/fileapi/file_stream_writer.h"
17 #include "webkit/storage/webkit_storage_export.h" 17 #include "webkit/browser/webkit_storage_browser_export.h"
18 18
19 namespace net { 19 namespace net {
20 class FileStream; 20 class FileStream;
21 } 21 }
22 22
23 namespace fileapi { 23 namespace fileapi {
24 24
25 // This class is a thin wrapper around net::FileStream for writing local files. 25 // This class is a thin wrapper around net::FileStream for writing local files.
26 class WEBKIT_STORAGE_EXPORT_PRIVATE LocalFileStreamWriter 26 class WEBKIT_STORAGE_BROWSER_EXPORT_PRIVATE LocalFileStreamWriter
27 : public FileStreamWriter { 27 : public FileStreamWriter {
28 public: 28 public:
29 // Create a writer for the existing file in the path |file_path| starting from 29 // Create a writer for the existing file in the path |file_path| starting from
30 // |initial_offset|. 30 // |initial_offset|.
31 LocalFileStreamWriter(const base::FilePath& file_path, int64 initial_offset); 31 LocalFileStreamWriter(const base::FilePath& file_path, int64 initial_offset);
32 virtual ~LocalFileStreamWriter(); 32 virtual ~LocalFileStreamWriter();
33 33
34 // FileStreamWriter overrides. 34 // FileStreamWriter overrides.
35 virtual int Write(net::IOBuffer* buf, int buf_len, 35 virtual int Write(net::IOBuffer* buf, int buf_len,
36 const net::CompletionCallback& callback) OVERRIDE; 36 const net::CompletionCallback& callback) OVERRIDE;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 scoped_ptr<net::FileStream> stream_impl_; 80 scoped_ptr<net::FileStream> stream_impl_;
81 net::CompletionCallback cancel_callback_; 81 net::CompletionCallback cancel_callback_;
82 82
83 base::WeakPtrFactory<LocalFileStreamWriter> weak_factory_; 83 base::WeakPtrFactory<LocalFileStreamWriter> weak_factory_;
84 DISALLOW_COPY_AND_ASSIGN(LocalFileStreamWriter); 84 DISALLOW_COPY_AND_ASSIGN(LocalFileStreamWriter);
85 }; 85 };
86 86
87 } // namespace fileapi 87 } // namespace fileapi
88 88
89 #endif // WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_STREAM_WRITER_H_ 89 #endif // WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_STREAM_WRITER_H_
OLDNEW
« no previous file with comments | « webkit/browser/fileapi/isolated_file_util.h ('k') | webkit/browser/fileapi/local_file_system_operation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698