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

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

Issue 1941083002: JobController 1: Adding a new class HttpStreamFactoryImpl::JobController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync and fix compile only, Plz use PS18 to review new changes. Created 4 years, 6 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_
11 11
12 #include <stdint.h> 12 #include <stdint.h>
13 13
14 #include <string> 14 #include <string>
15 15
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "net/base/net_export.h"
17 #include "net/http/http_basic_state.h" 18 #include "net/http/http_basic_state.h"
18 #include "net/http/http_stream.h" 19 #include "net/http/http_stream.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 HttpResponseInfo; 25 class HttpResponseInfo;
25 struct HttpRequestInfo; 26 struct HttpRequestInfo;
26 class HttpRequestHeaders; 27 class HttpRequestHeaders;
27 class HttpStreamParser; 28 class HttpStreamParser;
28 class IOBuffer; 29 class IOBuffer;
29 30
30 class HttpBasicStream : public HttpStream { 31 class NET_EXPORT_PRIVATE HttpBasicStream : public HttpStream {
Ryan Hamilton 2016/06/13 19:25:26 Out of curiosity, why is this required?
Zhongyi Shi 2016/06/14 22:20:57 Cauz we now use TestJob in job_controller_unittest
31 public: 32 public:
32 // Constructs a new HttpBasicStream. InitializeStream must be called to 33 // Constructs a new HttpBasicStream. InitializeStream must be called to
33 // initialize it correctly. 34 // initialize it correctly.
34 HttpBasicStream(ClientSocketHandle* connection, bool using_proxy); 35 HttpBasicStream(ClientSocketHandle* connection, bool using_proxy);
35 ~HttpBasicStream() override; 36 ~HttpBasicStream() override;
36 37
37 // HttpStream methods: 38 // HttpStream methods:
38 int InitializeStream(const HttpRequestInfo* request_info, 39 int InitializeStream(const HttpRequestInfo* request_info,
39 RequestPriority priority, 40 RequestPriority priority,
40 const BoundNetLog& net_log, 41 const BoundNetLog& net_log,
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 HttpStreamParser* parser() const { return state_.parser(); } 90 HttpStreamParser* parser() const { return state_.parser(); }
90 91
91 HttpBasicState state_; 92 HttpBasicState state_;
92 93
93 DISALLOW_COPY_AND_ASSIGN(HttpBasicStream); 94 DISALLOW_COPY_AND_ASSIGN(HttpBasicStream);
94 }; 95 };
95 96
96 } // namespace net 97 } // namespace net
97 98
98 #endif // NET_HTTP_HTTP_BASIC_STREAM_H_ 99 #endif // NET_HTTP_HTTP_BASIC_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698