blob: 1c1ed64d8499290ab2ba8dd9abd479fbb7e248e5 [file] [log] [blame]
// Copyright (c) 2012 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.
#include <string>
#include "content/common/content_export.h"
#include "ui/base/page_transition_types.h"
namespace content {
// NavigationState is the portion of DocumentState that is affected by
// in-document navigation.
// TODO(simonjam): Move this to HistoryItem's ExtraData.
class CONTENT_EXPORT NavigationState {
virtual ~NavigationState();
// Contains the transition type that the browser specified when it
// initiated the load.
virtual ui::PageTransition GetTransitionType() = 0;
// True iff the frame's navigation was within the same page.
virtual bool WasWithinSamePage() = 0;
// True if this navigation was not initiated via WebFrame::LoadRequest.
virtual bool IsContentInitiated() = 0;
} // namespace content