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

Side by Side Diff: net/http/http_basic_state.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 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 scoped_refptr<GrowableIOBuffer> read_buf_; 64 scoped_refptr<GrowableIOBuffer> read_buf_;
64 65
65 std::unique_ptr<HttpStreamParser> parser_; 66 std::unique_ptr<HttpStreamParser> parser_;
66 67
67 std::unique_ptr<ClientSocketHandle> connection_; 68 std::unique_ptr<ClientSocketHandle> connection_;
68 69
69 const bool using_proxy_; 70 const bool using_proxy_;
70 71
71 const bool http_09_on_non_default_ports_enabled_; 72 const bool http_09_on_non_default_ports_enabled_;
72 73
73 const HttpRequestInfo* request_info_; 74 GURL url_;
75 std::string request_method_;
74 76
75 DISALLOW_COPY_AND_ASSIGN(HttpBasicState); 77 DISALLOW_COPY_AND_ASSIGN(HttpBasicState);
76 }; 78 };
77 79
78 } // namespace net 80 } // namespace net
79 81
80 #endif // NET_HTTP_HTTP_BASIC_STATE_H_ 82 #endif // NET_HTTP_HTTP_BASIC_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698