| 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 #import "ios/web/web_state/blocked_popup_info.h" |
| 6 | 6 |
| 7 #if !defined(__has_feature) || !__has_feature(objc_arc) | 7 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 8 #error "This file requires ARC support." | 8 #error "This file requires ARC support." |
| 9 #endif | 9 #endif |
| 10 | 10 |
| 11 namespace web { | 11 namespace web { |
| 12 | 12 |
| 13 BlockedPopupInfo::BlockedPopupInfo(const GURL& url, | 13 BlockedPopupInfo::BlockedPopupInfo(const GURL& url, |
| 14 const Referrer& referrer, | 14 const Referrer& referrer, |
| 15 NSString* window_name, | 15 NSString* window_name, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 34 } | 34 } |
| 35 | 35 |
| 36 void BlockedPopupInfo::operator=(const BlockedPopupInfo& blocked_popup_info) { | 36 void BlockedPopupInfo::operator=(const BlockedPopupInfo& blocked_popup_info) { |
| 37 url_ = blocked_popup_info.url_; | 37 url_ = blocked_popup_info.url_; |
| 38 referrer_ = blocked_popup_info.referrer_; | 38 referrer_ = blocked_popup_info.referrer_; |
| 39 window_name_.reset([blocked_popup_info.window_name_ copy]); | 39 window_name_.reset([blocked_popup_info.window_name_ copy]); |
| 40 show_popup_handler_ = [blocked_popup_info.show_popup_handler_ copy]; | 40 show_popup_handler_ = [blocked_popup_info.show_popup_handler_ copy]; |
| 41 } | 41 } |
| 42 | 42 |
| 43 } // namespace web | 43 } // namespace web |
| OLD | NEW |