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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 allowStoredCredentials() const; | 160 bool allowStoredCredentials() const; |
161 void setAllowStoredCredentials(bool allowCredentials); | 161 void setAllowStoredCredentials(bool allowCredentials); |
162 | 162 |
163 ResourceLoadPriority priority() const; | 163 ResourceLoadPriority priority() const; |
164 void setPriority(ResourceLoadPriority); | 164 void setPriority(ResourceLoadPriority, int intraPriorityValue = 0); |
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; } |
172 | 172 |
173 // Whether the timing information should be collected for the request. | 173 // Whether the timing information should be collected for the request. |
174 bool reportLoadTiming() const { return m_reportLoadTiming; } | 174 bool reportLoadTiming() const { return m_reportLoadTiming; } |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_allowStoredCredentials : 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_intraPriorityValue; |
234 int m_requestorID; | 235 int m_requestorID; |
235 int m_requestorProcessID; | 236 int m_requestorProcessID; |
236 int m_appCacheHostID; | 237 int m_appCacheHostID; |
237 RefPtr<ExtraData> m_extraData; | 238 RefPtr<ExtraData> m_extraData; |
238 TargetType m_targetType; | 239 TargetType m_targetType; |
239 ReferrerPolicy m_referrerPolicy; | 240 ReferrerPolicy m_referrerPolicy; |
240 | 241 |
241 static double s_defaultTimeoutInterval; | 242 static double s_defaultTimeoutInterval; |
242 }; | 243 }; |
243 | 244 |
(...skipping 13 matching lines...) Expand all Loading... |
257 KURL m_firstPartyForCookies; | 258 KURL m_firstPartyForCookies; |
258 | 259 |
259 String m_httpMethod; | 260 String m_httpMethod; |
260 OwnPtr<CrossThreadHTTPHeaderMapData> m_httpHeaders; | 261 OwnPtr<CrossThreadHTTPHeaderMapData> m_httpHeaders; |
261 RefPtr<FormData> m_httpBody; | 262 RefPtr<FormData> m_httpBody; |
262 bool m_allowStoredCredentials; | 263 bool m_allowStoredCredentials; |
263 bool m_reportUploadProgress; | 264 bool m_reportUploadProgress; |
264 bool m_hasUserGesture; | 265 bool m_hasUserGesture; |
265 bool m_downloadToFile; | 266 bool m_downloadToFile; |
266 ResourceLoadPriority m_priority; | 267 ResourceLoadPriority m_priority; |
| 268 int m_intraPriorityValue; |
267 int m_requestorID; | 269 int m_requestorID; |
268 int m_requestorProcessID; | 270 int m_requestorProcessID; |
269 int m_appCacheHostID; | 271 int m_appCacheHostID; |
270 ResourceRequest::TargetType m_targetType; | 272 ResourceRequest::TargetType m_targetType; |
271 ReferrerPolicy m_referrerPolicy; | 273 ReferrerPolicy m_referrerPolicy; |
272 }; | 274 }; |
273 | 275 |
274 unsigned initializeMaximumHTTPConnectionCountPerHost(); | 276 unsigned initializeMaximumHTTPConnectionCountPerHost(); |
275 | 277 |
276 } // namespace WebCore | 278 } // namespace WebCore |
277 | 279 |
278 #endif // ResourceRequest_h | 280 #endif // ResourceRequest_h |
OLD | NEW |