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

Side by Side Diff: net/http/http_basic_stream.h

Issue 2298823002: Resetting the HttpRequestInfo pointers in HttpNetworkTransaction and streams (Closed)
Patch Set: Rebased, removed upload progress plumbing, feedback. (Rebased till refs/heads/master@{#417381}) Created 4 years, 3 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 // HttpBasicStream is a simple implementation of HttpStream. It assumes it is 5 // HttpBasicStream is a simple implementation of HttpStream. It assumes it is
6 // not sharing a sharing with any other HttpStreams, therefore it just reads and 6 // not sharing a sharing with any other HttpStreams, therefore it just reads and
7 // writes directly to the Http Stream. 7 // writes directly to the Http Stream.
8 8
9 #ifndef NET_HTTP_HTTP_BASIC_STREAM_H_ 9 #ifndef NET_HTTP_HTTP_BASIC_STREAM_H_
10 #define NET_HTTP_HTTP_BASIC_STREAM_H_ 10 #define NET_HTTP_HTTP_BASIC_STREAM_H_
(...skipping 30 matching lines...) Expand all
41 // HttpStream methods: 41 // HttpStream methods:
42 int InitializeStream(const HttpRequestInfo* request_info, 42 int InitializeStream(const HttpRequestInfo* request_info,
43 RequestPriority priority, 43 RequestPriority priority,
44 const BoundNetLog& net_log, 44 const BoundNetLog& net_log,
45 const CompletionCallback& callback) override; 45 const CompletionCallback& callback) override;
46 46
47 int SendRequest(const HttpRequestHeaders& headers, 47 int SendRequest(const HttpRequestHeaders& headers,
48 HttpResponseInfo* response, 48 HttpResponseInfo* response,
49 const CompletionCallback& callback) override; 49 const CompletionCallback& callback) override;
50 50
51 UploadProgress GetUploadProgress() const override;
52
53 int ReadResponseHeaders(const CompletionCallback& callback) override; 51 int ReadResponseHeaders(const CompletionCallback& callback) override;
54 52
55 int ReadResponseBody(IOBuffer* buf, 53 int ReadResponseBody(IOBuffer* buf,
56 int buf_len, 54 int buf_len,
57 const CompletionCallback& callback) override; 55 const CompletionCallback& callback) override;
58 56
59 void Close(bool not_reusable) override; 57 void Close(bool not_reusable) override;
60 58
61 HttpStream* RenewStreamForAuth() override; 59 HttpStream* RenewStreamForAuth() override;
62 60
(...skipping 30 matching lines...) Expand all
93 HttpStreamParser* parser() const { return state_.parser(); } 91 HttpStreamParser* parser() const { return state_.parser(); }
94 92
95 HttpBasicState state_; 93 HttpBasicState state_;
96 94
97 DISALLOW_COPY_AND_ASSIGN(HttpBasicStream); 95 DISALLOW_COPY_AND_ASSIGN(HttpBasicStream);
98 }; 96 };
99 97
100 } // namespace net 98 } // namespace net
101 99
102 #endif // NET_HTTP_HTTP_BASIC_STREAM_H_ 100 #endif // NET_HTTP_HTTP_BASIC_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698