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" |
11 #include "content/common/service_worker/service_worker_types.h" | |
12 #include "content/public/common/request_context_frame_type.h" | 11 #include "content/public/common/request_context_frame_type.h" |
13 #include "content/public/common/request_context_type.h" | 12 #include "content/public/common/request_context_type.h" |
14 #include "content/public/common/resource_request_body.h" | 13 #include "content/public/common/resource_request_body.h" |
15 #include "content/public/common/resource_type.h" | 14 #include "content/public/common/resource_type.h" |
| 15 #include "content/public/common/service_worker_modes.h" |
16 #include "third_party/WebKit/public/platform/WebMixedContentContextType.h" | 16 #include "third_party/WebKit/public/platform/WebMixedContentContextType.h" |
17 | 17 |
18 namespace blink { | 18 namespace blink { |
19 class WebHTTPBody; | 19 class WebHTTPBody; |
20 class WebURL; | 20 class WebURL; |
21 class WebURLRequest; | 21 class WebURLRequest; |
22 struct WebURLError; | 22 struct WebURLError; |
23 } | 23 } |
24 | 24 |
25 namespace content { | 25 namespace content { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 69 |
70 // Generates a WebURLError based on |reason|. | 70 // Generates a WebURLError based on |reason|. |
71 blink::WebURLError CreateWebURLError(const blink::WebURL& unreachable_url, | 71 blink::WebURLError CreateWebURLError(const blink::WebURL& unreachable_url, |
72 bool stale_copy_in_cache, | 72 bool stale_copy_in_cache, |
73 int reason, | 73 int reason, |
74 bool was_ignored_by_handler); | 74 bool was_ignored_by_handler); |
75 | 75 |
76 } // namespace content | 76 } // namespace content |
77 | 77 |
78 #endif // CONTENT_CHILD_WEB_URL_REQUEST_UTIL_H_ | 78 #endif // CONTENT_CHILD_WEB_URL_REQUEST_UTIL_H_ |
OLD | NEW |