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

Side by Side Diff: webkit/glue/multipart_response_delegate.cc

Issue 3056029: Move the number conversions from string_util to a new file.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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 | « webkit/glue/dom_operations.cc ('k') | webkit/glue/plugins/pepper_var.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "webkit/glue/multipart_response_delegate.h" 5 #include "webkit/glue/multipart_response_delegate.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/string_number_conversions.h"
8 #include "base/string_util.h" 9 #include "base/string_util.h"
9 #include "net/base/net_util.h" 10 #include "net/base/net_util.h"
10 #include "net/http/http_util.h" 11 #include "net/http/http_util.h"
11 #include "third_party/WebKit/WebKit/chromium/public/WebHTTPHeaderVisitor.h" 12 #include "third_party/WebKit/WebKit/chromium/public/WebHTTPHeaderVisitor.h"
12 #include "third_party/WebKit/WebKit/chromium/public/WebString.h" 13 #include "third_party/WebKit/WebKit/chromium/public/WebString.h"
13 #include "third_party/WebKit/WebKit/chromium/public/WebURL.h" 14 #include "third_party/WebKit/WebKit/chromium/public/WebURL.h"
14 #include "third_party/WebKit/WebKit/chromium/public/WebURLLoaderClient.h" 15 #include "third_party/WebKit/WebKit/chromium/public/WebURLLoaderClient.h"
15 16
16 using WebKit::WebHTTPHeaderVisitor; 17 using WebKit::WebHTTPHeaderVisitor;
17 using WebKit::WebString; 18 using WebKit::WebString;
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 return false; 357 return false;
357 } 358 }
358 359
359 size_t byte_range_upper_bound_characters = 360 size_t byte_range_upper_bound_characters =
360 byte_range_upper_bound_end_offset - byte_range_upper_bound_start_offset; 361 byte_range_upper_bound_end_offset - byte_range_upper_bound_start_offset;
361 362
362 std::string byte_range_upper_bound = 363 std::string byte_range_upper_bound =
363 content_range.substr(byte_range_upper_bound_start_offset, 364 content_range.substr(byte_range_upper_bound_start_offset,
364 byte_range_upper_bound_characters); 365 byte_range_upper_bound_characters);
365 366
366 if (!StringToInt(byte_range_lower_bound, content_range_lower_bound)) 367 if (!base::StringToInt(byte_range_lower_bound, content_range_lower_bound))
367 return false; 368 return false;
368 if (!StringToInt(byte_range_upper_bound, content_range_upper_bound)) 369 if (!base::StringToInt(byte_range_upper_bound, content_range_upper_bound))
369 return false; 370 return false;
370 return true; 371 return true;
371 } 372 }
372 373
373 } // namespace webkit_glue 374 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « webkit/glue/dom_operations.cc ('k') | webkit/glue/plugins/pepper_var.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698