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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 | 93 |
94 ResourceRequestCachePolicy cachePolicy() const; | 94 ResourceRequestCachePolicy cachePolicy() const; |
95 void setCachePolicy(ResourceRequestCachePolicy cachePolicy); | 95 void setCachePolicy(ResourceRequestCachePolicy cachePolicy); |
96 | 96 |
97 double timeoutInterval() const; // May return 0 when using platform default. | 97 double timeoutInterval() const; // May return 0 when using platform default. |
98 void setTimeoutInterval(double timeoutInterval); | 98 void setTimeoutInterval(double timeoutInterval); |
99 | 99 |
100 const KURL& firstPartyForCookies() const; | 100 const KURL& firstPartyForCookies() const; |
101 void setFirstPartyForCookies(const KURL& firstPartyForCookies); | 101 void setFirstPartyForCookies(const KURL& firstPartyForCookies); |
102 | 102 |
| 103 const KURL& requestorURL() const; |
| 104 void setRequestorURL(const KURL&); |
| 105 |
103 const AtomicString& httpMethod() const; | 106 const AtomicString& httpMethod() const; |
104 void setHTTPMethod(const AtomicString&); | 107 void setHTTPMethod(const AtomicString&); |
105 | 108 |
106 const HTTPHeaderMap& httpHeaderFields() const; | 109 const HTTPHeaderMap& httpHeaderFields() const; |
107 const AtomicString& httpHeaderField(const AtomicString& name) const; | 110 const AtomicString& httpHeaderField(const AtomicString& name) const; |
108 const AtomicString& httpHeaderField(const char* name) const; | 111 const AtomicString& httpHeaderField(const char* name) const; |
109 void setHTTPHeaderField(const AtomicString& name, const AtomicString& value)
; | 112 void setHTTPHeaderField(const AtomicString& name, const AtomicString& value)
; |
110 void setHTTPHeaderField(const char* name, const AtomicString& value); | 113 void setHTTPHeaderField(const char* name, const AtomicString& value); |
111 void addHTTPHeaderField(const AtomicString& name, const AtomicString& value)
; | 114 void addHTTPHeaderField(const AtomicString& name, const AtomicString& value)
; |
112 void addHTTPHeaderFields(const HTTPHeaderMap& headerFields); | 115 void addHTTPHeaderFields(const HTTPHeaderMap& headerFields); |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 | 236 |
234 private: | 237 private: |
235 void initialize(const KURL&); | 238 void initialize(const KURL&); |
236 | 239 |
237 const CacheControlHeader& cacheControlHeader() const; | 240 const CacheControlHeader& cacheControlHeader() const; |
238 | 241 |
239 KURL m_url; | 242 KURL m_url; |
240 ResourceRequestCachePolicy m_cachePolicy; | 243 ResourceRequestCachePolicy m_cachePolicy; |
241 double m_timeoutInterval; // 0 is a magic value for platform default on plat
forms that have one. | 244 double m_timeoutInterval; // 0 is a magic value for platform default on plat
forms that have one. |
242 KURL m_firstPartyForCookies; | 245 KURL m_firstPartyForCookies; |
| 246 KURL m_requestorURL; |
243 AtomicString m_httpMethod; | 247 AtomicString m_httpMethod; |
244 HTTPHeaderMap m_httpHeaderFields; | 248 HTTPHeaderMap m_httpHeaderFields; |
245 RefPtr<FormData> m_httpBody; | 249 RefPtr<FormData> m_httpBody; |
246 bool m_allowStoredCredentials : 1; | 250 bool m_allowStoredCredentials : 1; |
247 bool m_reportUploadProgress : 1; | 251 bool m_reportUploadProgress : 1; |
248 bool m_reportRawHeaders : 1; | 252 bool m_reportRawHeaders : 1; |
249 bool m_hasUserGesture : 1; | 253 bool m_hasUserGesture : 1; |
250 bool m_downloadToFile : 1; | 254 bool m_downloadToFile : 1; |
251 bool m_useStreamOnResponse : 1; | 255 bool m_useStreamOnResponse : 1; |
252 bool m_skipServiceWorker : 1; | 256 bool m_skipServiceWorker : 1; |
(...skipping 29 matching lines...) Expand all Loading... |
282 | 286 |
283 struct CrossThreadResourceRequestData { | 287 struct CrossThreadResourceRequestData { |
284 WTF_MAKE_NONCOPYABLE(CrossThreadResourceRequestData); WTF_MAKE_FAST_ALLOCATE
D(CrossThreadResourceRequestData); | 288 WTF_MAKE_NONCOPYABLE(CrossThreadResourceRequestData); WTF_MAKE_FAST_ALLOCATE
D(CrossThreadResourceRequestData); |
285 public: | 289 public: |
286 CrossThreadResourceRequestData() { } | 290 CrossThreadResourceRequestData() { } |
287 KURL m_url; | 291 KURL m_url; |
288 | 292 |
289 ResourceRequestCachePolicy m_cachePolicy; | 293 ResourceRequestCachePolicy m_cachePolicy; |
290 double m_timeoutInterval; | 294 double m_timeoutInterval; |
291 KURL m_firstPartyForCookies; | 295 KURL m_firstPartyForCookies; |
| 296 KURL m_requestorURL; |
292 | 297 |
293 String m_httpMethod; | 298 String m_httpMethod; |
294 OwnPtr<CrossThreadHTTPHeaderMapData> m_httpHeaders; | 299 OwnPtr<CrossThreadHTTPHeaderMapData> m_httpHeaders; |
295 RefPtr<FormData> m_httpBody; | 300 RefPtr<FormData> m_httpBody; |
296 bool m_allowStoredCredentials; | 301 bool m_allowStoredCredentials; |
297 bool m_reportUploadProgress; | 302 bool m_reportUploadProgress; |
298 bool m_hasUserGesture; | 303 bool m_hasUserGesture; |
299 bool m_downloadToFile; | 304 bool m_downloadToFile; |
300 bool m_skipServiceWorker; | 305 bool m_skipServiceWorker; |
301 bool m_useStreamOnResponse; | 306 bool m_useStreamOnResponse; |
(...skipping 14 matching lines...) Expand all Loading... |
316 bool m_originatesFromReservedIPRange; | 321 bool m_originatesFromReservedIPRange; |
317 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; | 322 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; |
318 bool m_followedRedirect; | 323 bool m_followedRedirect; |
319 }; | 324 }; |
320 | 325 |
321 unsigned initializeMaximumHTTPConnectionCountPerHost(); | 326 unsigned initializeMaximumHTTPConnectionCountPerHost(); |
322 | 327 |
323 } // namespace blink | 328 } // namespace blink |
324 | 329 |
325 #endif // ResourceRequest_h | 330 #endif // ResourceRequest_h |
OLD | NEW |