1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef CHROME_BROWSER_UI_BROWSER_NAVIGATOR_H_
6 #define CHROME_BROWSER_UI_BROWSER_NAVIGATOR_H_
7 
8 class GURL;
9 
10 namespace content {
11 class BrowserContext;
12 }
13 
14 struct NavigateParams;
15 
16 // Navigates according to the configuration specified in |params|.
17 void Navigate(NavigateParams* params);
18 
19 // Returns true if the url is allowed to open in incognito window.
20 bool IsURLAllowedInIncognito(const GURL& url,
21                              content::BrowserContext* browser_context);
22 
23 // Allows browsertests to open OS settings in a tab. Real users can only open
24 // settings in a system app.
25 void SetAllowOsSettingsInTabForTesting(bool is_allowed);
26 
27 #endif  // CHROME_BROWSER_UI_BROWSER_NAVIGATOR_H_
28