OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "ios/web/web_state/blocked_popup_info.h" | 5 #include "ios/web/web_state/blocked_popup_info.h" |
6 | 6 |
| 7 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 8 #error "This file requires ARC support." |
| 9 #endif |
| 10 |
7 namespace web { | 11 namespace web { |
8 | 12 |
9 BlockedPopupInfo::BlockedPopupInfo(const GURL& url, | 13 BlockedPopupInfo::BlockedPopupInfo(const GURL& url, |
10 const Referrer& referrer, | 14 const Referrer& referrer, |
11 NSString* window_name, | 15 NSString* window_name, |
12 ProceduralBlock show_popup_handler) | 16 ProceduralBlock show_popup_handler) |
13 : url_(url), | 17 : url_(url), |
14 referrer_(referrer), | 18 referrer_(referrer), |
15 window_name_([window_name copy]), | 19 window_name_([window_name copy]), |
16 show_popup_handler_([show_popup_handler copy]) { | 20 show_popup_handler_([show_popup_handler copy]) { |
(...skipping 13 matching lines...) Expand all Loading... |
30 } | 34 } |
31 | 35 |
32 void BlockedPopupInfo::operator=(const BlockedPopupInfo& blocked_popup_info) { | 36 void BlockedPopupInfo::operator=(const BlockedPopupInfo& blocked_popup_info) { |
33 url_ = blocked_popup_info.url_; | 37 url_ = blocked_popup_info.url_; |
34 referrer_ = blocked_popup_info.referrer_; | 38 referrer_ = blocked_popup_info.referrer_; |
35 window_name_.reset([blocked_popup_info.window_name_ copy]); | 39 window_name_.reset([blocked_popup_info.window_name_ copy]); |
36 show_popup_handler_ = [blocked_popup_info.show_popup_handler_ copy]; | 40 show_popup_handler_ = [blocked_popup_info.show_popup_handler_ copy]; |
37 } | 41 } |
38 | 42 |
39 } // namespace web | 43 } // namespace web |
OLD | NEW |