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

Side by Side Diff: third_party/WebKit/public/platform/WebURLRequest.h

Issue 2053693002: WIP: Move 'Upgrade-Insecure-Requests' to the browser process. Base URL: https://chromium.googlesource.com/chromium/src.git@replicate
Patch Set: Created 4 years, 6 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 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 16 matching lines...) Expand all
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef WebURLRequest_h 31 #ifndef WebURLRequest_h
32 #define WebURLRequest_h 32 #define WebURLRequest_h
33 33
34 #include "WebAddressSpace.h" 34 #include "WebAddressSpace.h"
35 #include "WebCommon.h" 35 #include "WebCommon.h"
36 #include "WebHTTPBody.h" 36 #include "WebHTTPBody.h"
37 #include "WebInsecureRequestPolicy.h"
37 #include "WebReferrerPolicy.h" 38 #include "WebReferrerPolicy.h"
38 39
39 namespace blink { 40 namespace blink {
40 41
41 class ResourceRequest; 42 class ResourceRequest;
42 class WebHTTPBody; 43 class WebHTTPBody;
43 class WebHTTPHeaderVisitor; 44 class WebHTTPHeaderVisitor;
44 class WebSecurityOrigin; 45 class WebSecurityOrigin;
45 class WebString; 46 class WebString;
46 class WebURL; 47 class WebURL;
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 // that triggered the navigation (which can be different from the navigation 302 // that triggered the navigation (which can be different from the navigation
302 // start time used in the Navigation Timing API). 303 // start time used in the Navigation Timing API).
303 BLINK_PLATFORM_EXPORT double uiStartTime() const; 304 BLINK_PLATFORM_EXPORT double uiStartTime() const;
304 BLINK_PLATFORM_EXPORT void setUiStartTime(double); 305 BLINK_PLATFORM_EXPORT void setUiStartTime(double);
305 BLINK_PLATFORM_EXPORT WebURLRequest::InputToLoadPerfMetricReportPolicy input PerfMetricReportPolicy() const; 306 BLINK_PLATFORM_EXPORT WebURLRequest::InputToLoadPerfMetricReportPolicy input PerfMetricReportPolicy() const;
306 BLINK_PLATFORM_EXPORT void setInputPerfMetricReportPolicy(WebURLRequest::Inp utToLoadPerfMetricReportPolicy); 307 BLINK_PLATFORM_EXPORT void setInputPerfMetricReportPolicy(WebURLRequest::Inp utToLoadPerfMetricReportPolicy);
307 308
308 // https://mikewest.github.io/cors-rfc1918/#external-request 309 // https://mikewest.github.io/cors-rfc1918/#external-request
309 BLINK_PLATFORM_EXPORT bool isExternalRequest() const; 310 BLINK_PLATFORM_EXPORT bool isExternalRequest() const;
310 311
312 // The insecure request policy of the context which created this request.
313 BLINK_PLATFORM_EXPORT WebInsecureRequestPolicy getInsecureRequestPolicy() co nst;
314
311 #if INSIDE_BLINK 315 #if INSIDE_BLINK
312 BLINK_PLATFORM_EXPORT ResourceRequest& toMutableResourceRequest(); 316 BLINK_PLATFORM_EXPORT ResourceRequest& toMutableResourceRequest();
313 BLINK_PLATFORM_EXPORT const ResourceRequest& toResourceRequest() const; 317 BLINK_PLATFORM_EXPORT const ResourceRequest& toResourceRequest() const;
314 #endif 318 #endif
315 319
316 protected: 320 protected:
317 BLINK_PLATFORM_EXPORT void assign(WebURLRequestPrivate*); 321 BLINK_PLATFORM_EXPORT void assign(WebURLRequestPrivate*);
318 322
319 private: 323 private:
320 WebURLRequestPrivate* m_private; 324 WebURLRequestPrivate* m_private;
321 }; 325 };
322 326
323 } // namespace blink 327 } // namespace blink
324 328
325 #endif 329 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698