| 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 const AtomicString& httpUserAgent() const { return httpHeaderField(HTTPNames
::User_Agent); } | 145 const AtomicString& httpUserAgent() const { return httpHeaderField(HTTPNames
::User_Agent); } |
| 146 void setHTTPUserAgent(const AtomicString& httpUserAgent) { setHTTPHeaderFiel
d(HTTPNames::User_Agent, httpUserAgent); } | 146 void setHTTPUserAgent(const AtomicString& httpUserAgent) { setHTTPHeaderFiel
d(HTTPNames::User_Agent, httpUserAgent); } |
| 147 void clearHTTPUserAgent(); | 147 void clearHTTPUserAgent(); |
| 148 | 148 |
| 149 const AtomicString& httpAccept() const { return httpHeaderField(HTTPNames::A
ccept); } | 149 const AtomicString& httpAccept() const { return httpHeaderField(HTTPNames::A
ccept); } |
| 150 void setHTTPAccept(const AtomicString& httpAccept) { setHTTPHeaderField(HTTP
Names::Accept, httpAccept); } | 150 void setHTTPAccept(const AtomicString& httpAccept) { setHTTPHeaderField(HTTP
Names::Accept, httpAccept); } |
| 151 | 151 |
| 152 EncodedFormData* httpBody() const; | 152 EncodedFormData* httpBody() const; |
| 153 void setHTTPBody(PassRefPtr<EncodedFormData>); | 153 void setHTTPBody(PassRefPtr<EncodedFormData>); |
| 154 | 154 |
| 155 EncodedFormData* attachedCredentialBody() const; |
| 156 void setAttachedCredentialBody(PassRefPtr<EncodedFormData>); |
| 157 |
| 155 bool allowStoredCredentials() const; | 158 bool allowStoredCredentials() const; |
| 156 void setAllowStoredCredentials(bool allowCredentials); | 159 void setAllowStoredCredentials(bool allowCredentials); |
| 157 | 160 |
| 158 ResourceLoadPriority priority() const; | 161 ResourceLoadPriority priority() const; |
| 159 void setPriority(ResourceLoadPriority, int intraPriorityValue = 0); | 162 void setPriority(ResourceLoadPriority, int intraPriorityValue = 0); |
| 160 | 163 |
| 161 bool isConditional() const; | 164 bool isConditional() const; |
| 162 | 165 |
| 163 // Whether the associated ResourceHandleClient needs to be notified of | 166 // Whether the associated ResourceHandleClient needs to be notified of |
| 164 // upload progress made for that resource. | 167 // upload progress made for that resource. |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 const CacheControlHeader& cacheControlHeader() const; | 258 const CacheControlHeader& cacheControlHeader() const; |
| 256 | 259 |
| 257 KURL m_url; | 260 KURL m_url; |
| 258 ResourceRequestCachePolicy m_cachePolicy; | 261 ResourceRequestCachePolicy m_cachePolicy; |
| 259 double m_timeoutInterval; // 0 is a magic value for platform default on plat
forms that have one. | 262 double m_timeoutInterval; // 0 is a magic value for platform default on plat
forms that have one. |
| 260 KURL m_firstPartyForCookies; | 263 KURL m_firstPartyForCookies; |
| 261 RefPtr<SecurityOrigin> m_requestorOrigin; | 264 RefPtr<SecurityOrigin> m_requestorOrigin; |
| 262 AtomicString m_httpMethod; | 265 AtomicString m_httpMethod; |
| 263 HTTPHeaderMap m_httpHeaderFields; | 266 HTTPHeaderMap m_httpHeaderFields; |
| 264 RefPtr<EncodedFormData> m_httpBody; | 267 RefPtr<EncodedFormData> m_httpBody; |
| 268 RefPtr<EncodedFormData> m_attachedCredentialBody; |
| 265 bool m_allowStoredCredentials : 1; | 269 bool m_allowStoredCredentials : 1; |
| 266 bool m_reportUploadProgress : 1; | 270 bool m_reportUploadProgress : 1; |
| 267 bool m_reportRawHeaders : 1; | 271 bool m_reportRawHeaders : 1; |
| 268 bool m_hasUserGesture : 1; | 272 bool m_hasUserGesture : 1; |
| 269 bool m_downloadToFile : 1; | 273 bool m_downloadToFile : 1; |
| 270 bool m_useStreamOnResponse : 1; | 274 bool m_useStreamOnResponse : 1; |
| 271 bool m_skipServiceWorker : 1; | 275 bool m_skipServiceWorker : 1; |
| 272 bool m_shouldResetAppCache : 1; | 276 bool m_shouldResetAppCache : 1; |
| 273 ResourceLoadPriority m_priority; | 277 ResourceLoadPriority m_priority; |
| 274 int m_intraPriorityValue; | 278 int m_intraPriorityValue; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 KURL m_url; | 310 KURL m_url; |
| 307 | 311 |
| 308 ResourceRequestCachePolicy m_cachePolicy; | 312 ResourceRequestCachePolicy m_cachePolicy; |
| 309 double m_timeoutInterval; | 313 double m_timeoutInterval; |
| 310 KURL m_firstPartyForCookies; | 314 KURL m_firstPartyForCookies; |
| 311 RefPtr<SecurityOrigin> m_requestorOrigin; | 315 RefPtr<SecurityOrigin> m_requestorOrigin; |
| 312 | 316 |
| 313 String m_httpMethod; | 317 String m_httpMethod; |
| 314 OwnPtr<CrossThreadHTTPHeaderMapData> m_httpHeaders; | 318 OwnPtr<CrossThreadHTTPHeaderMapData> m_httpHeaders; |
| 315 RefPtr<EncodedFormData> m_httpBody; | 319 RefPtr<EncodedFormData> m_httpBody; |
| 320 RefPtr<EncodedFormData> m_attachedCredentialBody; |
| 316 bool m_allowStoredCredentials; | 321 bool m_allowStoredCredentials; |
| 317 bool m_reportUploadProgress; | 322 bool m_reportUploadProgress; |
| 318 bool m_hasUserGesture; | 323 bool m_hasUserGesture; |
| 319 bool m_downloadToFile; | 324 bool m_downloadToFile; |
| 320 bool m_skipServiceWorker; | 325 bool m_skipServiceWorker; |
| 321 bool m_useStreamOnResponse; | 326 bool m_useStreamOnResponse; |
| 322 bool m_shouldResetAppCache; | 327 bool m_shouldResetAppCache; |
| 323 ResourceLoadPriority m_priority; | 328 ResourceLoadPriority m_priority; |
| 324 int m_intraPriorityValue; | 329 int m_intraPriorityValue; |
| 325 int m_requestorID; | 330 int m_requestorID; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 336 bool m_checkForBrowserSideNavigation; | 341 bool m_checkForBrowserSideNavigation; |
| 337 double m_uiStartTime; | 342 double m_uiStartTime; |
| 338 bool m_isExternalRequest; | 343 bool m_isExternalRequest; |
| 339 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; | 344 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; |
| 340 bool m_followedRedirect; | 345 bool m_followedRedirect; |
| 341 }; | 346 }; |
| 342 | 347 |
| 343 } // namespace blink | 348 } // namespace blink |
| 344 | 349 |
| 345 #endif // ResourceRequest_h | 350 #endif // ResourceRequest_h |
| OLD | NEW |