| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved. |
| 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> | 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> |
| 4 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. | 4 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 // https://mikewest.github.io/cors-rfc1918/#external-request | 230 // https://mikewest.github.io/cors-rfc1918/#external-request |
| 231 bool isExternalRequest() const { return m_isExternalRequest; } | 231 bool isExternalRequest() const { return m_isExternalRequest; } |
| 232 void setExternalRequestStateFromRequestorAddressSpace(WebAddressSpace); | 232 void setExternalRequestStateFromRequestorAddressSpace(WebAddressSpace); |
| 233 | 233 |
| 234 InputToLoadPerfMetricReportPolicy inputPerfMetricReportPolicy() const { retu
rn m_inputPerfMetricReportPolicy; } | 234 InputToLoadPerfMetricReportPolicy inputPerfMetricReportPolicy() const { retu
rn m_inputPerfMetricReportPolicy; } |
| 235 void setInputPerfMetricReportPolicy(InputToLoadPerfMetricReportPolicy inputP
erfMetricReportPolicy) { m_inputPerfMetricReportPolicy = inputPerfMetricReportPo
licy; } | 235 void setInputPerfMetricReportPolicy(InputToLoadPerfMetricReportPolicy inputP
erfMetricReportPolicy) { m_inputPerfMetricReportPolicy = inputPerfMetricReportPo
licy; } |
| 236 | 236 |
| 237 void setRedirectStatus(RedirectStatus status) { m_redirectStatus = status; } | 237 void setRedirectStatus(RedirectStatus status) { m_redirectStatus = status; } |
| 238 RedirectStatus redirectStatus() const { return m_redirectStatus; } | 238 RedirectStatus redirectStatus() const { return m_redirectStatus; } |
| 239 | 239 |
| 240 void setLinkPreload(bool isLinkPreload) { m_isLinkPreload = isLinkPreload; } |
| 241 bool linkPreload() const { return m_isLinkPreload; } |
| 242 |
| 240 private: | 243 private: |
| 241 void initialize(const KURL&); | 244 void initialize(const KURL&); |
| 242 | 245 |
| 243 const CacheControlHeader& cacheControlHeader() const; | 246 const CacheControlHeader& cacheControlHeader() const; |
| 244 | 247 |
| 245 KURL m_url; | 248 KURL m_url; |
| 246 WebCachePolicy m_cachePolicy; | 249 WebCachePolicy m_cachePolicy; |
| 247 double m_timeoutInterval; // 0 is a magic value for platform default on plat
forms that have one. | 250 double m_timeoutInterval; // 0 is a magic value for platform default on plat
forms that have one. |
| 248 KURL m_firstPartyForCookies; | 251 KURL m_firstPartyForCookies; |
| 249 RefPtr<SecurityOrigin> m_requestorOrigin; | 252 RefPtr<SecurityOrigin> m_requestorOrigin; |
| 250 AtomicString m_httpMethod; | 253 AtomicString m_httpMethod; |
| 251 HTTPHeaderMap m_httpHeaderFields; | 254 HTTPHeaderMap m_httpHeaderFields; |
| 252 RefPtr<EncodedFormData> m_httpBody; | 255 RefPtr<EncodedFormData> m_httpBody; |
| 253 RefPtr<EncodedFormData> m_attachedCredential; | 256 RefPtr<EncodedFormData> m_attachedCredential; |
| 254 bool m_allowStoredCredentials : 1; | 257 bool m_allowStoredCredentials : 1; |
| 255 bool m_reportUploadProgress : 1; | 258 bool m_reportUploadProgress : 1; |
| 256 bool m_reportRawHeaders : 1; | 259 bool m_reportRawHeaders : 1; |
| 257 bool m_hasUserGesture : 1; | 260 bool m_hasUserGesture : 1; |
| 258 bool m_downloadToFile : 1; | 261 bool m_downloadToFile : 1; |
| 259 bool m_useStreamOnResponse : 1; | 262 bool m_useStreamOnResponse : 1; |
| 260 bool m_shouldResetAppCache : 1; | 263 bool m_shouldResetAppCache : 1; |
| 264 bool m_isLinkPreload : 1; |
| 261 WebURLRequest::SkipServiceWorker m_skipServiceWorker; | 265 WebURLRequest::SkipServiceWorker m_skipServiceWorker; |
| 262 ResourceLoadPriority m_priority; | 266 ResourceLoadPriority m_priority; |
| 263 int m_intraPriorityValue; | 267 int m_intraPriorityValue; |
| 264 int m_requestorID; | 268 int m_requestorID; |
| 265 int m_requestorProcessID; | 269 int m_requestorProcessID; |
| 266 int m_appCacheHostID; | 270 int m_appCacheHostID; |
| 267 RefPtr<ExtraData> m_extraData; | 271 RefPtr<ExtraData> m_extraData; |
| 268 WebURLRequest::RequestContext m_requestContext; | 272 WebURLRequest::RequestContext m_requestContext; |
| 269 WebURLRequest::FrameType m_frameType; | 273 WebURLRequest::FrameType m_frameType; |
| 270 WebURLRequest::FetchRequestMode m_fetchRequestMode; | 274 WebURLRequest::FetchRequestMode m_fetchRequestMode; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 300 std::unique_ptr<CrossThreadHTTPHeaderMapData> m_httpHeaders; | 304 std::unique_ptr<CrossThreadHTTPHeaderMapData> m_httpHeaders; |
| 301 RefPtr<EncodedFormData> m_httpBody; | 305 RefPtr<EncodedFormData> m_httpBody; |
| 302 RefPtr<EncodedFormData> m_attachedCredential; | 306 RefPtr<EncodedFormData> m_attachedCredential; |
| 303 bool m_allowStoredCredentials; | 307 bool m_allowStoredCredentials; |
| 304 bool m_reportUploadProgress; | 308 bool m_reportUploadProgress; |
| 305 bool m_hasUserGesture; | 309 bool m_hasUserGesture; |
| 306 bool m_downloadToFile; | 310 bool m_downloadToFile; |
| 307 WebURLRequest::SkipServiceWorker m_skipServiceWorker; | 311 WebURLRequest::SkipServiceWorker m_skipServiceWorker; |
| 308 bool m_useStreamOnResponse; | 312 bool m_useStreamOnResponse; |
| 309 bool m_shouldResetAppCache; | 313 bool m_shouldResetAppCache; |
| 314 bool m_isLinkPreload; |
| 310 ResourceLoadPriority m_priority; | 315 ResourceLoadPriority m_priority; |
| 311 int m_intraPriorityValue; | 316 int m_intraPriorityValue; |
| 312 int m_requestorID; | 317 int m_requestorID; |
| 313 int m_requestorProcessID; | 318 int m_requestorProcessID; |
| 314 int m_appCacheHostID; | 319 int m_appCacheHostID; |
| 315 WebURLRequest::RequestContext m_requestContext; | 320 WebURLRequest::RequestContext m_requestContext; |
| 316 WebURLRequest::FrameType m_frameType; | 321 WebURLRequest::FrameType m_frameType; |
| 317 WebURLRequest::FetchRequestMode m_fetchRequestMode; | 322 WebURLRequest::FetchRequestMode m_fetchRequestMode; |
| 318 WebURLRequest::FetchCredentialsMode m_fetchCredentialsMode; | 323 WebURLRequest::FetchCredentialsMode m_fetchCredentialsMode; |
| 319 WebURLRequest::FetchRedirectMode m_fetchRedirectMode; | 324 WebURLRequest::FetchRedirectMode m_fetchRedirectMode; |
| 320 WebURLRequest::LoFiState m_loFiState; | 325 WebURLRequest::LoFiState m_loFiState; |
| 321 ReferrerPolicy m_referrerPolicy; | 326 ReferrerPolicy m_referrerPolicy; |
| 322 bool m_didSetHTTPReferrer; | 327 bool m_didSetHTTPReferrer; |
| 323 bool m_checkForBrowserSideNavigation; | 328 bool m_checkForBrowserSideNavigation; |
| 324 double m_uiStartTime; | 329 double m_uiStartTime; |
| 325 bool m_isExternalRequest; | 330 bool m_isExternalRequest; |
| 326 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; | 331 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; |
| 327 ResourceRequest::RedirectStatus m_redirectStatus; | 332 ResourceRequest::RedirectStatus m_redirectStatus; |
| 328 }; | 333 }; |
| 329 | 334 |
| 330 } // namespace blink | 335 } // namespace blink |
| 331 | 336 |
| 332 #endif // ResourceRequest_h | 337 #endif // ResourceRequest_h |
| OLD | NEW |