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

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

Issue 2298823002: Resetting the HttpRequestInfo pointers in HttpNetworkTransaction and streams (Closed)
Patch Set: Initial patch 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
« no previous file with comments | « no previous file | net/http/http_basic_state.cc » ('j') | net/http/http_network_transaction.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // A class that stores the common state between HttpBasicStream and 5 // A class that stores the common state between HttpBasicStream and
6 // WebSocketBasicHandshakeStream. 6 // WebSocketBasicHandshakeStream.
7 7
8 #ifndef NET_HTTP_HTTP_BASIC_STATE_H_ 8 #ifndef NET_HTTP_HTTP_BASIC_STATE_H_
9 #define NET_HTTP_HTTP_BASIC_STATE_H_ 9 #define NET_HTTP_HTTP_BASIC_STATE_H_
10 10
11 #include <memory> 11 #include <memory>
12 #include <string> 12 #include <string>
13 13
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "net/base/completion_callback.h" 16 #include "net/base/completion_callback.h"
17 #include "net/base/net_export.h" 17 #include "net/base/net_export.h"
18 #include "net/base/request_priority.h" 18 #include "net/base/request_priority.h"
19 #include "url/gurl.h"
19 20
20 namespace net { 21 namespace net {
21 22
22 class BoundNetLog; 23 class BoundNetLog;
23 class ClientSocketHandle; 24 class ClientSocketHandle;
24 class GrowableIOBuffer; 25 class GrowableIOBuffer;
25 class HttpStreamParser; 26 class HttpStreamParser;
26 struct HttpRequestInfo; 27 struct HttpRequestInfo;
27 28
28 class NET_EXPORT_PRIVATE HttpBasicState { 29 class NET_EXPORT_PRIVATE HttpBasicState {
(...skipping 27 matching lines...) Expand all
56 57
57 private: 58 private:
58 scoped_refptr<GrowableIOBuffer> read_buf_; 59 scoped_refptr<GrowableIOBuffer> read_buf_;
59 60
60 std::unique_ptr<HttpStreamParser> parser_; 61 std::unique_ptr<HttpStreamParser> parser_;
61 62
62 std::unique_ptr<ClientSocketHandle> connection_; 63 std::unique_ptr<ClientSocketHandle> connection_;
63 64
64 const bool using_proxy_; 65 const bool using_proxy_;
65 66
66 const HttpRequestInfo* request_info_; 67 GURL url_;
68 std::string request_method_;
mmenke 2016/08/31 21:57:59 Why do we need these? Generating the request line
shivanisha 2016/09/08 20:43:54 We need these only for generating request line. I
67 69
68 DISALLOW_COPY_AND_ASSIGN(HttpBasicState); 70 DISALLOW_COPY_AND_ASSIGN(HttpBasicState);
69 }; 71 };
70 72
71 } // namespace net 73 } // namespace net
72 74
73 #endif // NET_HTTP_HTTP_BASIC_STATE_H_ 75 #endif // NET_HTTP_HTTP_BASIC_STATE_H_
OLDNEW
« no previous file with comments | « no previous file | net/http/http_basic_state.cc » ('j') | net/http/http_network_transaction.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698