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

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

Issue 2623383005: Log states of JobController in Net MemoryDumpProvider (Closed)
Patch Set: self review Created 3 years, 11 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 | « net/http/http_stream_factory_impl.cc ('k') | net/http/http_stream_factory_impl_job.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ 5 #ifndef NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_
6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ 6 #define NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 HttpStreamRequest::StreamType stream_type() const { return stream_type_; } 223 HttpStreamRequest::StreamType stream_type() const { return stream_type_; }
224 224
225 std::unique_ptr<HttpStream> ReleaseStream() { return std::move(stream_); } 225 std::unique_ptr<HttpStream> ReleaseStream() { return std::move(stream_); }
226 226
227 void SetStream(HttpStream* http_stream) { stream_.reset(http_stream); } 227 void SetStream(HttpStream* http_stream) { stream_.reset(http_stream); }
228 228
229 std::unique_ptr<BidirectionalStreamImpl> ReleaseBidirectionalStream() { 229 std::unique_ptr<BidirectionalStreamImpl> ReleaseBidirectionalStream() {
230 return std::move(bidirectional_stream_impl_); 230 return std::move(bidirectional_stream_impl_);
231 } 231 }
232 232
233 // Returns the estimated memory usage in bytes.
234 size_t EstimateMemoryUsage() const;
235
233 bool is_waiting() const { return next_state_ == STATE_WAIT_COMPLETE; } 236 bool is_waiting() const { return next_state_ == STATE_WAIT_COMPLETE; }
234 const SSLConfig& server_ssl_config() const; 237 const SSLConfig& server_ssl_config() const;
235 const SSLConfig& proxy_ssl_config() const; 238 const SSLConfig& proxy_ssl_config() const;
236 const ProxyInfo& proxy_info() const; 239 const ProxyInfo& proxy_info() const;
237 240
238 JobType job_type() const { return job_type_; } 241 JobType job_type() const { return job_type_; }
239 242
240 const AlternativeService alternative_service() const { 243 const AlternativeService alternative_service() const {
241 return alternative_service_; 244 return alternative_service_;
242 } 245 }
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 const SSLConfig& server_ssl_config, 526 const SSLConfig& server_ssl_config,
524 const SSLConfig& proxy_ssl_config, 527 const SSLConfig& proxy_ssl_config,
525 HostPortPair destination, 528 HostPortPair destination,
526 GURL origin_url, 529 GURL origin_url,
527 NetLog* net_log) = 0; 530 NetLog* net_log) = 0;
528 }; 531 };
529 532
530 } // namespace net 533 } // namespace net
531 534
532 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_ 535 #endif // NET_HTTP_HTTP_STREAM_FACTORY_IMPL_JOB_H_
OLDNEW
« no previous file with comments | « net/http/http_stream_factory_impl.cc ('k') | net/http/http_stream_factory_impl_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698