Chromium Code Reviews| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 142 // Two URLs with differing paths are different. | 142 // Two URLs with differing paths are different. |
| 143 RESPECT, | 143 RESPECT, |
| 144 // Ignore path when finding existing tab, navigate to new URL. | 144 // Ignore path when finding existing tab, navigate to new URL. |
| 145 IGNORE_AND_NAVIGATE, | 145 IGNORE_AND_NAVIGATE, |
| 146 // Ignore path when finding existing tab, don't navigate tab. | 146 // Ignore path when finding existing tab, don't navigate tab. |
| 147 IGNORE_AND_STAY_PUT, | 147 IGNORE_AND_STAY_PUT, |
| 148 }; | 148 }; |
| 149 // Default is RESPECT. | 149 // Default is RESPECT. |
| 150 PathBehavior path_behavior; | 150 PathBehavior path_behavior; |
| 151 | 151 |
| 152 // What to do with the ref component of the URL for singleton navigations. | |
| 153 enum RefBehavior { | |
| 154 // Two URLs with differing refs are same. | |
| 155 IGNORE_REF, | |
| 156 // Two URLs with differing refs are different. | |
| 157 RESPECT_REF, | |
| 158 }; | |
| 159 // Default is IGNORE. | |
| 160 RefBehavior ref_behavior; | |
|
Greg Billock
2011/08/23 23:38:48
Should this be called 'fragment'? I suppose in the
tbarzic
2011/08/24 00:02:58
hm.. fragment seem a bit better name, but I notice
| |
| 161 | |
| 152 // [in] Specifies a Browser object where the navigation could occur or the | 162 // [in] Specifies a Browser object where the navigation could occur or the |
| 153 // tab could be added. Navigate() is not obliged to use this Browser if | 163 // tab could be added. Navigate() is not obliged to use this Browser if |
| 154 // it is not compatible with the operation being performed. If NULL, | 164 // it is not compatible with the operation being performed. If NULL, |
| 155 // |profile| should be specified to find or create a matching Browser. | 165 // |profile| should be specified to find or create a matching Browser. |
| 156 // [out] Specifies the Browser object where the navigation occurred or the | 166 // [out] Specifies the Browser object where the navigation occurred or the |
| 157 // tab was added. Guaranteed non-NULL unless the disposition did not | 167 // tab was added. Guaranteed non-NULL unless the disposition did not |
| 158 // require a navigation, in which case this is set to NULL | 168 // require a navigation, in which case this is set to NULL |
| 159 // (SUPPRESS_OPEN, SAVE_TO_DISK, IGNORE_ACTION). | 169 // (SUPPRESS_OPEN, SAVE_TO_DISK, IGNORE_ACTION). |
| 160 // Note: If |show_window| is set to false and a new Browser is created by | 170 // Note: If |show_window| is set to false and a new Browser is created by |
| 161 // Navigate(), the caller is responsible for showing it so that its | 171 // Navigate(), the caller is responsible for showing it so that its |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 174 // Navigates according to the configuration specified in |params|. | 184 // Navigates according to the configuration specified in |params|. |
| 175 void Navigate(NavigateParams* params); | 185 void Navigate(NavigateParams* params); |
| 176 | 186 |
| 177 // If the given navigational URL is a Singleton, return the tab index for it. | 187 // If the given navigational URL is a Singleton, return the tab index for it. |
| 178 // Otherwise, returns -1. | 188 // Otherwise, returns -1. |
| 179 int GetIndexOfSingletonTab(NavigateParams* params); | 189 int GetIndexOfSingletonTab(NavigateParams* params); |
| 180 | 190 |
| 181 } // namespace browser | 191 } // namespace browser |
| 182 | 192 |
| 183 #endif // CHROME_BROWSER_UI_BROWSER_NAVIGATOR_H_ | 193 #endif // CHROME_BROWSER_UI_BROWSER_NAVIGATOR_H_ |
| OLD | NEW |