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

Side by Side Diff: storage/browser/blob/local_file_stream_reader.h

Issue 624063003: Replacing the OVERRIDE with override and FINAL with final in storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed the error 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 (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 STORAGE_BROWSER_BLOB_LOCAL_FILE_STREAM_READER_H_ 5 #ifndef STORAGE_BROWSER_BLOB_LOCAL_FILE_STREAM_READER_H_
6 #define STORAGE_BROWSER_BLOB_LOCAL_FILE_STREAM_READER_H_ 6 #define STORAGE_BROWSER_BLOB_LOCAL_FILE_STREAM_READER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/files/file.h" 10 #include "base/files/file.h"
(...skipping 19 matching lines...) Expand all
30 30
31 // A thin wrapper of net::FileStream with range support for sliced file 31 // A thin wrapper of net::FileStream with range support for sliced file
32 // handling. 32 // handling.
33 class STORAGE_EXPORT LocalFileStreamReader 33 class STORAGE_EXPORT LocalFileStreamReader
34 : public NON_EXPORTED_BASE(FileStreamReader) { 34 : public NON_EXPORTED_BASE(FileStreamReader) {
35 public: 35 public:
36 virtual ~LocalFileStreamReader(); 36 virtual ~LocalFileStreamReader();
37 37
38 // FileStreamReader overrides. 38 // FileStreamReader overrides.
39 virtual int Read(net::IOBuffer* buf, int buf_len, 39 virtual int Read(net::IOBuffer* buf, int buf_len,
40 const net::CompletionCallback& callback) OVERRIDE; 40 const net::CompletionCallback& callback) override;
41 virtual int64 GetLength( 41 virtual int64 GetLength(
42 const net::Int64CompletionCallback& callback) OVERRIDE; 42 const net::Int64CompletionCallback& callback) override;
43 43
44 private: 44 private:
45 friend class FileStreamReader; 45 friend class FileStreamReader;
46 friend class content::LocalFileStreamReaderTest; 46 friend class content::LocalFileStreamReaderTest;
47 47
48 LocalFileStreamReader(base::TaskRunner* task_runner, 48 LocalFileStreamReader(base::TaskRunner* task_runner,
49 const base::FilePath& file_path, 49 const base::FilePath& file_path,
50 int64 initial_offset, 50 int64 initial_offset,
51 const base::Time& expected_modification_time); 51 const base::Time& expected_modification_time);
52 int Open(const net::CompletionCallback& callback); 52 int Open(const net::CompletionCallback& callback);
(...skipping 19 matching lines...) Expand all
72 const base::FilePath file_path_; 72 const base::FilePath file_path_;
73 const int64 initial_offset_; 73 const int64 initial_offset_;
74 const base::Time expected_modification_time_; 74 const base::Time expected_modification_time_;
75 bool has_pending_open_; 75 bool has_pending_open_;
76 base::WeakPtrFactory<LocalFileStreamReader> weak_factory_; 76 base::WeakPtrFactory<LocalFileStreamReader> weak_factory_;
77 }; 77 };
78 78
79 } // namespace storage 79 } // namespace storage
80 80
81 #endif // STORAGE_BROWSER_BLOB_LOCAL_FILE_STREAM_READER_H_ 81 #endif // STORAGE_BROWSER_BLOB_LOCAL_FILE_STREAM_READER_H_
OLDNEW
« no previous file with comments | « storage/browser/blob/blob_url_request_job_factory.h ('k') | storage/browser/blob/view_blob_internals_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698