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

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

Issue 7605019: Reduce number of unnamed-type-template-args violations. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_stream_parser.h" 5 #include "net/http/http_stream_parser.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "base/stringprintf.h" 9 #include "base/stringprintf.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 21 matching lines...) Expand all
32 cr_separated_headers += "\n"; 32 cr_separated_headers += "\n";
33 header_line += strlen(header_line) + 1; 33 header_line += strlen(header_line) + 1;
34 } 34 }
35 return cr_separated_headers; 35 return cr_separated_headers;
36 } 36 }
37 37
38 } // namespace 38 } // namespace
39 39
40 namespace net { 40 namespace net {
41 41
42 // static
43 const int HttpStreamParser::kHeaderBufInitialSize = 4 * 1024; // 4K
44 const int HttpStreamParser::kMaxHeaderBufSize =
45 HttpStreamParser::kHeaderBufInitialSize * 64; // 256K
46 const int HttpStreamParser::kMaxBufSize = 2 * 1024 * 1024; // 2M
47
42 HttpStreamParser::HttpStreamParser(ClientSocketHandle* connection, 48 HttpStreamParser::HttpStreamParser(ClientSocketHandle* connection,
43 const HttpRequestInfo* request, 49 const HttpRequestInfo* request,
44 GrowableIOBuffer* read_buffer, 50 GrowableIOBuffer* read_buffer,
45 const BoundNetLog& net_log) 51 const BoundNetLog& net_log)
46 : io_state_(STATE_NONE), 52 : io_state_(STATE_NONE),
47 request_(request), 53 request_(request),
48 request_headers_(NULL), 54 request_headers_(NULL),
49 request_body_(NULL), 55 request_body_(NULL),
50 read_buf_(read_buffer), 56 read_buf_(read_buffer),
51 read_buf_unused_offset_(0), 57 read_buf_unused_offset_(0),
(...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 void HttpStreamParser::GetSSLCertRequestInfo( 747 void HttpStreamParser::GetSSLCertRequestInfo(
742 SSLCertRequestInfo* cert_request_info) { 748 SSLCertRequestInfo* cert_request_info) {
743 if (request_->url.SchemeIs("https") && connection_->socket()) { 749 if (request_->url.SchemeIs("https") && connection_->socket()) {
744 SSLClientSocket* ssl_socket = 750 SSLClientSocket* ssl_socket =
745 static_cast<SSLClientSocket*>(connection_->socket()); 751 static_cast<SSLClientSocket*>(connection_->socket());
746 ssl_socket->GetSSLCertRequestInfo(cert_request_info); 752 ssl_socket->GetSSLCertRequestInfo(cert_request_info);
747 } 753 }
748 } 754 }
749 755
750 } // namespace net 756 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698