Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Side by Side Diff: chrome/browser/ui/browser_navigator_params.h

Issue 2206963002: Plumb the frame name through the popup blocker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_navigator.cc ('k') | chrome/test/data/popup_blocker/check-framename.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698