| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_PARAMS_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_NAVIGATOR_PARAMS_H_ |
| 6 #define CHROME_BROWSER_UI_BROWSER_NAVIGATOR_PARAMS_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_NAVIGATOR_PARAMS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 NavigateParams(Profile* profile, | 65 NavigateParams(Profile* profile, |
| 66 const GURL& a_url, | 66 const GURL& a_url, |
| 67 ui::PageTransition a_transition); | 67 ui::PageTransition a_transition); |
| 68 NavigateParams(const NavigateParams& other); | 68 NavigateParams(const NavigateParams& other); |
| 69 ~NavigateParams(); | 69 ~NavigateParams(); |
| 70 | 70 |
| 71 // The URL/referrer to be loaded. Ignored if |target_contents| is non-NULL. | 71 // The URL/referrer to be loaded. Ignored if |target_contents| is non-NULL. |
| 72 GURL url; | 72 GURL url; |
| 73 content::Referrer referrer; | 73 content::Referrer referrer; |
| 74 | 74 |
| 75 // The frame name to be used for the main frame. |
| 76 std::string frame_name; |
| 77 |
| 75 // The browser-global ID of the frame to navigate, or -1 for the main frame. | 78 // The browser-global ID of the frame to navigate, or -1 for the main frame. |
| 76 int frame_tree_node_id; | 79 int frame_tree_node_id; |
| 77 | 80 |
| 78 // Any redirect URLs that occurred for this navigation before |url|. | 81 // Any redirect URLs that occurred for this navigation before |url|. |
| 79 // Usually empty. | 82 // Usually empty. |
| 80 std::vector<GURL> redirect_chain; | 83 std::vector<GURL> redirect_chain; |
| 81 | 84 |
| 82 // Indicates whether this navigation will be sent using POST. | 85 // Indicates whether this navigation will be sent using POST. |
| 83 bool uses_post; | 86 bool uses_post; |
| 84 | 87 |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 NavigateParams(); | 244 NavigateParams(); |
| 242 }; | 245 }; |
| 243 | 246 |
| 244 // Copies fields from |params| struct to |nav_params| struct. | 247 // Copies fields from |params| struct to |nav_params| struct. |
| 245 void FillNavigateParamsFromOpenURLParams(chrome::NavigateParams* nav_params, | 248 void FillNavigateParamsFromOpenURLParams(chrome::NavigateParams* nav_params, |
| 246 const content::OpenURLParams& params); | 249 const content::OpenURLParams& params); |
| 247 | 250 |
| 248 } // namespace chrome | 251 } // namespace chrome |
| 249 | 252 |
| 250 #endif // CHROME_BROWSER_UI_BROWSER_NAVIGATOR_PARAMS_H_ | 253 #endif // CHROME_BROWSER_UI_BROWSER_NAVIGATOR_PARAMS_H_ |
| OLD | NEW |