Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(180)

Side by Side Diff: content/child/web_url_request_util.h

Issue 1905033002: PlzNavigate: Move navigation-level mixed content checks to the browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@console-security-message
Patch Set: Addressed all jam@ latest comments. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/resource_request_body_impl.h" 11 #include "content/common/resource_request_body_impl.h"
12 #include "content/common/service_worker/service_worker_types.h" 12 #include "content/common/service_worker/service_worker_types.h"
13 #include "content/public/common/request_context_frame_type.h" 13 #include "content/public/common/request_context_frame_type.h"
14 #include "content/public/common/request_context_type.h" 14 #include "content/public/common/request_context_type.h"
15 #include "content/public/common/resource_type.h" 15 #include "content/public/common/resource_type.h"
16 16
17 namespace blink { 17 namespace blink {
18 enum class WebMixedContentContextType;
18 class WebHTTPBody; 19 class WebHTTPBody;
19 class WebURL; 20 class WebURL;
20 class WebURLRequest; 21 class WebURLRequest;
21 struct WebURLError; 22 struct WebURLError;
22 } 23 }
23 24
24 namespace content { 25 namespace content {
25 26
26 CONTENT_EXPORT ResourceType WebURLRequestToResourceType( 27 CONTENT_EXPORT ResourceType WebURLRequestToResourceType(
27 const blink::WebURLRequest& request); 28 const blink::WebURLRequest& request);
(...skipping 21 matching lines...) Expand all
49 FetchRequestMode GetFetchRequestModeForWebURLRequest( 50 FetchRequestMode GetFetchRequestModeForWebURLRequest(
50 const blink::WebURLRequest& request); 51 const blink::WebURLRequest& request);
51 FetchCredentialsMode GetFetchCredentialsModeForWebURLRequest( 52 FetchCredentialsMode GetFetchCredentialsModeForWebURLRequest(
52 const blink::WebURLRequest& request); 53 const blink::WebURLRequest& request);
53 FetchRedirectMode GetFetchRedirectModeForWebURLRequest( 54 FetchRedirectMode GetFetchRedirectModeForWebURLRequest(
54 const blink::WebURLRequest& request); 55 const blink::WebURLRequest& request);
55 RequestContextFrameType GetRequestContextFrameTypeForWebURLRequest( 56 RequestContextFrameType GetRequestContextFrameTypeForWebURLRequest(
56 const blink::WebURLRequest& request); 57 const blink::WebURLRequest& request);
57 RequestContextType GetRequestContextTypeForWebURLRequest( 58 RequestContextType GetRequestContextTypeForWebURLRequest(
58 const blink::WebURLRequest& request); 59 const blink::WebURLRequest& request);
60 blink::WebMixedContentContextType GetMixedContentContextTypeForWebURLRequest(
61 const blink::WebURLRequest& request);
59 SkipServiceWorker GetSkipServiceWorkerForWebURLRequest( 62 SkipServiceWorker GetSkipServiceWorkerForWebURLRequest(
60 const blink::WebURLRequest& request); 63 const blink::WebURLRequest& request);
61 64
62 // Generates a WebURLError based on |reason|. 65 // Generates a WebURLError based on |reason|.
63 blink::WebURLError CreateWebURLError(const blink::WebURL& unreachable_url, 66 blink::WebURLError CreateWebURLError(const blink::WebURL& unreachable_url,
64 bool stale_copy_in_cache, 67 bool stale_copy_in_cache,
65 int reason); 68 int reason);
66 69
67 // Generates a WebURLError based on |reason|. 70 // Generates a WebURLError based on |reason|.
68 blink::WebURLError CreateWebURLError(const blink::WebURL& unreachable_url, 71 blink::WebURLError CreateWebURLError(const blink::WebURL& unreachable_url,
69 bool stale_copy_in_cache, 72 bool stale_copy_in_cache,
70 int reason, 73 int reason,
71 bool was_ignored_by_handler); 74 bool was_ignored_by_handler);
72 75
73 } // namespace content 76 } // namespace content
74 77
75 #endif // CONTENT_CHILD_WEB_URL_REQUEST_UTIL_H_ 78 #endif // CONTENT_CHILD_WEB_URL_REQUEST_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698