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

Side by Side Diff: chrome/browser/ui/blocked_content/blocked_window_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_BLOCKED_CONTENT_BLOCKED_WINDOW_PARAMS_H_ 5 #ifndef CHROME_BROWSER_UI_BLOCKED_CONTENT_BLOCKED_WINDOW_PARAMS_H_
6 #define CHROME_BROWSER_UI_BLOCKED_CONTENT_BLOCKED_WINDOW_PARAMS_H_ 6 #define CHROME_BROWSER_UI_BLOCKED_CONTENT_BLOCKED_WINDOW_PARAMS_H_
7 7
8 #include "chrome/browser/ui/browser_navigator_params.h" 8 #include "chrome/browser/ui/browser_navigator_params.h"
9 #include "content/public/common/referrer.h" 9 #include "content/public/common/referrer.h"
10 #include "third_party/WebKit/public/web/WebWindowFeatures.h" 10 #include "third_party/WebKit/public/web/WebWindowFeatures.h"
11 #include "ui/base/window_open_disposition.h" 11 #include "ui/base/window_open_disposition.h"
12 #include "url/gurl.h" 12 #include "url/gurl.h"
13 13
14 namespace content { 14 namespace content {
15 class WebContents; 15 class WebContents;
16 } // namespace content 16 } // namespace content
17 17
18 class BlockedWindowParams { 18 class BlockedWindowParams {
19 public: 19 public:
20 BlockedWindowParams(const GURL& target_url, 20 BlockedWindowParams(const GURL& target_url,
21 const content::Referrer& referrer, 21 const content::Referrer& referrer,
22 const std::string& frame_name_,
22 WindowOpenDisposition disposition, 23 WindowOpenDisposition disposition,
23 const blink::WebWindowFeatures& features, 24 const blink::WebWindowFeatures& features,
24 bool user_gesture, 25 bool user_gesture,
25 bool opener_suppressed, 26 bool opener_suppressed,
26 int render_process_id, 27 int render_process_id,
27 int opener_render_frame_id); 28 int opener_render_frame_id);
28 BlockedWindowParams(const BlockedWindowParams& other); 29 BlockedWindowParams(const BlockedWindowParams& other);
30 ~BlockedWindowParams();
29 31
30 chrome::NavigateParams CreateNavigateParams( 32 chrome::NavigateParams CreateNavigateParams(
31 content::WebContents* web_contents) const; 33 content::WebContents* web_contents) const;
32 34
33 blink::WebWindowFeatures features() const { 35 blink::WebWindowFeatures features() const {
34 return features_; 36 return features_;
35 } 37 }
36 38
37 int opener_render_frame_id() const { 39 int opener_render_frame_id() const {
38 return opener_render_frame_id_; 40 return opener_render_frame_id_;
39 } 41 }
40 42
41 int render_process_id() const { 43 int render_process_id() const {
42 return render_process_id_; 44 return render_process_id_;
43 } 45 }
44 46
45 const GURL& target_url() const { 47 const GURL& target_url() const {
46 return target_url_; 48 return target_url_;
47 } 49 }
48 50
49 private: 51 private:
50 GURL target_url_; 52 GURL target_url_;
51 content::Referrer referrer_; 53 content::Referrer referrer_;
54 std::string frame_name_;
52 WindowOpenDisposition disposition_; 55 WindowOpenDisposition disposition_;
53 blink::WebWindowFeatures features_; 56 blink::WebWindowFeatures features_;
54 bool user_gesture_; 57 bool user_gesture_;
55 bool opener_suppressed_; 58 bool opener_suppressed_;
56 int render_process_id_; 59 int render_process_id_;
57 int opener_render_frame_id_; 60 int opener_render_frame_id_;
58 }; 61 };
59 62
60 #endif // CHROME_BROWSER_UI_BLOCKED_CONTENT_BLOCKED_WINDOW_PARAMS_H_ 63 #endif // CHROME_BROWSER_UI_BLOCKED_CONTENT_BLOCKED_WINDOW_PARAMS_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/ui/blocked_content/blocked_window_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698