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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 void setDownloadToFile(bool downloadToFile) { m_downloadToFile = downloa
dToFile; } | 199 void setDownloadToFile(bool downloadToFile) { m_downloadToFile = downloa
dToFile; } |
200 | 200 |
201 // Extra data associated with this request. | 201 // Extra data associated with this request. |
202 ExtraData* extraData() const { return m_extraData.get(); } | 202 ExtraData* extraData() const { return m_extraData.get(); } |
203 void setExtraData(PassRefPtr<ExtraData> extraData) { m_extraData = extra
Data; } | 203 void setExtraData(PassRefPtr<ExtraData> extraData) { m_extraData = extra
Data; } |
204 | 204 |
205 // What this request is for. | 205 // What this request is for. |
206 TargetType targetType() const { return m_targetType; } | 206 TargetType targetType() const { return m_targetType; } |
207 void setTargetType(TargetType type) { m_targetType = type; } | 207 void setTargetType(TargetType type) { m_targetType = type; } |
208 | 208 |
209 void reportMemoryUsage(MemoryObjectInfo*) const; | |
210 | |
211 static double defaultTimeoutInterval(); // May return 0 when using platf
orm default. | 209 static double defaultTimeoutInterval(); // May return 0 when using platf
orm default. |
212 static void setDefaultTimeoutInterval(double); | 210 static void setDefaultTimeoutInterval(double); |
213 | 211 |
214 static bool compare(const ResourceRequest&, const ResourceRequest&); | 212 static bool compare(const ResourceRequest&, const ResourceRequest&); |
215 | 213 |
216 private: | 214 private: |
217 void initialize(const KURL& url, ResourceRequestCachePolicy cachePolicy)
; | 215 void initialize(const KURL& url, ResourceRequestCachePolicy cachePolicy)
; |
218 | 216 |
219 KURL m_url; | 217 KURL m_url; |
220 ResourceRequestCachePolicy m_cachePolicy; | 218 ResourceRequestCachePolicy m_cachePolicy; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 int m_requestorProcessID; | 263 int m_requestorProcessID; |
266 int m_appCacheHostID; | 264 int m_appCacheHostID; |
267 ResourceRequest::TargetType m_targetType; | 265 ResourceRequest::TargetType m_targetType; |
268 }; | 266 }; |
269 | 267 |
270 unsigned initializeMaximumHTTPConnectionCountPerHost(); | 268 unsigned initializeMaximumHTTPConnectionCountPerHost(); |
271 | 269 |
272 } // namespace WebCore | 270 } // namespace WebCore |
273 | 271 |
274 #endif // ResourceRequest_h | 272 #endif // ResourceRequest_h |
OLD | NEW |