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

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

Issue 492873002: Collapse fileapi, webkit_blob, webkit_database, quota, and webkit_common namespaces into single sto… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos build Created 6 years, 4 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/gtest_prod_util.h" 13 #include "base/gtest_prod_util.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
16 #include "base/task_runner.h" 16 #include "base/task_runner.h"
17 #include "webkit/browser/fileapi/file_stream_writer.h" 17 #include "webkit/browser/fileapi/file_stream_writer.h"
18 #include "webkit/browser/webkit_storage_browser_export.h" 18 #include "webkit/browser/webkit_storage_browser_export.h"
19 19
20 namespace content { 20 namespace content {
21 class LocalFileStreamWriterTest; 21 class LocalFileStreamWriterTest;
22 } 22 }
23 23
24 namespace net { 24 namespace net {
25 class FileStream; 25 class FileStream;
26 } 26 }
27 27
28 namespace fileapi { 28 namespace storage {
29 29
30 // This class is a thin wrapper around net::FileStream for writing local files. 30 // This class is a thin wrapper around net::FileStream for writing local files.
31 class WEBKIT_STORAGE_BROWSER_EXPORT LocalFileStreamWriter 31 class WEBKIT_STORAGE_BROWSER_EXPORT LocalFileStreamWriter
32 : public NON_EXPORTED_BASE(FileStreamWriter) { 32 : public NON_EXPORTED_BASE(FileStreamWriter) {
33 public: 33 public:
34 virtual ~LocalFileStreamWriter(); 34 virtual ~LocalFileStreamWriter();
35 35
36 // FileStreamWriter overrides. 36 // FileStreamWriter overrides.
37 virtual int Write(net::IOBuffer* buf, int buf_len, 37 virtual int Write(net::IOBuffer* buf, int buf_len,
38 const net::CompletionCallback& callback) OVERRIDE; 38 const net::CompletionCallback& callback) OVERRIDE;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 // Current states of the operation. 89 // Current states of the operation.
90 bool has_pending_operation_; 90 bool has_pending_operation_;
91 scoped_ptr<net::FileStream> stream_impl_; 91 scoped_ptr<net::FileStream> stream_impl_;
92 net::CompletionCallback cancel_callback_; 92 net::CompletionCallback cancel_callback_;
93 93
94 base::WeakPtrFactory<LocalFileStreamWriter> weak_factory_; 94 base::WeakPtrFactory<LocalFileStreamWriter> weak_factory_;
95 DISALLOW_COPY_AND_ASSIGN(LocalFileStreamWriter); 95 DISALLOW_COPY_AND_ASSIGN(LocalFileStreamWriter);
96 }; 96 };
97 97
98 } // namespace fileapi 98 } // namespace storage
99 99
100 #endif // WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_STREAM_WRITER_H_ 100 #endif // WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_STREAM_WRITER_H_
OLDNEW
« no previous file with comments | « webkit/browser/fileapi/isolated_file_system_backend.cc ('k') | webkit/browser/fileapi/local_file_stream_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698