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_UI_CRW_WEB_CONTROLLER_PROTECTED_H_ | 5 #ifndef IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_PROTECTED_H_ |
6 #define IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_PROTECTED_H_ | 6 #define IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_PROTECTED_H_ |
7 | 7 |
8 #import "ios/web/web_state/ui/crw_web_controller.h" | 8 #import "ios/web/web_state/ui/crw_web_controller.h" |
9 | 9 |
10 #import <WebKit/WebKit.h> | 10 #import <WebKit/WebKit.h> |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 @property(nonatomic, readonly) NSString* currentReferrerString; | 73 @property(nonatomic, readonly) NSString* currentReferrerString; |
74 | 74 |
75 // A set of script managers whose scripts have been injected into the current | 75 // A set of script managers whose scripts have been injected into the current |
76 // page. | 76 // page. |
77 @property(nonatomic, readonly) NSMutableSet* injectedScriptManagers; | 77 @property(nonatomic, readonly) NSMutableSet* injectedScriptManagers; |
78 | 78 |
79 // Downloader for PassKit files. Lazy initialized. | 79 // Downloader for PassKit files. Lazy initialized. |
80 @property(nonatomic, readonly) CRWPassKitDownloader* passKitDownloader; | 80 @property(nonatomic, readonly) CRWPassKitDownloader* passKitDownloader; |
81 | 81 |
82 // Designated initializer. | 82 // Designated initializer. |
83 - (instancetype)initWithWebState:(scoped_ptr<web::WebStateImpl>)webState; | 83 - (instancetype)initWithWebState:(std::unique_ptr<web::WebStateImpl>)webState; |
84 | 84 |
85 // Creates a web view if it's not yet created. | 85 // Creates a web view if it's not yet created. |
86 - (void)ensureWebViewCreated; | 86 - (void)ensureWebViewCreated; |
87 | 87 |
88 // Destroys the web view by setting webView property to nil. | 88 // Destroys the web view by setting webView property to nil. |
89 - (void)resetWebView; | 89 - (void)resetWebView; |
90 | 90 |
91 // Returns the current URL of the web view, and sets |trustLevel| accordingly | 91 // Returns the current URL of the web view, and sets |trustLevel| accordingly |
92 // based on the confidence in the verification. | 92 // based on the confidence in the verification. |
93 - (GURL)webURLWithTrustLevel:(web::URLVerificationTrustLevel*)trustLevel; | 93 - (GURL)webURLWithTrustLevel:(web::URLVerificationTrustLevel*)trustLevel; |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 | 363 |
364 // Resets pending external request information. | 364 // Resets pending external request information. |
365 - (void)resetExternalRequest; | 365 - (void)resetExternalRequest; |
366 | 366 |
367 // Converts MIME type string to WebViewDocumentType. | 367 // Converts MIME type string to WebViewDocumentType. |
368 - (web::WebViewDocumentType)documentTypeFromMIMEType:(NSString*)MIMEType; | 368 - (web::WebViewDocumentType)documentTypeFromMIMEType:(NSString*)MIMEType; |
369 | 369 |
370 @end | 370 @end |
371 | 371 |
372 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_PROTECTED_H_ | 372 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_PROTECTED_H_ |
OLD | NEW |