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

Side by Side Diff: chrome/browser/chromeos/file_system_provider/fileapi/file_stream_writer.h

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_FILE_STREAM_WRITER_ H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_FILE_STREAM_WRITER_ H_
6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_FILE_STREAM_WRITER_ H_ 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_FILE_STREAM_WRITER_ H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/files/file.h" 10 #include "base/files/file.h"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "storage/browser/fileapi/file_stream_writer.h" 15 #include "storage/browser/fileapi/file_stream_writer.h"
16 #include "storage/browser/fileapi/file_system_url.h" 16 #include "storage/browser/fileapi/file_system_url.h"
17 17
18 namespace chromeos { 18 namespace chromeos {
19 namespace file_system_provider { 19 namespace file_system_provider {
20 20
21 class ProvidedFileSystemInterface;
22
23 // Implements a streamed file writer. It is lazily initialized by the first call 21 // Implements a streamed file writer. It is lazily initialized by the first call
24 // to Write(). 22 // to Write().
25 class FileStreamWriter : public storage::FileStreamWriter { 23 class FileStreamWriter : public storage::FileStreamWriter {
26 public: 24 public:
27 FileStreamWriter(const storage::FileSystemURL& url, int64_t initial_offset); 25 FileStreamWriter(const storage::FileSystemURL& url, int64_t initial_offset);
28 26
29 ~FileStreamWriter() override; 27 ~FileStreamWriter() override;
30 28
31 // storage::FileStreamWriter overrides. 29 // storage::FileStreamWriter overrides.
32 int Write(net::IOBuffer* buf, 30 int Write(net::IOBuffer* buf,
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 State state_; 80 State state_;
83 81
84 base::WeakPtrFactory<FileStreamWriter> weak_ptr_factory_; 82 base::WeakPtrFactory<FileStreamWriter> weak_ptr_factory_;
85 DISALLOW_COPY_AND_ASSIGN(FileStreamWriter); 83 DISALLOW_COPY_AND_ASSIGN(FileStreamWriter);
86 }; 84 };
87 85
88 } // namespace file_system_provider 86 } // namespace file_system_provider
89 } // namespace chromeos 87 } // namespace chromeos
90 88
91 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_FILE_STREAM_WRIT ER_H_ 89 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_FILE_STREAM_WRIT ER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698