blob: 0144a5af02396cdba0c59acc4e24ec67fb546c91 [file] [log] [blame]
// Copyright (c) 2013 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 "content/public/common/page_transition_types.h"
#include "content/public/common/page_transition_types.h"
#include "content/public/common/referrer.h"
#include "url/gurl.h"
namespace navigation_interception {
class NavigationParams {
NavigationParams(const GURL& url,
const content::Referrer& referrer,
bool has_user_gesture,
bool is_post,
content::PageTransition page_transition_type,
bool is_redirect);
NavigationParams(const NavigationParams& other);
void operator=(const NavigationParams& rhs);
const GURL& url() const { return url_; }
GURL& url() { return url_; }
const content::Referrer& referrer() const { return referrer_; }
bool has_user_gesture() const { return has_user_gesture_; }
bool is_post() const { return is_post_; }
content::PageTransition transition_type() const { return transition_type_; }
bool is_redirect() const { return is_redirect_; }
void Assign(const NavigationParams& other);
GURL url_;
content::Referrer referrer_;
bool has_user_gesture_;
bool is_post_;
content::PageTransition transition_type_;
bool is_redirect_;
} // namespace navigation_interception