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 #ifndef IOS_WEB_WEB_STATE_BLOCKED_POPUP_INFO_H_ | 5 #ifndef IOS_WEB_WEB_STATE_BLOCKED_POPUP_INFO_H_ |
6 #define IOS_WEB_WEB_STATE_BLOCKED_POPUP_INFO_H_ | 6 #define IOS_WEB_WEB_STATE_BLOCKED_POPUP_INFO_H_ |
7 | 7 |
8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
9 | 9 |
10 #include "base/ios/block_types.h" | 10 #import "base/ios/block_types.h" |
11 #include "base/mac/scoped_nsobject.h" | 11 #import "base/mac/scoped_nsobject.h" |
12 #include "ios/web/public/referrer.h" | 12 #include "ios/web/public/referrer.h" |
13 #include "url/gurl.h" | 13 #include "url/gurl.h" |
14 | 14 |
15 namespace web { | 15 namespace web { |
16 | 16 |
17 // Contain all information related to a blocked popup. | 17 // Contain all information related to a blocked popup. |
18 // TODO(eugenebut): rename to BlockedPopup as it's not an info object anymore. | 18 // TODO(eugenebut): rename to BlockedPopup as it's not an info object anymore. |
19 class BlockedPopupInfo { | 19 class BlockedPopupInfo { |
20 public: | 20 public: |
21 BlockedPopupInfo(const GURL& url, | 21 BlockedPopupInfo(const GURL& url, |
(...skipping 16 matching lines...) Expand all Loading... |
38 private: | 38 private: |
39 GURL url_; | 39 GURL url_; |
40 Referrer referrer_; | 40 Referrer referrer_; |
41 base::scoped_nsobject<NSString> window_name_; | 41 base::scoped_nsobject<NSString> window_name_; |
42 ProceduralBlock show_popup_handler_; | 42 ProceduralBlock show_popup_handler_; |
43 }; | 43 }; |
44 | 44 |
45 } // namespace web | 45 } // namespace web |
46 | 46 |
47 #endif // IOS_WEB_WEB_STATE_BLOCKED_POPUP_INFO_H_ | 47 #endif // IOS_WEB_WEB_STATE_BLOCKED_POPUP_INFO_H_ |
OLD | NEW |