OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_BROWSER_NAVIGATOR_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_NAVIGATOR_H_ |
6 #define CHROME_BROWSER_UI_BROWSER_NAVIGATOR_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_NAVIGATOR_H_ |
7 | 7 |
8 // TODO(thestig) Forward declare this and do IWYU. | |
9 #include "chrome/browser/ui/browser_navigator_params.h" | |
10 | |
11 class GURL; | 8 class GURL; |
12 | 9 |
13 namespace content { | 10 namespace content { |
14 class BrowserContext; | 11 class BrowserContext; |
15 } | 12 } |
16 | 13 |
17 namespace chrome { | 14 namespace chrome { |
18 | 15 |
| 16 struct NavigateParams; |
| 17 |
19 // Navigates according to the configuration specified in |params|. | 18 // Navigates according to the configuration specified in |params|. |
20 void Navigate(NavigateParams* params); | 19 void Navigate(NavigateParams* params); |
21 | 20 |
22 // Returns true if the url is allowed to open in incognito window. | 21 // Returns true if the url is allowed to open in incognito window. |
23 bool IsURLAllowedInIncognito(const GURL& url, | 22 bool IsURLAllowedInIncognito(const GURL& url, |
24 content::BrowserContext* browser_context); | 23 content::BrowserContext* browser_context); |
25 | 24 |
26 } // namespace chrome | 25 } // namespace chrome |
27 | 26 |
28 #endif // CHROME_BROWSER_UI_BROWSER_NAVIGATOR_H_ | 27 #endif // CHROME_BROWSER_UI_BROWSER_NAVIGATOR_H_ |
OLD | NEW |