| 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 #ifndef CONTENT_CHILD_WEB_URL_REQUEST_UTIL_H_ | 5 #ifndef CONTENT_CHILD_WEB_URL_REQUEST_UTIL_H_ |
| 6 #define CONTENT_CHILD_WEB_URL_REQUEST_UTIL_H_ | 6 #define CONTENT_CHILD_WEB_URL_REQUEST_UTIL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 // in a ResourceRequestBody structure. Returns an empty scoped_refptr | 30 // in a ResourceRequestBody structure. Returns an empty scoped_refptr |
| 31 // if the request body is not present. | 31 // if the request body is not present. |
| 32 scoped_refptr<ResourceRequestBody> GetRequestBodyForWebURLRequest( | 32 scoped_refptr<ResourceRequestBody> GetRequestBodyForWebURLRequest( |
| 33 const blink::WebURLRequest& request); | 33 const blink::WebURLRequest& request); |
| 34 | 34 |
| 35 // Generates a WebURLError based on |reason|. | 35 // Generates a WebURLError based on |reason|. |
| 36 blink::WebURLError CreateWebURLError(const blink::WebURL& unreachable_url, | 36 blink::WebURLError CreateWebURLError(const blink::WebURL& unreachable_url, |
| 37 bool stale_copy_in_cache, | 37 bool stale_copy_in_cache, |
| 38 int reason); | 38 int reason); |
| 39 | 39 |
| 40 // Generates a WebURLError based on |reason|. |
| 41 blink::WebURLError CreateWebURLError(const blink::WebURL& unreachable_url, |
| 42 bool stale_copy_in_cache, |
| 43 int reason, |
| 44 bool was_ignored_by_handler); |
| 45 |
| 40 } // namespace content | 46 } // namespace content |
| 41 | 47 |
| 42 #endif // CONTENT_CHILD_WEB_URL_REQUEST_UTIL_H_ | 48 #endif // CONTENT_CHILD_WEB_URL_REQUEST_UTIL_H_ |
| OLD | NEW |