[Instant] Default Search Provider change redirects to local NTP in some cases
[chromium-blink-merge.git] / content / common / frame_message_enums.h
bloba535113c2f2b8972fa8b56e32bf68833a67dbafe
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_COMMON_FRAME_MESSAGES_ENUMS_H_
6 #define CONTENT_COMMON_FRAME_MESSAGES_ENUMS_H_
8 #include "content/common/accessibility_mode_enums.h"
10 struct FrameMsg_Navigate_Type {
11 public:
12 enum Value {
13 // Reload the page.
14 RELOAD,
16 // Reload the page, ignoring any cache entries.
17 RELOAD_IGNORING_CACHE,
19 // Reload the page using the original request URL.
20 RELOAD_ORIGINAL_REQUEST_URL,
22 // The navigation is the result of session restore and should honor the
23 // page's cache policy while restoring form state. This is set to true if
24 // restoring a tab/session from the previous session and the previous
25 // session did not crash. If this is not set and the page was restored then
26 // the page's cache policy is ignored and we load from the cache.
27 RESTORE,
29 // Like RESTORE, except that the navigation contains POST data.
30 RESTORE_WITH_POST,
32 // Navigation type not categorized by the other types.
33 NORMAL,
35 // Last guard value, so we can use it for validity checks.
36 NAVIGATE_TYPE_LAST = NORMAL,
40 struct FrameMsg_UILoadMetricsReportType {
41 public:
42 enum Value {
43 // Do not report metrics for this load.
44 NO_REPORT,
46 // Report metrics for this load, that originated from clicking on a link.
47 REPORT_LINK,
49 // Report metrics for this load, that originated from an Android OS intent.
50 REPORT_INTENT,
52 REPORT_TYPE_LAST = REPORT_INTENT,
56 #endif // CONTENT_COMMON_FRAME_MESSAGES_ENUMS_H_