// 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 COMPONENTS_ARC_INTENT_HELPER_PAGE_TRANSITION_UTIL_H_
#define COMPONENTS_ARC_INTENT_HELPER_PAGE_TRANSITION_UTIL_H_

#include "ui/base/page_transition_types.h"

namespace arc {

// Returns true if ARC should ignore the navigation with the |page_transition|.
bool ShouldIgnoreNavigation(ui::PageTransition page_transition,
                            bool allow_form_submit,
                            bool allow_client_redirect);

// Removes |mask| bits from |page_transition|.
ui::PageTransition MaskOutPageTransition(ui::PageTransition page_transition,
                                         ui::PageTransition mask);

}  // namespace arc

#endif  // COMPONENTS_ARC_INTENT_HELPER_PAGE_TRANSITION_UTIL_H_
