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

Side by Side Diff: content/browser/fileapi/upload_file_system_file_element_reader.h

Issue 623933003: Replacing the OVERRIDE with override and FINAL with final in content/browser/fileapi (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 CONTENT_BROWSER_FILEAPI_UPLOAD_FILE_SYSTEM_FILE_ELEMENT_READER_H_ 5 #ifndef CONTENT_BROWSER_FILEAPI_UPLOAD_FILE_SYSTEM_FILE_ELEMENT_READER_H_
6 #define CONTENT_BROWSER_FILEAPI_UPLOAD_FILE_SYSTEM_FILE_ELEMENT_READER_H_ 6 #define CONTENT_BROWSER_FILEAPI_UPLOAD_FILE_SYSTEM_FILE_ELEMENT_READER_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 16 matching lines...) Expand all
27 public: 27 public:
28 UploadFileSystemFileElementReader( 28 UploadFileSystemFileElementReader(
29 storage::FileSystemContext* file_system_context, 29 storage::FileSystemContext* file_system_context,
30 const GURL& url, 30 const GURL& url,
31 uint64 range_offset, 31 uint64 range_offset,
32 uint64 range_length, 32 uint64 range_length,
33 const base::Time& expected_modification_time); 33 const base::Time& expected_modification_time);
34 virtual ~UploadFileSystemFileElementReader(); 34 virtual ~UploadFileSystemFileElementReader();
35 35
36 // UploadElementReader overrides: 36 // UploadElementReader overrides:
37 virtual int Init(const net::CompletionCallback& callback) OVERRIDE; 37 virtual int Init(const net::CompletionCallback& callback) override;
38 virtual uint64 GetContentLength() const OVERRIDE; 38 virtual uint64 GetContentLength() const override;
39 virtual uint64 BytesRemaining() const OVERRIDE; 39 virtual uint64 BytesRemaining() const override;
40 virtual int Read(net::IOBuffer* buf, 40 virtual int Read(net::IOBuffer* buf,
41 int buf_length, 41 int buf_length,
42 const net::CompletionCallback& callback) OVERRIDE; 42 const net::CompletionCallback& callback) override;
43 43
44 private: 44 private:
45 void OnGetLength(const net::CompletionCallback& callback, int64 result); 45 void OnGetLength(const net::CompletionCallback& callback, int64 result);
46 void OnRead(const net::CompletionCallback& callback, int result); 46 void OnRead(const net::CompletionCallback& callback, int result);
47 47
48 scoped_refptr<storage::FileSystemContext> file_system_context_; 48 scoped_refptr<storage::FileSystemContext> file_system_context_;
49 const GURL url_; 49 const GURL url_;
50 const uint64 range_offset_; 50 const uint64 range_offset_;
51 const uint64 range_length_; 51 const uint64 range_length_;
52 const base::Time expected_modification_time_; 52 const base::Time expected_modification_time_;
53 53
54 scoped_ptr<storage::FileStreamReader> stream_reader_; 54 scoped_ptr<storage::FileStreamReader> stream_reader_;
55 55
56 uint64 stream_length_; 56 uint64 stream_length_;
57 uint64 position_; 57 uint64 position_;
58 58
59 base::WeakPtrFactory<UploadFileSystemFileElementReader> weak_ptr_factory_; 59 base::WeakPtrFactory<UploadFileSystemFileElementReader> weak_ptr_factory_;
60 60
61 DISALLOW_COPY_AND_ASSIGN(UploadFileSystemFileElementReader); 61 DISALLOW_COPY_AND_ASSIGN(UploadFileSystemFileElementReader);
62 }; 62 };
63 63
64 } // namespace content 64 } // namespace content
65 65
66 #endif // CONTENT_BROWSER_FILEAPI_UPLOAD_FILE_SYSTEM_FILE_ELEMENT_READER_H_ 66 #endif // CONTENT_BROWSER_FILEAPI_UPLOAD_FILE_SYSTEM_FILE_ELEMENT_READER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698