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

Side by Side Diff: net/http/http_pipelined_connection_impl.cc

Issue 9959033: Move NextProto enum to a new file net/socket/next_proto.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address wtc's comments Created 8 years, 8 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 | Annotate | Revision Log
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 #include "net/http/http_pipelined_connection_impl.h" 5 #include "net/http/http_pipelined_connection_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 } // anonymous namespace 63 } // anonymous namespace
64 64
65 HttpPipelinedConnectionImpl::HttpPipelinedConnectionImpl( 65 HttpPipelinedConnectionImpl::HttpPipelinedConnectionImpl(
66 ClientSocketHandle* connection, 66 ClientSocketHandle* connection,
67 HttpPipelinedConnection::Delegate* delegate, 67 HttpPipelinedConnection::Delegate* delegate,
68 const HostPortPair& origin, 68 const HostPortPair& origin,
69 const SSLConfig& used_ssl_config, 69 const SSLConfig& used_ssl_config,
70 const ProxyInfo& used_proxy_info, 70 const ProxyInfo& used_proxy_info,
71 const BoundNetLog& net_log, 71 const BoundNetLog& net_log,
72 bool was_npn_negotiated, 72 bool was_npn_negotiated,
73 SSLClientSocket::NextProto protocol_negotiated) 73 NextProto protocol_negotiated)
74 : delegate_(delegate), 74 : delegate_(delegate),
75 connection_(connection), 75 connection_(connection),
76 used_ssl_config_(used_ssl_config), 76 used_ssl_config_(used_ssl_config),
77 used_proxy_info_(used_proxy_info), 77 used_proxy_info_(used_proxy_info),
78 net_log_(BoundNetLog::Make(net_log.net_log(), 78 net_log_(BoundNetLog::Make(net_log.net_log(),
79 NetLog::SOURCE_HTTP_PIPELINED_CONNECTION)), 79 NetLog::SOURCE_HTTP_PIPELINED_CONNECTION)),
80 was_npn_negotiated_(was_npn_negotiated), 80 was_npn_negotiated_(was_npn_negotiated),
81 protocol_negotiated_(protocol_negotiated), 81 protocol_negotiated_(protocol_negotiated),
82 read_buf_(new GrowableIOBuffer()), 82 read_buf_(new GrowableIOBuffer()),
83 next_pipeline_id_(1), 83 next_pipeline_id_(1),
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after
804 } 804 }
805 805
806 const BoundNetLog& HttpPipelinedConnectionImpl::net_log() const { 806 const BoundNetLog& HttpPipelinedConnectionImpl::net_log() const {
807 return net_log_; 807 return net_log_;
808 } 808 }
809 809
810 bool HttpPipelinedConnectionImpl::was_npn_negotiated() const { 810 bool HttpPipelinedConnectionImpl::was_npn_negotiated() const {
811 return was_npn_negotiated_; 811 return was_npn_negotiated_;
812 } 812 }
813 813
814 SSLClientSocket::NextProto HttpPipelinedConnectionImpl::protocol_negotiated() 814 NextProto HttpPipelinedConnectionImpl::protocol_negotiated()
815 const { 815 const {
816 return protocol_negotiated_; 816 return protocol_negotiated_;
817 } 817 }
818 818
819 HttpPipelinedConnectionImpl::PendingSendRequest::PendingSendRequest() 819 HttpPipelinedConnectionImpl::PendingSendRequest::PendingSendRequest()
820 : pipeline_id(0), 820 : pipeline_id(0),
821 request_body(NULL), 821 request_body(NULL),
822 response(NULL) { 822 response(NULL) {
823 } 823 }
824 824
825 HttpPipelinedConnectionImpl::PendingSendRequest::~PendingSendRequest() { 825 HttpPipelinedConnectionImpl::PendingSendRequest::~PendingSendRequest() {
826 } 826 }
827 827
828 HttpPipelinedConnectionImpl::StreamInfo::StreamInfo() 828 HttpPipelinedConnectionImpl::StreamInfo::StreamInfo()
829 : state(STREAM_CREATED) { 829 : state(STREAM_CREATED) {
830 } 830 }
831 831
832 HttpPipelinedConnectionImpl::StreamInfo::~StreamInfo() { 832 HttpPipelinedConnectionImpl::StreamInfo::~StreamInfo() {
833 } 833 }
834 834
835 } // namespace net 835 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_pipelined_connection_impl.h ('k') | net/http/http_pipelined_connection_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698