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 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 // CURRENT_TAB " " " NEW_FOREGROUND_TAB | 118 // CURRENT_TAB " " " NEW_FOREGROUND_TAB |
119 // OFF_THE_RECORD target browser profile is incog. NEW_FOREGROUND_TAB | 119 // OFF_THE_RECORD target browser profile is incog. NEW_FOREGROUND_TAB |
120 // | 120 // |
121 // If disposition is NEW_BACKGROUND_TAB, TabStripModel::ADD_ACTIVE is | 121 // If disposition is NEW_BACKGROUND_TAB, TabStripModel::ADD_ACTIVE is |
122 // removed from |tabstrip_add_types| automatically. | 122 // removed from |tabstrip_add_types| automatically. |
123 // If disposition is one of NEW_WINDOW, NEW_POPUP, NEW_FOREGROUND_TAB or | 123 // If disposition is one of NEW_WINDOW, NEW_POPUP, NEW_FOREGROUND_TAB or |
124 // SINGLETON_TAB, then TabStripModel::ADD_ACTIVE is automatically added to | 124 // SINGLETON_TAB, then TabStripModel::ADD_ACTIVE is automatically added to |
125 // |tabstrip_add_types|. | 125 // |tabstrip_add_types|. |
126 WindowOpenDisposition disposition; | 126 WindowOpenDisposition disposition; |
127 | 127 |
| 128 // If disposittion is NEW_POPUP, then the new window will be of type |
| 129 // TYPE_TRUSTED_POPUP if |is_trusted| is true. Default is false. |
| 130 bool is_trusted; |
| 131 |
128 // The transition type of the navigation. Default is | 132 // The transition type of the navigation. Default is |
129 // content::PAGE_TRANSITION_LINK when target_contents is specified in the | 133 // content::PAGE_TRANSITION_LINK when target_contents is specified in the |
130 // constructor. | 134 // constructor. |
131 content::PageTransition transition; | 135 content::PageTransition transition; |
132 | 136 |
133 // Whether this navigation was initiated by the renderer process. Default is | 137 // Whether this navigation was initiated by the renderer process. Default is |
134 // false. | 138 // false. |
135 bool is_renderer_initiated; | 139 bool is_renderer_initiated; |
136 | 140 |
137 // The index the caller would like the tab to be positioned at in the | 141 // The index the caller would like the tab to be positioned at in the |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 // Navigates according to the configuration specified in |params|. | 246 // Navigates according to the configuration specified in |params|. |
243 void Navigate(NavigateParams* params); | 247 void Navigate(NavigateParams* params); |
244 | 248 |
245 // Returns true if the url is allowed to open in incognito window. | 249 // Returns true if the url is allowed to open in incognito window. |
246 bool IsURLAllowedInIncognito(const GURL& url, | 250 bool IsURLAllowedInIncognito(const GURL& url, |
247 content::BrowserContext* browser_context); | 251 content::BrowserContext* browser_context); |
248 | 252 |
249 } // namespace chrome | 253 } // namespace chrome |
250 | 254 |
251 #endif // CHROME_BROWSER_UI_BROWSER_NAVIGATOR_H_ | 255 #endif // CHROME_BROWSER_UI_BROWSER_NAVIGATOR_H_ |
OLD | NEW |