Chromium Code Reviews| Index: content/public/browser/reload_type.h |
| diff --git a/content/public/browser/reload_type.h b/content/public/browser/reload_type.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..bbd9970f319a40d2ce7bee8e77e81bfbde1bbede |
| --- /dev/null |
| +++ b/content/public/browser/reload_type.h |
| @@ -0,0 +1,24 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_PUBLIC_BROWSER_RELOAD_TYPE_H_ |
| +#define CONTENT_PUBLIC_BROWSER_RELOAD_TYPE_H_ |
| + |
| +namespace content { |
| + |
| +// Note: NO_RELOAD is used in general, but behaviors depend on context. |
|
Charlie Reis
2016/09/09 05:41:05
There's no NO_RELOAD type below. Did you mean NON
Takashi Toyoshima
2016/09/09 07:31:30
Done.
|
| +// If it is used for tab restore, or history navigation, it loads preferring |
|
Charlie Reis
2016/09/09 05:41:05
Can you clarify this sentence? I don't know what
Takashi Toyoshima
2016/09/09 07:31:30
Done.
|
| +// cache (which may be stale). |
| +enum class ReloadType { |
| + NONE, // Normal load, restore, or history navigation. |
| + NORMAL, // Normal (cache-validating) reload. |
| + MAIN_RESOURCE, // Reload validating only the main resource. |
| + BYPASSING_CACHE, // Reload bypassing the cache (shift-reload). |
| + ORIGINAL_REQUEST_URL, // Reload using the original request URL. |
| + DISABLE_LOFI_MODE // Reload with Lo-Fi mode disabled. |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_PUBLIC_BROWSER_RELOAD_TYPE_H_ |