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

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

Issue 20924002: Try to restore window.opener when opening blocked popups (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update Created 7 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 | Annotate | Revision Log
OLDNEW
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
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 |source_contents| should be set as opener when creating
216 // |target_contents|.
217 bool should_set_opener;
218
215 private: 219 private:
216 NavigateParams(); 220 NavigateParams();
217 }; 221 };
218 222
219 // Copies fields from |params| struct to |nav_params| struct. 223 // Copies fields from |params| struct to |nav_params| struct.
220 void FillNavigateParamsFromOpenURLParams(chrome::NavigateParams* nav_params, 224 void FillNavigateParamsFromOpenURLParams(chrome::NavigateParams* nav_params,
221 const content::OpenURLParams& params); 225 const content::OpenURLParams& params);
222 226
223 // Navigates according to the configuration specified in |params|. 227 // Navigates according to the configuration specified in |params|.
224 void Navigate(NavigateParams* params); 228 void Navigate(NavigateParams* params);
225 229
226 // Returns true if the url is allowed to open in incognito window. 230 // Returns true if the url is allowed to open in incognito window.
227 bool IsURLAllowedInIncognito(const GURL& url, 231 bool IsURLAllowedInIncognito(const GURL& url,
228 content::BrowserContext* browser_context); 232 content::BrowserContext* browser_context);
229 233
230 } // namespace chrome 234 } // namespace chrome
231 235
232 #endif // CHROME_BROWSER_UI_BROWSER_NAVIGATOR_H_ 236 #endif // CHROME_BROWSER_UI_BROWSER_NAVIGATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698