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

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

Issue 14223008: net: Update the include paths of base/string_piece.h to its new location. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « net/ftp/ftp_util.cc ('k') | net/http/http_request_headers.h » ('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) 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 // Derived from: 5 // Derived from:
6 // mozilla/netwerk/protocol/http/src/nsHttpChunkedDecoder.cpp 6 // mozilla/netwerk/protocol/http/src/nsHttpChunkedDecoder.cpp
7 // The license block is: 7 // The license block is:
8 /* ***** BEGIN LICENSE BLOCK ***** 8 /* ***** BEGIN LICENSE BLOCK *****
9 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 9 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
10 * 10 *
(...skipping 28 matching lines...) Expand all
39 * and other provisions required by the GPL or the LGPL. If you do not delete 39 * and other provisions required by the GPL or the LGPL. If you do not delete
40 * the provisions above, a recipient may use your version of this file under 40 * the provisions above, a recipient may use your version of this file under
41 * the terms of any one of the MPL, the GPL or the LGPL. 41 * the terms of any one of the MPL, the GPL or the LGPL.
42 * 42 *
43 * ***** END LICENSE BLOCK ***** */ 43 * ***** END LICENSE BLOCK ***** */
44 44
45 #include "net/http/http_chunked_decoder.h" 45 #include "net/http/http_chunked_decoder.h"
46 46
47 #include "base/logging.h" 47 #include "base/logging.h"
48 #include "base/string_number_conversions.h" 48 #include "base/string_number_conversions.h"
49 #include "base/string_piece.h"
50 #include "base/string_util.h" 49 #include "base/string_util.h"
50 #include "base/strings/string_piece.h"
51 #include "net/base/net_errors.h" 51 #include "net/base/net_errors.h"
52 52
53 namespace net { 53 namespace net {
54 54
55 // Absurdly long size to avoid imposing a constraint on chunked encoding 55 // Absurdly long size to avoid imposing a constraint on chunked encoding
56 // extensions. 56 // extensions.
57 const size_t HttpChunkedDecoder::kMaxLineBufLen = 16384; 57 const size_t HttpChunkedDecoder::kMaxLineBufLen = 16384;
58 58
59 HttpChunkedDecoder::HttpChunkedDecoder() 59 HttpChunkedDecoder::HttpChunkedDecoder()
60 : chunk_remaining_(0), 60 : chunk_remaining_(0),
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 int parsed_number; 205 int parsed_number;
206 bool ok = base::HexStringToInt(chunk_size, &parsed_number); 206 bool ok = base::HexStringToInt(chunk_size, &parsed_number);
207 if (ok && parsed_number >= 0) { 207 if (ok && parsed_number >= 0) {
208 *out = parsed_number; 208 *out = parsed_number;
209 return true; 209 return true;
210 } 210 }
211 return false; 211 return false;
212 } 212 }
213 213
214 } // namespace net 214 } // namespace net
OLDNEW
« no previous file with comments | « net/ftp/ftp_util.cc ('k') | net/http/http_request_headers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698