blob: 3dff06b08cf911edf85808efd6363f5605a56185 [file] [log] [blame]
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_BROWSER_NAVIGATOR_H_
#define CHROME_BROWSER_UI_BROWSER_NAVIGATOR_H_
#include "base/memory/weak_ptr.h"
class GURL;
namespace content {
class NavigationHandle;
}
struct NavigateParams;
// Navigates according to the configuration specified in |params|.
// Returns the NavigationHandle* for the started navigation, which might be null
// if the navigation couldn't be started.
base::WeakPtr<content::NavigationHandle> Navigate(NavigateParams* params);
// Returns true if the url is allowed to open in incognito window.
bool IsURLAllowedInIncognito(const GURL& url);
#endif // CHROME_BROWSER_UI_BROWSER_NAVIGATOR_H_