blob: 29ecb777134762e48ae3431d349029e4dfd53716 [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 BrowserContext;
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,
content::BrowserContext* browser_context);
#endif // CHROME_BROWSER_UI_BROWSER_NAVIGATOR_H_