15d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Copyright 2014 The Chromium Authors. All rights reserved.
25d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
35d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// found in the LICENSE file.
45d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
55d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#ifndef CONTENT_COMMON_FRAME_MESSAGES_ENUMS_H_
65d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#define CONTENT_COMMON_FRAME_MESSAGES_ENUMS_H_
75d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
8116680a4aac90f2aa7413d9095a592090648e557Ben Murdoch#include "content/common/accessibility_mode_enums.h"
95d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
105d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)struct FrameMsg_Navigate_Type {
115d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) public:
125d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)  enum Value {
135d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    // Reload the page.
145d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    RELOAD,
155d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
165d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    // Reload the page, ignoring any cache entries.
175d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    RELOAD_IGNORING_CACHE,
185d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
195d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    // Reload the page using the original request URL.
205d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    RELOAD_ORIGINAL_REQUEST_URL,
215d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
225d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    // The navigation is the result of session restore and should honor the
235d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    // page's cache policy while restoring form state. This is set to true if
245d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    // restoring a tab/session from the previous session and the previous
255d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    // session did not crash. If this is not set and the page was restored then
265d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    // the page's cache policy is ignored and we load from the cache.
275d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    RESTORE,
285d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
295d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    // Like RESTORE, except that the navigation contains POST data.
305d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    RESTORE_WITH_POST,
315d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
325d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    // Navigation type not categorized by the other types.
335d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    NORMAL,
345d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
355d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    // Last guard value, so we can use it for validity checks.
365d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)    NAVIGATE_TYPE_LAST = NORMAL,
375d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)  };
385d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)};
395d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)
405d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#endif  // CONTENT_COMMON_FRAME_MESSAGES_ENUMS_H_
41