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

Side by Side Diff: net/base/elements_upload_data_stream.h

Issue 648543005: Replace newly added OVERRIDE with its C++11 counterparts in src/net (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
« no previous file with comments | « net/base/chunked_upload_data_stream.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 NET_BASE_ELEMENTS_UPLOAD_DATA_STREAM_H_ 5 #ifndef NET_BASE_ELEMENTS_UPLOAD_DATA_STREAM_H_
6 #define NET_BASE_ELEMENTS_UPLOAD_DATA_STREAM_H_ 6 #define NET_BASE_ELEMENTS_UPLOAD_DATA_STREAM_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 18 matching lines...) Expand all
29 virtual ~ElementsUploadDataStream(); 29 virtual ~ElementsUploadDataStream();
30 30
31 // Creates an ElementsUploadDataStream with a single reader. Returns a 31 // Creates an ElementsUploadDataStream with a single reader. Returns a
32 // scoped_ptr<UploadDataStream> for ease of use. 32 // scoped_ptr<UploadDataStream> for ease of use.
33 static scoped_ptr<UploadDataStream> CreateWithReader( 33 static scoped_ptr<UploadDataStream> CreateWithReader(
34 scoped_ptr<UploadElementReader> reader, 34 scoped_ptr<UploadElementReader> reader,
35 int64 identifier); 35 int64 identifier);
36 36
37 private: 37 private:
38 // UploadDataStream implementation. 38 // UploadDataStream implementation.
39 virtual bool IsInMemory() const OVERRIDE; 39 virtual bool IsInMemory() const override;
40 virtual const ScopedVector<UploadElementReader>* 40 virtual const ScopedVector<UploadElementReader>*
41 GetElementReaders() const OVERRIDE; 41 GetElementReaders() const override;
42 virtual int InitInternal() OVERRIDE; 42 virtual int InitInternal() override;
43 virtual int ReadInternal(IOBuffer* buf, int buf_len) OVERRIDE; 43 virtual int ReadInternal(IOBuffer* buf, int buf_len) override;
44 virtual void ResetInternal() OVERRIDE; 44 virtual void ResetInternal() override;
45 45
46 // Runs Init() for all element readers. 46 // Runs Init() for all element readers.
47 // This method is used to implement InitInternal(). 47 // This method is used to implement InitInternal().
48 int InitElements(size_t start_index); 48 int InitElements(size_t start_index);
49 49
50 // Called when the |index| element finishes initialization. If it succeeded, 50 // Called when the |index| element finishes initialization. If it succeeded,
51 // continues with the |index + 1| element. Calls OnInitCompleted on error or 51 // continues with the |index + 1| element. Calls OnInitCompleted on error or
52 // when all elements have been initialized. 52 // when all elements have been initialized.
53 void OnInitElementCompleted(size_t index, int result); 53 void OnInitElementCompleted(size_t index, int result);
54 54
(...skipping 22 matching lines...) Expand all
77 bool read_failed_; 77 bool read_failed_;
78 78
79 base::WeakPtrFactory<ElementsUploadDataStream> weak_ptr_factory_; 79 base::WeakPtrFactory<ElementsUploadDataStream> weak_ptr_factory_;
80 80
81 DISALLOW_COPY_AND_ASSIGN(ElementsUploadDataStream); 81 DISALLOW_COPY_AND_ASSIGN(ElementsUploadDataStream);
82 }; 82 };
83 83
84 } // namespace net 84 } // namespace net
85 85
86 #endif // NET_BASE_ELEMENTS_UPLOAD_DATA_STREAM_H_ 86 #endif // NET_BASE_ELEMENTS_UPLOAD_DATA_STREAM_H_
OLDNEW
« no previous file with comments | « net/base/chunked_upload_data_stream.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698