Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(310)

Side by Side Diff: Source/platform/network/ResourceRequest.h

Issue 309693002: Add a value for end-to-end reloads in Cache policy (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressed Przemek's comments Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/loader/FrameLoader.cpp ('k') | public/platform/WebURLRequest.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/loader/FrameLoader.cpp ('k') | public/platform/WebURLRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698