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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 void setHTTPUserAgent(const AtomicString& httpUserAgent) { setHTTPHeaderFiel
d("User-Agent", httpUserAgent); } | 150 void setHTTPUserAgent(const AtomicString& httpUserAgent) { setHTTPHeaderFiel
d("User-Agent", httpUserAgent); } |
151 void clearHTTPUserAgent(); | 151 void clearHTTPUserAgent(); |
152 | 152 |
153 const AtomicString& httpAccept() const { return httpHeaderField("Accept"); } | 153 const AtomicString& httpAccept() const { return httpHeaderField("Accept"); } |
154 void setHTTPAccept(const AtomicString& httpAccept) { setHTTPHeaderField("Acc
ept", httpAccept); } | 154 void setHTTPAccept(const AtomicString& httpAccept) { setHTTPHeaderField("Acc
ept", httpAccept); } |
155 void clearHTTPAccept(); | 155 void clearHTTPAccept(); |
156 | 156 |
157 FormData* httpBody() const; | 157 FormData* httpBody() const; |
158 void setHTTPBody(PassRefPtr<FormData> httpBody); | 158 void setHTTPBody(PassRefPtr<FormData> httpBody); |
159 | 159 |
160 bool allowCookies() const; | 160 bool allowStoredCredentials() const; |
161 void setAllowCookies(bool allowCookies); | 161 void setAllowStoredCredentials(bool allowCredentials); |
162 | 162 |
163 ResourceLoadPriority priority() const; | 163 ResourceLoadPriority priority() const; |
164 void setPriority(ResourceLoadPriority); | 164 void setPriority(ResourceLoadPriority); |
165 | 165 |
166 bool isConditional() const; | 166 bool isConditional() const; |
167 | 167 |
168 // Whether the associated ResourceHandleClient needs to be notified of | 168 // Whether the associated ResourceHandleClient needs to be notified of |
169 // upload progress made for that resource. | 169 // upload progress made for that resource. |
170 bool reportUploadProgress() const { return m_reportUploadProgress; } | 170 bool reportUploadProgress() const { return m_reportUploadProgress; } |
171 void setReportUploadProgress(bool reportUploadProgress) { m_reportUploadProg
ress = reportUploadProgress; } | 171 void setReportUploadProgress(bool reportUploadProgress) { m_reportUploadProg
ress = reportUploadProgress; } |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 private: | 217 private: |
218 void initialize(const KURL& url, ResourceRequestCachePolicy cachePolicy); | 218 void initialize(const KURL& url, ResourceRequestCachePolicy cachePolicy); |
219 | 219 |
220 KURL m_url; | 220 KURL m_url; |
221 ResourceRequestCachePolicy m_cachePolicy; | 221 ResourceRequestCachePolicy m_cachePolicy; |
222 double m_timeoutInterval; // 0 is a magic value for platform default on plat
forms that have one. | 222 double m_timeoutInterval; // 0 is a magic value for platform default on plat
forms that have one. |
223 KURL m_firstPartyForCookies; | 223 KURL m_firstPartyForCookies; |
224 AtomicString m_httpMethod; | 224 AtomicString m_httpMethod; |
225 HTTPHeaderMap m_httpHeaderFields; | 225 HTTPHeaderMap m_httpHeaderFields; |
226 RefPtr<FormData> m_httpBody; | 226 RefPtr<FormData> m_httpBody; |
227 bool m_allowCookies : 1; | 227 bool m_allowStoredCredentials : 1; |
228 bool m_reportUploadProgress : 1; | 228 bool m_reportUploadProgress : 1; |
229 bool m_reportLoadTiming : 1; | 229 bool m_reportLoadTiming : 1; |
230 bool m_reportRawHeaders : 1; | 230 bool m_reportRawHeaders : 1; |
231 bool m_hasUserGesture : 1; | 231 bool m_hasUserGesture : 1; |
232 bool m_downloadToFile : 1; | 232 bool m_downloadToFile : 1; |
233 ResourceLoadPriority m_priority; | 233 ResourceLoadPriority m_priority; |
234 int m_requestorID; | 234 int m_requestorID; |
235 int m_requestorProcessID; | 235 int m_requestorProcessID; |
236 int m_appCacheHostID; | 236 int m_appCacheHostID; |
237 RefPtr<ExtraData> m_extraData; | 237 RefPtr<ExtraData> m_extraData; |
(...skipping 14 matching lines...) Expand all Loading... |
252 CrossThreadResourceRequestData() { } | 252 CrossThreadResourceRequestData() { } |
253 KURL m_url; | 253 KURL m_url; |
254 | 254 |
255 ResourceRequestCachePolicy m_cachePolicy; | 255 ResourceRequestCachePolicy m_cachePolicy; |
256 double m_timeoutInterval; | 256 double m_timeoutInterval; |
257 KURL m_firstPartyForCookies; | 257 KURL m_firstPartyForCookies; |
258 | 258 |
259 String m_httpMethod; | 259 String m_httpMethod; |
260 OwnPtr<CrossThreadHTTPHeaderMapData> m_httpHeaders; | 260 OwnPtr<CrossThreadHTTPHeaderMapData> m_httpHeaders; |
261 RefPtr<FormData> m_httpBody; | 261 RefPtr<FormData> m_httpBody; |
262 bool m_allowCookies; | 262 bool m_allowStoredCredentials; |
263 bool m_reportUploadProgress; | 263 bool m_reportUploadProgress; |
264 bool m_hasUserGesture; | 264 bool m_hasUserGesture; |
265 bool m_downloadToFile; | 265 bool m_downloadToFile; |
266 ResourceLoadPriority m_priority; | 266 ResourceLoadPriority m_priority; |
267 int m_requestorID; | 267 int m_requestorID; |
268 int m_requestorProcessID; | 268 int m_requestorProcessID; |
269 int m_appCacheHostID; | 269 int m_appCacheHostID; |
270 ResourceRequest::TargetType m_targetType; | 270 ResourceRequest::TargetType m_targetType; |
271 ReferrerPolicy m_referrerPolicy; | 271 ReferrerPolicy m_referrerPolicy; |
272 }; | 272 }; |
273 | 273 |
274 unsigned initializeMaximumHTTPConnectionCountPerHost(); | 274 unsigned initializeMaximumHTTPConnectionCountPerHost(); |
275 | 275 |
276 } // namespace WebCore | 276 } // namespace WebCore |
277 | 277 |
278 #endif // ResourceRequest_h | 278 #endif // ResourceRequest_h |
OLD | NEW |