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 "chrome/browser/ui/host_desktop.h" | 10 #include "chrome/browser/ui/host_desktop.h" |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
205 content::GlobalRequestID transferred_global_request_id; | 205 content::GlobalRequestID transferred_global_request_id; |
206 | 206 |
207 // Refers to which desktop this navigation should occur on. May be passed | 207 // Refers to which desktop this navigation should occur on. May be passed |
208 // explicitly or inferred from an existing Browser instance. | 208 // explicitly or inferred from an existing Browser instance. |
209 chrome::HostDesktopType host_desktop_type; | 209 chrome::HostDesktopType host_desktop_type; |
210 | 210 |
211 // Indicates whether this navigation should replace the current | 211 // Indicates whether this navigation should replace the current |
212 // navigation entry. | 212 // navigation entry. |
213 bool should_replace_current_entry; | 213 bool should_replace_current_entry; |
214 | 214 |
215 // Indicates whether this navigation will be sent using POST. | |
216 bool uses_post; | |
Nico
2013/07/31 21:25:43
Don't we have the concept of "this navigation uses
Johnny(Jianning) Ding
2013/07/31 21:49:34
The logic is in NavigationController, right? See h
| |
217 | |
218 // The post data when the navigation uses POST. | |
219 std::string post_data; | |
220 | |
215 private: | 221 private: |
216 NavigateParams(); | 222 NavigateParams(); |
217 }; | 223 }; |
218 | 224 |
219 // Copies fields from |params| struct to |nav_params| struct. | 225 // Copies fields from |params| struct to |nav_params| struct. |
220 void FillNavigateParamsFromOpenURLParams(chrome::NavigateParams* nav_params, | 226 void FillNavigateParamsFromOpenURLParams(chrome::NavigateParams* nav_params, |
221 const content::OpenURLParams& params); | 227 const content::OpenURLParams& params); |
222 | 228 |
223 // Navigates according to the configuration specified in |params|. | 229 // Navigates according to the configuration specified in |params|. |
224 void Navigate(NavigateParams* params); | 230 void Navigate(NavigateParams* params); |
225 | 231 |
226 // Returns true if the url is allowed to open in incognito window. | 232 // Returns true if the url is allowed to open in incognito window. |
227 bool IsURLAllowedInIncognito(const GURL& url, | 233 bool IsURLAllowedInIncognito(const GURL& url, |
228 content::BrowserContext* browser_context); | 234 content::BrowserContext* browser_context); |
229 | 235 |
230 } // namespace chrome | 236 } // namespace chrome |
231 | 237 |
232 #endif // CHROME_BROWSER_UI_BROWSER_NAVIGATOR_H_ | 238 #endif // CHROME_BROWSER_UI_BROWSER_NAVIGATOR_H_ |
OLD | NEW |