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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 const blink::WebURLRequest& request); | 46 const blink::WebURLRequest& request); |
47 | 47 |
48 // Helper functions to convert enums from the blink type to the content | 48 // Helper functions to convert enums from the blink type to the content |
49 // type. | 49 // type. |
50 FetchRequestMode GetFetchRequestModeForWebURLRequest( | 50 FetchRequestMode GetFetchRequestModeForWebURLRequest( |
51 const blink::WebURLRequest& request); | 51 const blink::WebURLRequest& request); |
52 FetchCredentialsMode GetFetchCredentialsModeForWebURLRequest( | 52 FetchCredentialsMode GetFetchCredentialsModeForWebURLRequest( |
53 const blink::WebURLRequest& request); | 53 const blink::WebURLRequest& request); |
54 FetchRedirectMode GetFetchRedirectModeForWebURLRequest( | 54 FetchRedirectMode GetFetchRedirectModeForWebURLRequest( |
55 const blink::WebURLRequest& request); | 55 const blink::WebURLRequest& request); |
| 56 std::string GetFetchIntegrityForWebURLRequest( |
| 57 const blink::WebURLRequest& request); |
56 RequestContextFrameType GetRequestContextFrameTypeForWebURLRequest( | 58 RequestContextFrameType GetRequestContextFrameTypeForWebURLRequest( |
57 const blink::WebURLRequest& request); | 59 const blink::WebURLRequest& request); |
58 RequestContextType GetRequestContextTypeForWebURLRequest( | 60 RequestContextType GetRequestContextTypeForWebURLRequest( |
59 const blink::WebURLRequest& request); | 61 const blink::WebURLRequest& request); |
60 blink::WebMixedContentContextType GetMixedContentContextTypeForWebURLRequest( | 62 blink::WebMixedContentContextType GetMixedContentContextTypeForWebURLRequest( |
61 const blink::WebURLRequest& request); | 63 const blink::WebURLRequest& request); |
62 ServiceWorkerMode GetServiceWorkerModeForWebURLRequest( | 64 ServiceWorkerMode GetServiceWorkerModeForWebURLRequest( |
63 const blink::WebURLRequest& request); | 65 const blink::WebURLRequest& request); |
64 | 66 |
65 // Generates a WebURLError based on |reason|. | 67 // Generates a WebURLError based on |reason|. |
66 blink::WebURLError CreateWebURLError(const blink::WebURL& unreachable_url, | 68 blink::WebURLError CreateWebURLError(const blink::WebURL& unreachable_url, |
67 bool stale_copy_in_cache, | 69 bool stale_copy_in_cache, |
68 int reason); | 70 int reason); |
69 | 71 |
70 // Generates a WebURLError based on |reason|. | 72 // Generates a WebURLError based on |reason|. |
71 blink::WebURLError CreateWebURLError(const blink::WebURL& unreachable_url, | 73 blink::WebURLError CreateWebURLError(const blink::WebURL& unreachable_url, |
72 bool stale_copy_in_cache, | 74 bool stale_copy_in_cache, |
73 int reason, | 75 int reason, |
74 bool was_ignored_by_handler); | 76 bool was_ignored_by_handler); |
75 | 77 |
76 } // namespace content | 78 } // namespace content |
77 | 79 |
78 #endif // CONTENT_CHILD_WEB_URL_REQUEST_UTIL_H_ | 80 #endif // CONTENT_CHILD_WEB_URL_REQUEST_UTIL_H_ |
OLD | NEW |