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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 ResourceLoadPriority priority() const; | 163 ResourceLoadPriority priority() const; |
164 void setPriority(ResourceLoadPriority, int intraPriorityValue = 0); | 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. | |
174 bool reportLoadTiming() const { return m_reportLoadTiming; } | |
175 void setReportLoadTiming(bool reportLoadTiming) { m_reportLoadTiming = repor
tLoadTiming; } | |
176 | |
177 // Whether actual headers being sent/received should be collected and report
ed for the request. | 173 // Whether actual headers being sent/received should be collected and report
ed for the request. |
178 bool reportRawHeaders() const { return m_reportRawHeaders; } | 174 bool reportRawHeaders() const { return m_reportRawHeaders; } |
179 void setReportRawHeaders(bool reportRawHeaders) { m_reportRawHeaders = repor
tRawHeaders; } | 175 void setReportRawHeaders(bool reportRawHeaders) { m_reportRawHeaders = repor
tRawHeaders; } |
180 | 176 |
181 // Allows the request to be matched up with its requestor. | 177 // Allows the request to be matched up with its requestor. |
182 int requestorID() const { return m_requestorID; } | 178 int requestorID() const { return m_requestorID; } |
183 void setRequestorID(int requestorID) { m_requestorID = requestorID; } | 179 void setRequestorID(int requestorID) { m_requestorID = requestorID; } |
184 | 180 |
185 // The process id of the process from which this request originated. In | 181 // The process id of the process from which this request originated. In |
186 // the case of out-of-process plugins, this allows to link back the | 182 // the case of out-of-process plugins, this allows to link back the |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 | 219 |
224 KURL m_url; | 220 KURL m_url; |
225 ResourceRequestCachePolicy m_cachePolicy; | 221 ResourceRequestCachePolicy m_cachePolicy; |
226 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. |
227 KURL m_firstPartyForCookies; | 223 KURL m_firstPartyForCookies; |
228 AtomicString m_httpMethod; | 224 AtomicString m_httpMethod; |
229 HTTPHeaderMap m_httpHeaderFields; | 225 HTTPHeaderMap m_httpHeaderFields; |
230 RefPtr<FormData> m_httpBody; | 226 RefPtr<FormData> m_httpBody; |
231 bool m_allowStoredCredentials : 1; | 227 bool m_allowStoredCredentials : 1; |
232 bool m_reportUploadProgress : 1; | 228 bool m_reportUploadProgress : 1; |
233 bool m_reportLoadTiming : 1; | |
234 bool m_reportRawHeaders : 1; | 229 bool m_reportRawHeaders : 1; |
235 bool m_hasUserGesture : 1; | 230 bool m_hasUserGesture : 1; |
236 bool m_downloadToFile : 1; | 231 bool m_downloadToFile : 1; |
237 ResourceLoadPriority m_priority; | 232 ResourceLoadPriority m_priority; |
238 int m_intraPriorityValue; | 233 int m_intraPriorityValue; |
239 int m_requestorID; | 234 int m_requestorID; |
240 int m_requestorProcessID; | 235 int m_requestorProcessID; |
241 int m_appCacheHostID; | 236 int m_appCacheHostID; |
242 RefPtr<ExtraData> m_extraData; | 237 RefPtr<ExtraData> m_extraData; |
243 TargetType m_targetType; | 238 TargetType m_targetType; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 int m_appCacheHostID; | 271 int m_appCacheHostID; |
277 ResourceRequest::TargetType m_targetType; | 272 ResourceRequest::TargetType m_targetType; |
278 ReferrerPolicy m_referrerPolicy; | 273 ReferrerPolicy m_referrerPolicy; |
279 }; | 274 }; |
280 | 275 |
281 unsigned initializeMaximumHTTPConnectionCountPerHost(); | 276 unsigned initializeMaximumHTTPConnectionCountPerHost(); |
282 | 277 |
283 } // namespace WebCore | 278 } // namespace WebCore |
284 | 279 |
285 #endif // ResourceRequest_h | 280 #endif // ResourceRequest_h |
OLD | NEW |