| 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 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 // |tabstrip_add_types|. | 92 // |tabstrip_add_types|. |
| 93 WindowOpenDisposition disposition; | 93 WindowOpenDisposition disposition; |
| 94 | 94 |
| 95 // The transition type of the navigation. Default is PageTransition::LINK | 95 // The transition type of the navigation. Default is PageTransition::LINK |
| 96 // when target_contents is specified in the constructor. | 96 // when target_contents is specified in the constructor. |
| 97 content::PageTransition transition; | 97 content::PageTransition transition; |
| 98 | 98 |
| 99 // Whether this navigation was initiated by the renderer process. | 99 // Whether this navigation was initiated by the renderer process. |
| 100 bool is_renderer_initiated; | 100 bool is_renderer_initiated; |
| 101 | 101 |
| 102 // If we're navigating a frame that has an opener, this will be set to the |
| 103 // opener's browsing instance frame id. This lets us preserve opener chains |
| 104 // across processes. -1 means no opener. |
| 105 int64 opener_browsing_instance_frame_id; |
| 106 |
| 102 // The index the caller would like the tab to be positioned at in the | 107 // The index the caller would like the tab to be positioned at in the |
| 103 // TabStrip. The actual index will be determined by the TabHandler in | 108 // TabStrip. The actual index will be determined by the TabHandler in |
| 104 // accordance with |add_types|. Defaults to -1 (allows the TabHandler to | 109 // accordance with |add_types|. Defaults to -1 (allows the TabHandler to |
| 105 // decide). | 110 // decide). |
| 106 int tabstrip_index; | 111 int tabstrip_index; |
| 107 | 112 |
| 108 // A bitmask of values defined in TabStripModel::AddTabTypes. Helps | 113 // A bitmask of values defined in TabStripModel::AddTabTypes. Helps |
| 109 // determine where to insert a new tab and whether or not it should be | 114 // determine where to insert a new tab and whether or not it should be |
| 110 // selected, among other properties. Default is ADD_ACTIVE. | 115 // selected, among other properties. Default is ADD_ACTIVE. |
| 111 int tabstrip_add_types; | 116 int tabstrip_add_types; |
| (...skipping 85 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. | 202 // If the given navigational URL is a Singleton, return the tab index for it. |
| 198 // Otherwise, returns -1. | 203 // Otherwise, returns -1. |
| 199 int GetIndexOfSingletonTab(NavigateParams* params); | 204 int GetIndexOfSingletonTab(NavigateParams* params); |
| 200 | 205 |
| 201 // Returns true if the url is allowed to open in incognito window. | 206 // Returns true if the url is allowed to open in incognito window. |
| 202 bool IsURLAllowedInIncognito(const GURL& url); | 207 bool IsURLAllowedInIncognito(const GURL& url); |
| 203 | 208 |
| 204 } // namespace browser | 209 } // namespace browser |
| 205 | 210 |
| 206 #endif // CHROME_BROWSER_UI_BROWSER_NAVIGATOR_H_ | 211 #endif // CHROME_BROWSER_UI_BROWSER_NAVIGATOR_H_ |
| OLD | NEW |