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

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

Issue 623293003: replace OVERRIDE and FINAL with override and final in chrome/browser/chromeos/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: run git cl format on echo_dialog_view.h Created 6 years, 2 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
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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/files/file.h" 9 #include "base/files/file.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 11 matching lines...) Expand all
22 // to Write(). 22 // to Write().
23 class FileStreamWriter : public storage::FileStreamWriter { 23 class FileStreamWriter : public storage::FileStreamWriter {
24 public: 24 public:
25 FileStreamWriter(const storage::FileSystemURL& url, int64 initial_offset); 25 FileStreamWriter(const storage::FileSystemURL& url, int64 initial_offset);
26 26
27 virtual ~FileStreamWriter(); 27 virtual ~FileStreamWriter();
28 28
29 // storage::FileStreamWriter overrides. 29 // storage::FileStreamWriter overrides.
30 virtual int Write(net::IOBuffer* buf, 30 virtual int Write(net::IOBuffer* buf,
31 int buf_len, 31 int buf_len,
32 const net::CompletionCallback& callback) OVERRIDE; 32 const net::CompletionCallback& callback) override;
33 virtual int Cancel(const net::CompletionCallback& callback) OVERRIDE; 33 virtual int Cancel(const net::CompletionCallback& callback) override;
34 virtual int Flush(const net::CompletionCallback& callback) OVERRIDE; 34 virtual int Flush(const net::CompletionCallback& callback) override;
35 35
36 private: 36 private:
37 // Helper class for executing operations on the provided file system. All 37 // Helper class for executing operations on the provided file system. All
38 // of its methods must be called on UI thread. Callbacks are called on IO 38 // of its methods must be called on UI thread. Callbacks are called on IO
39 // thread. 39 // thread.
40 class OperationRunner; 40 class OperationRunner;
41 41
42 // State of the file stream writer. 42 // State of the file stream writer.
43 enum State { NOT_INITIALIZED, INITIALIZING, INITIALIZED, FAILED }; 43 enum State { NOT_INITIALIZED, INITIALIZING, INITIALIZED, FAILED };
44 44
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 State state_; 78 State state_;
79 79
80 base::WeakPtrFactory<FileStreamWriter> weak_ptr_factory_; 80 base::WeakPtrFactory<FileStreamWriter> weak_ptr_factory_;
81 DISALLOW_COPY_AND_ASSIGN(FileStreamWriter); 81 DISALLOW_COPY_AND_ASSIGN(FileStreamWriter);
82 }; 82 };
83 83
84 } // namespace file_system_provider 84 } // namespace file_system_provider
85 } // namespace chromeos 85 } // namespace chromeos
86 86
87 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_FILE_STREAM_WRIT ER_H_ 87 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_FILE_STREAM_WRIT ER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698