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

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: updates 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 the session storage namespace map of |source_contents|
awong 2013/07/31 18:58:59 I think there's no map anymore...
216 // should be used to create |target_contents|.
217 bool should_copy_session_storage_namespace;
218
219 // Indicates whether |source_contents| should be set as opener when creating
220 // |target_contents|.
221 bool should_set_opener;
222
215 private: 223 private:
216 NavigateParams(); 224 NavigateParams();
217 }; 225 };
218 226
219 // Copies fields from |params| struct to |nav_params| struct. 227 // Copies fields from |params| struct to |nav_params| struct.
220 void FillNavigateParamsFromOpenURLParams(chrome::NavigateParams* nav_params, 228 void FillNavigateParamsFromOpenURLParams(chrome::NavigateParams* nav_params,
221 const content::OpenURLParams& params); 229 const content::OpenURLParams& params);
222 230
223 // Navigates according to the configuration specified in |params|. 231 // Navigates according to the configuration specified in |params|.
224 void Navigate(NavigateParams* params); 232 void Navigate(NavigateParams* params);
225 233
226 // Returns true if the url is allowed to open in incognito window. 234 // Returns true if the url is allowed to open in incognito window.
227 bool IsURLAllowedInIncognito(const GURL& url, 235 bool IsURLAllowedInIncognito(const GURL& url,
228 content::BrowserContext* browser_context); 236 content::BrowserContext* browser_context);
229 237
230 } // namespace chrome 238 } // namespace chrome
231 239
232 #endif // CHROME_BROWSER_UI_BROWSER_NAVIGATOR_H_ 240 #endif // CHROME_BROWSER_UI_BROWSER_NAVIGATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698