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

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

Issue 2351513002: net: rename BoundNetLog to NetLogWithSource (Closed)
Patch Set: one more fix, content bound_net_log_ Created 4 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 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 25 matching lines...) Expand all
36 // std::unique_ptr<UploadDataStream> for ease of use. 36 // std::unique_ptr<UploadDataStream> for ease of use.
37 static std::unique_ptr<UploadDataStream> CreateWithReader( 37 static std::unique_ptr<UploadDataStream> CreateWithReader(
38 std::unique_ptr<UploadElementReader> reader, 38 std::unique_ptr<UploadElementReader> reader,
39 int64_t identifier); 39 int64_t identifier);
40 40
41 private: 41 private:
42 // UploadDataStream implementation. 42 // UploadDataStream implementation.
43 bool IsInMemory() const override; 43 bool IsInMemory() const override;
44 const std::vector<std::unique_ptr<UploadElementReader>>* GetElementReaders() 44 const std::vector<std::unique_ptr<UploadElementReader>>* GetElementReaders()
45 const override; 45 const override;
46 int InitInternal(const net::BoundNetLog& net_log) override; 46 int InitInternal(const NetLogWithSource& net_log) override;
47 int ReadInternal(IOBuffer* buf, int buf_len) override; 47 int ReadInternal(IOBuffer* buf, int buf_len) override;
48 void ResetInternal() override; 48 void ResetInternal() override;
49 49
50 // Runs Init() for all element readers. 50 // Runs Init() for all element readers.
51 // This method is used to implement InitInternal(). 51 // This method is used to implement InitInternal().
52 int InitElements(size_t start_index); 52 int InitElements(size_t start_index);
53 53
54 // Called when the |index| element finishes initialization. If it succeeded, 54 // Called when the |index| element finishes initialization. If it succeeded,
55 // continues with the |index + 1| element. Calls OnInitCompleted on error or 55 // continues with the |index + 1| element. Calls OnInitCompleted on error or
56 // when all elements have been initialized. 56 // when all elements have been initialized.
(...skipping 24 matching lines...) Expand all
81 int read_error_; 81 int read_error_;
82 82
83 base::WeakPtrFactory<ElementsUploadDataStream> weak_ptr_factory_; 83 base::WeakPtrFactory<ElementsUploadDataStream> weak_ptr_factory_;
84 84
85 DISALLOW_COPY_AND_ASSIGN(ElementsUploadDataStream); 85 DISALLOW_COPY_AND_ASSIGN(ElementsUploadDataStream);
86 }; 86 };
87 87
88 } // namespace net 88 } // namespace net
89 89
90 #endif // NET_BASE_ELEMENTS_UPLOAD_DATA_STREAM_H_ 90 #endif // NET_BASE_ELEMENTS_UPLOAD_DATA_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698