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

Side by Side Diff: net/base/load_flags_list.h

Issue 12310075: Cache failover to LOAD_PREFERRING_CACHE if network response suggests offline. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed vestigial reference to new content flag. Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | net/http/http_cache_transaction.h » ('j') | net/http/http_cache_transaction.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This is the list of load flags and their values. For the enum values, 5 // This is the list of load flags and their values. For the enum values,
6 // include the file "net/base/load_flags.h". 6 // include the file "net/base/load_flags.h".
7 // 7 //
8 // Here we define the values using a macro LOAD_FLAG, so it can be 8 // Here we define the values using a macro LOAD_FLAG, so it can be
9 // expanded differently in some places (for example, to automatically 9 // expanded differently in some places (for example, to automatically
10 // map a load flag value to its symbolic name). 10 // map a load flag value to its symbolic name).
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 LOAD_FLAG(IGNORE_LIMITS, 1 << 24) 107 LOAD_FLAG(IGNORE_LIMITS, 1 << 24)
108 108
109 // Suppress login prompts for this request. Cached credentials or 109 // Suppress login prompts for this request. Cached credentials or
110 // default credentials may still be used for authentication. 110 // default credentials may still be used for authentication.
111 LOAD_FLAG(DO_NOT_PROMPT_FOR_LOGIN, 1 << 25) 111 LOAD_FLAG(DO_NOT_PROMPT_FOR_LOGIN, 1 << 25)
112 112
113 // Indicates that the operation is somewhat likely to be due to an 113 // Indicates that the operation is somewhat likely to be due to an
114 // explicit user action. This can be used as a hint to treat the 114 // explicit user action. This can be used as a hint to treat the
115 // request with higher priority. 115 // request with higher priority.
116 LOAD_FLAG(MAYBE_USER_GESTURE, 1 << 26) 116 LOAD_FLAG(MAYBE_USER_GESTURE, 1 << 26)
117
118 // Indicate that if the request fails at the network level in a way that
119 // indicates the source is unreachable, the request should fail over
120 // to as if LOAD_PREFERRING_CACHE had been set.
121 LOAD_FLAG(CACHE_RETURN_IF_OFFLINE, 1 << 27)
rvargas (doing something else) 2013/03/05 02:58:19 It would be nice if this were beside the other cac
rvargas (doing something else) 2013/03/05 02:58:19 FROM_CACHE_IF_OFFLINE?
Randy Smith (Not in Mondays) 2013/03/05 23:16:14 Agreed. I don't see a way around the problem, tho
Randy Smith (Not in Mondays) 2013/03/05 23:16:14 Done.
OLDNEW
« no previous file with comments | « no previous file | net/http/http_cache_transaction.h » ('j') | net/http/http_cache_transaction.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698