| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 class ResourceRequest; | 41 class ResourceRequest; |
| 42 class WebHTTPBody; | 42 class WebHTTPBody; |
| 43 class WebHTTPHeaderVisitor; | 43 class WebHTTPHeaderVisitor; |
| 44 class WebSecurityOrigin; | 44 class WebSecurityOrigin; |
| 45 class WebString; | 45 class WebString; |
| 46 class WebURL; | 46 class WebURL; |
| 47 class WebURLRequestPrivate; | 47 class WebURLRequestPrivate; |
| 48 | 48 |
| 49 class WebURLRequest { | 49 class WebURLRequest { |
| 50 public: | 50 public: |
| 51 // Should be same with ResourceRequestCachePolicy. |
| 52 // TODO(crbug.com/599364): Merge this with ResourceRequestCachePolicy. |
| 51 enum CachePolicy { | 53 enum CachePolicy { |
| 52 UseProtocolCachePolicy, // normal load | 54 UseProtocolCachePolicy, // normal load |
| 53 ReloadIgnoringCacheData, // reload | 55 ValidatingCacheData, // reload |
| 56 BypassingCache, // end-to-end reload |
| 54 ReturnCacheDataElseLoad, // back/forward or encoding change - allow stal
e data | 57 ReturnCacheDataElseLoad, // back/forward or encoding change - allow stal
e data |
| 55 ReturnCacheDataDontLoad, // results of a post - allow stale data and onl
y use cache | 58 ReturnCacheDataDontLoad, // results of a post - allow stale data and onl
y use cache |
| 56 ReloadBypassingCache, // end-to-end reload | |
| 57 }; | 59 }; |
| 58 | 60 |
| 59 enum Priority { | 61 enum Priority { |
| 60 PriorityUnresolved = -1, | 62 PriorityUnresolved = -1, |
| 61 PriorityVeryLow, | 63 PriorityVeryLow, |
| 62 PriorityLow, | 64 PriorityLow, |
| 63 PriorityMedium, | 65 PriorityMedium, |
| 64 PriorityHigh, | 66 PriorityHigh, |
| 65 PriorityVeryHigh, | 67 PriorityVeryHigh, |
| 66 }; | 68 }; |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 protected: | 321 protected: |
| 320 BLINK_PLATFORM_EXPORT void assign(WebURLRequestPrivate*); | 322 BLINK_PLATFORM_EXPORT void assign(WebURLRequestPrivate*); |
| 321 | 323 |
| 322 private: | 324 private: |
| 323 WebURLRequestPrivate* m_private; | 325 WebURLRequestPrivate* m_private; |
| 324 }; | 326 }; |
| 325 | 327 |
| 326 } // namespace blink | 328 } // namespace blink |
| 327 | 329 |
| 328 #endif | 330 #endif |
| OLD | NEW |