| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "content/public/browser/global_request_id.h" | 11 #include "content/public/browser/global_request_id.h" |
| 12 #include "content/public/common/page_transition_types.h" | 12 #include "content/public/common/page_transition_types.h" |
| 13 #include "content/public/common/referrer.h" | 13 #include "content/public/common/referrer.h" |
| 14 #include "googleurl/src/gurl.h" | 14 #include "googleurl/src/gurl.h" |
| 15 #include "ui/gfx/rect.h" | 15 #include "ui/gfx/rect.h" |
| 16 #include "webkit/glue/window_open_disposition.h" | 16 #include "webkit/glue/window_open_disposition.h" |
| 17 | 17 |
| 18 class Browser; | 18 class Browser; |
| 19 class Profile; | 19 class Profile; |
| 20 class TabContentsWrapper; | 20 class TabContents; |
| 21 typedef TabContents TabContentsWrapper; |
| 21 | 22 |
| 22 namespace browser { | 23 namespace browser { |
| 23 | 24 |
| 24 // Parameters that tell Navigate() what to do. | 25 // Parameters that tell Navigate() what to do. |
| 25 // | 26 // |
| 26 // Some basic examples: | 27 // Some basic examples: |
| 27 // | 28 // |
| 28 // Simple Navigate to URL in current tab: | 29 // Simple Navigate to URL in current tab: |
| 29 // browser::NavigateParams params(browser, GURL("http://www.google.com/"), | 30 // browser::NavigateParams params(browser, GURL("http://www.google.com/"), |
| 30 // PageTransition::LINK); | 31 // PageTransition::LINK); |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 // If the given navigational URL is a Singleton, return the tab index for it. | 198 // If the given navigational URL is a Singleton, return the tab index for it. |
| 198 // Otherwise, returns -1. | 199 // Otherwise, returns -1. |
| 199 int GetIndexOfSingletonTab(NavigateParams* params); | 200 int GetIndexOfSingletonTab(NavigateParams* params); |
| 200 | 201 |
| 201 // Returns true if the url is allowed to open in incognito window. | 202 // Returns true if the url is allowed to open in incognito window. |
| 202 bool IsURLAllowedInIncognito(const GURL& url); | 203 bool IsURLAllowedInIncognito(const GURL& url); |
| 203 | 204 |
| 204 } // namespace browser | 205 } // namespace browser |
| 205 | 206 |
| 206 #endif // CHROME_BROWSER_UI_BROWSER_NAVIGATOR_H_ | 207 #endif // CHROME_BROWSER_UI_BROWSER_NAVIGATOR_H_ |
| OLD | NEW |