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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_BLOCKED_CONTENT_BLOCKED_WINDOW_PARAMS_H_
6 #define CHROME_BROWSER_UI_BLOCKED_CONTENT_BLOCKED_WINDOW_PARAMS_H_
8 #include "chrome/browser/ui/browser_navigator.h"
9 #include "content/public/common/referrer.h"
10 #include "third_party/WebKit/public/web/WebWindowFeatures.h"
11 #include "ui/base/window_open_disposition.h"
16 } // namespace content
18 class BlockedWindowParams {
20 BlockedWindowParams(const GURL& target_url,
21 const content::Referrer& referrer,
22 WindowOpenDisposition disposition,
23 const WebKit::WebWindowFeatures& features,
25 bool opener_suppressed,
26 int render_process_id,
29 chrome::NavigateParams CreateNavigateParams(
30 content::WebContents* web_contents) const;
32 WebKit::WebWindowFeatures features() const {
36 int opener_id() const {
40 int render_process_id() const {
41 return render_process_id_;
44 const GURL& target_url() const {
50 content::Referrer referrer_;
51 WindowOpenDisposition disposition_;
52 WebKit::WebWindowFeatures features_;
54 bool opener_suppressed_;
55 int render_process_id_;
59 #endif // CHROME_BROWSER_UI_BLOCKED_CONTENT_BLOCKED_WINDOW_PARAMS_H_