| 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/network/ResourceLoadPriority.h" | 35 #include "platform/network/ResourceLoadPriority.h" |
| 36 #include "platform/weborigin/KURL.h" | 36 #include "platform/weborigin/KURL.h" |
| 37 #include "platform/weborigin/Referrer.h" | 37 #include "platform/weborigin/Referrer.h" |
| 38 #include "platform/weborigin/SecurityOrigin.h" | 38 #include "platform/weborigin/SecurityOrigin.h" |
| 39 #include "public/platform/WebAddressSpace.h" | 39 #include "public/platform/WebAddressSpace.h" |
| 40 #include "public/platform/WebURLRequest.h" | 40 #include "public/platform/WebURLRequest.h" |
| 41 #include "wtf/OwnPtr.h" | 41 #include "wtf/OwnPtr.h" |
| 42 | 42 |
| 43 namespace blink { | 43 namespace blink { |
| 44 | 44 |
| 45 // Should be same with WebURLRequest::CachePolicy. |
| 46 // TODO(crbug.com/599364): Merge this with WebURLRequest::CachePolicy |
| 45 enum ResourceRequestCachePolicy { | 47 enum ResourceRequestCachePolicy { |
| 46 UseProtocolCachePolicy, // normal load | 48 UseProtocolCachePolicy, // normal load |
| 47 ReloadIgnoringCacheData, // reload | 49 ValidatingCacheData, // reload |
| 50 BypassingCache, // end-to-end reload |
| 48 ReturnCacheDataElseLoad, // back/forward or encoding change - allow stale da
ta | 51 ReturnCacheDataElseLoad, // back/forward or encoding change - allow stale da
ta |
| 49 ReturnCacheDataDontLoad, // results of a post - allow stale data and only us
e cache | 52 ReturnCacheDataDontLoad, // results of a post - allow stale data and only us
e cache |
| 50 ReloadBypassingCache, // end-to-end reload | |
| 51 }; | 53 }; |
| 52 | 54 |
| 53 enum ResourceRequestBlockedReason { | 55 enum ResourceRequestBlockedReason { |
| 54 ResourceRequestBlockedReasonCSP, | 56 ResourceRequestBlockedReasonCSP, |
| 55 ResourceRequestBlockedReasonMixedContent, | 57 ResourceRequestBlockedReasonMixedContent, |
| 56 ResourceRequestBlockedReasonOrigin, | 58 ResourceRequestBlockedReasonOrigin, |
| 57 ResourceRequestBlockedReasonInspector, | 59 ResourceRequestBlockedReasonInspector, |
| 58 ResourceRequestBlockedReasonOther, | 60 ResourceRequestBlockedReasonOther, |
| 59 ResourceRequestBlockedReasonNone | 61 ResourceRequestBlockedReasonNone |
| 60 }; | 62 }; |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 bool m_checkForBrowserSideNavigation; | 338 bool m_checkForBrowserSideNavigation; |
| 337 double m_uiStartTime; | 339 double m_uiStartTime; |
| 338 bool m_isExternalRequest; | 340 bool m_isExternalRequest; |
| 339 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; | 341 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; |
| 340 bool m_followedRedirect; | 342 bool m_followedRedirect; |
| 341 }; | 343 }; |
| 342 | 344 |
| 343 } // namespace blink | 345 } // namespace blink |
| 344 | 346 |
| 345 #endif // ResourceRequest_h | 347 #endif // ResourceRequest_h |
| OLD | NEW |