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 24 matching lines...) Expand all Loading... |
35 #include "platform/weborigin/KURL.h" | 35 #include "platform/weborigin/KURL.h" |
36 #include "platform/weborigin/Referrer.h" | 36 #include "platform/weborigin/Referrer.h" |
37 #include "wtf/OwnPtr.h" | 37 #include "wtf/OwnPtr.h" |
38 | 38 |
39 namespace WebCore { | 39 namespace WebCore { |
40 | 40 |
41 enum ResourceRequestCachePolicy { | 41 enum ResourceRequestCachePolicy { |
42 UseProtocolCachePolicy, // normal load | 42 UseProtocolCachePolicy, // normal load |
43 ReloadIgnoringCacheData, // reload | 43 ReloadIgnoringCacheData, // reload |
44 ReturnCacheDataElseLoad, // back/forward or encoding change - allow stale da
ta | 44 ReturnCacheDataElseLoad, // back/forward or encoding change - allow stale da
ta |
45 ReturnCacheDataDontLoad // results of a post - allow stale data and only us
e cache | 45 ReturnCacheDataDontLoad, // results of a post - allow stale data and only us
e cache |
| 46 ReloadBypassingCache, // end-to-end reload |
46 }; | 47 }; |
47 | 48 |
48 struct CrossThreadResourceRequestData; | 49 struct CrossThreadResourceRequestData; |
49 | 50 |
50 class PLATFORM_EXPORT ResourceRequest { | 51 class PLATFORM_EXPORT ResourceRequest { |
51 WTF_MAKE_FAST_ALLOCATED; | 52 WTF_MAKE_FAST_ALLOCATED; |
52 public: | 53 public: |
53 // The type of this ResourceRequest, based on how the resource will be used. | 54 // The type of this ResourceRequest, based on how the resource will be used. |
54 enum TargetType { | 55 enum TargetType { |
55 TargetIsMainFrame, | 56 TargetIsMainFrame, |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 int m_appCacheHostID; | 276 int m_appCacheHostID; |
276 ResourceRequest::TargetType m_targetType; | 277 ResourceRequest::TargetType m_targetType; |
277 ReferrerPolicy m_referrerPolicy; | 278 ReferrerPolicy m_referrerPolicy; |
278 }; | 279 }; |
279 | 280 |
280 unsigned initializeMaximumHTTPConnectionCountPerHost(); | 281 unsigned initializeMaximumHTTPConnectionCountPerHost(); |
281 | 282 |
282 } // namespace WebCore | 283 } // namespace WebCore |
283 | 284 |
284 #endif // ResourceRequest_h | 285 #endif // ResourceRequest_h |
OLD | NEW |