OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "content/child/web_url_request_util.h" | 5 #include "content/child/web_url_request_util.h" |
6 | 6 |
| 7 #include <stddef.h> |
7 #include <stdint.h> | 8 #include <stdint.h> |
8 | 9 |
9 #include <limits> | 10 #include <limits> |
10 | 11 |
11 #include "base/logging.h" | 12 #include "base/logging.h" |
12 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
13 #include "net/base/load_flags.h" | 14 #include "net/base/load_flags.h" |
14 #include "net/base/net_errors.h" | 15 #include "net/base/net_errors.h" |
15 #include "third_party/WebKit/public/platform/WebHTTPHeaderVisitor.h" | 16 #include "third_party/WebKit/public/platform/WebHTTPHeaderVisitor.h" |
16 #include "third_party/WebKit/public/platform/WebString.h" | 17 #include "third_party/WebKit/public/platform/WebString.h" |
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 bool stale_copy_in_cache, | 444 bool stale_copy_in_cache, |
444 int reason, | 445 int reason, |
445 bool was_ignored_by_handler) { | 446 bool was_ignored_by_handler) { |
446 blink::WebURLError error = | 447 blink::WebURLError error = |
447 CreateWebURLError(unreachable_url, stale_copy_in_cache, reason); | 448 CreateWebURLError(unreachable_url, stale_copy_in_cache, reason); |
448 error.wasIgnoredByHandler = was_ignored_by_handler; | 449 error.wasIgnoredByHandler = was_ignored_by_handler; |
449 return error; | 450 return error; |
450 } | 451 } |
451 | 452 |
452 } // namespace content | 453 } // namespace content |
OLD | NEW |