| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_PUBLIC_WEB_STATE_UI_CRW_WEB_DELEGATE_H_ | 5 #ifndef IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_DELEGATE_H_ |
| 6 #define IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_DELEGATE_H_ | 6 #define IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #import <UIKit/UIKit.h> | 9 #import <UIKit/UIKit.h> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/ios/block_types.h" | 12 #include "base/ios/block_types.h" |
| 13 #include "ios/web/public/favicon_url.h" | 13 #include "ios/web/public/favicon_url.h" |
| 14 #import "ios/web/public/navigation_manager.h" | 14 #import "ios/web/public/navigation_manager.h" |
| 15 #include "ios/web/public/ssl_status.h" | 15 #include "ios/web/public/ssl_status.h" |
| 16 #import "ios/web/public/web_state/ui/crw_native_content.h" | 16 #import "ios/web/public/web_state/ui/crw_native_content.h" |
| 17 #include "ios/web/public/web_state/web_state.h" | 17 #include "ios/web/public/web_state/web_state.h" |
| 18 #include "ui/base/page_transition_types.h" | 18 #include "ui/base/page_transition_types.h" |
| 19 | 19 |
| 20 class GURL; | 20 class GURL; |
| 21 @class CRWSessionEntry; | 21 @class CRWSessionEntry; |
| 22 @class CRWWebController; | 22 @class CRWWebController; |
| 23 | 23 |
| 24 namespace net { | |
| 25 class HttpResponseHeaders; | |
| 26 class SSLInfo; | |
| 27 class X509Certificate; | |
| 28 } | |
| 29 | |
| 30 namespace web { | 24 namespace web { |
| 31 class BlockedPopupInfo; | 25 class BlockedPopupInfo; |
| 32 struct Referrer; | 26 struct Referrer; |
| 33 } | 27 } |
| 34 | 28 |
| 35 // Methods implemented by the delegate of the CRWWebController. | 29 // Methods implemented by the delegate of the CRWWebController. |
| 36 @protocol CRWWebDelegate<NSObject> | 30 @protocol CRWWebDelegate<NSObject> |
| 37 | 31 |
| 38 // Called when the page wants to open a new window by DOM (e.g. with | 32 // Called when the page wants to open a new window by DOM (e.g. with |
| 39 // |window.open| JavaScript call or by clicking a link with |_blank| target) or | 33 // |window.open| JavaScript call or by clicking a link with |_blank| target) or |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 // Called when a PassKit file is downloaded. |data| should be the data from a | 203 // Called when a PassKit file is downloaded. |data| should be the data from a |
| 210 // PassKit file, but this is not guaranteed, and the delegate is responsible for | 204 // PassKit file, but this is not guaranteed, and the delegate is responsible for |
| 211 // error handling non PassKit data using -[PKPass initWithData:error:]. If the | 205 // error handling non PassKit data using -[PKPass initWithData:error:]. If the |
| 212 // download does not successfully complete, |data| will be nil. | 206 // download does not successfully complete, |data| will be nil. |
| 213 - (void)webController:(CRWWebController*)webController | 207 - (void)webController:(CRWWebController*)webController |
| 214 didLoadPassKitObject:(NSData*)data; | 208 didLoadPassKitObject:(NSData*)data; |
| 215 | 209 |
| 216 @end | 210 @end |
| 217 | 211 |
| 218 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_DELEGATE_H_ | 212 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_DELEGATE_H_ |
| OLD | NEW |