OLD | NEW |
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 Loading... |
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 |
OLD | NEW |