1 // Copyright (c) 2012 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_PUBLIC_RENDERER_NAVIGATION_STATE_H_
6 #define CONTENT_PUBLIC_RENDERER_NAVIGATION_STATE_H_
10 #include "content/common/content_export.h"
11 #include "ui/base/page_transition_types.h"
15 // NavigationState is the portion of DocumentState that is affected by
16 // in-document navigation.
17 // TODO(simonjam): Move this to HistoryItem's ExtraData.
18 class CONTENT_EXPORT NavigationState
{
20 virtual ~NavigationState();
22 // Contains the transition type that the browser specified when it
23 // initiated the load.
24 virtual ui::PageTransition
GetTransitionType() = 0;
26 // True iff the frame's navigation was within the same page.
27 virtual bool WasWithinSamePage() = 0;
29 // True if this navigation was not initiated via WebFrame::LoadRequest.
30 virtual bool IsContentInitiated() = 0;
33 } // namespace content
35 #endif // CONTENT_PUBLIC_RENDERER_NAVIGATION_STATE_H