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

Side by Side Diff: third_party/WebKit/public/platform/WebURLRequest.h

Issue 2811623002: Fetch API: Add Request#cache attribute (Closed)
Patch Set: Created 3 years, 8 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
OLDNEW
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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 kFetchRequestModeNavigate 114 kFetchRequestModeNavigate
115 }; 115 };
116 116
117 enum FetchCredentialsMode { 117 enum FetchCredentialsMode {
118 kFetchCredentialsModeOmit, 118 kFetchCredentialsModeOmit,
119 kFetchCredentialsModeSameOrigin, 119 kFetchCredentialsModeSameOrigin,
120 kFetchCredentialsModeInclude, 120 kFetchCredentialsModeInclude,
121 kFetchCredentialsModePassword 121 kFetchCredentialsModePassword
122 }; 122 };
123 123
124 enum FetchRequestCache {
falken 2017/04/11 05:53:59 I'm feeling FetchRequestCacheMode is clearer. Ther
yhirano 2017/04/11 06:26:51 +1
yiyix 2017/04/11 10:00:06 Done.
125 kFetchRequestCacheDefault,
126 kFetchRequestCacheNoStore,
127 kFetchRequestCacheReload,
128 kFetchRequestCacheNoCache,
129 kFetchRequestCacheForceCache,
130 kFetchRequestCacheOnlyIfCached
131 };
132
124 enum FetchRedirectMode { 133 enum FetchRedirectMode {
125 kFetchRedirectModeFollow, 134 kFetchRedirectModeFollow,
126 kFetchRedirectModeError, 135 kFetchRedirectModeError,
127 kFetchRedirectModeManual 136 kFetchRedirectModeManual
128 }; 137 };
129 138
130 // Used to report performance metrics timed from the UI action that 139 // Used to report performance metrics timed from the UI action that
131 // triggered them (as opposed to navigation start time used in the 140 // triggered them (as opposed to navigation start time used in the
132 // Navigation Timing API). 141 // Navigation Timing API).
133 enum InputToLoadPerfMetricReportPolicy { 142 enum InputToLoadPerfMetricReportPolicy {
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 // instance it contains. 374 // instance it contains.
366 std::unique_ptr<ResourceRequestContainer> owned_resource_request_; 375 std::unique_ptr<ResourceRequestContainer> owned_resource_request_;
367 376
368 // Should never be null. 377 // Should never be null.
369 ResourceRequest* resource_request_; 378 ResourceRequest* resource_request_;
370 }; 379 };
371 380
372 } // namespace blink 381 } // namespace blink
373 382
374 #endif 383 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698