Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: ios/web/web_state/ui/crw_web_controller+protected.h

Issue 1874903003: Reversed WebState <-> CRWWebController ownership. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Self review Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // Referrer for the current page; does not include the fragment. 74 // Referrer for the current page; does not include the fragment.
75 @property(nonatomic, readonly) NSString* currentReferrerString; 75 @property(nonatomic, readonly) NSString* currentReferrerString;
76 76
77 // A set of script managers whose scripts have been injected into the current 77 // A set of script managers whose scripts have been injected into the current
78 // page. 78 // page.
79 @property(nonatomic, readonly) NSMutableSet* injectedScriptManagers; 79 @property(nonatomic, readonly) NSMutableSet* injectedScriptManagers;
80 80
81 // Downloader for PassKit files. Lazy initialized. 81 // Downloader for PassKit files. Lazy initialized.
82 @property(nonatomic, readonly) CRWPassKitDownloader* passKitDownloader; 82 @property(nonatomic, readonly) CRWPassKitDownloader* passKitDownloader;
83 83
84 // Designated initializer. 84 // Designated initializer. Initializes web controller with unowned |webState|.
85 - (instancetype)initWithWebState:(std::unique_ptr<web::WebStateImpl>)webState; 85 - (instancetype)initWithWebState:(web::WebStateImpl*)webState;
86 86
87 // Creates a web view if it's not yet created. 87 // Creates a web view if it's not yet created.
88 - (void)ensureWebViewCreated; 88 - (void)ensureWebViewCreated;
89 89
90 // Destroys the web view by setting webView property to nil. 90 // Destroys the web view by setting webView property to nil.
91 - (void)resetWebView; 91 - (void)resetWebView;
92 92
93 // Returns the current URL of the web view, and sets |trustLevel| accordingly 93 // Returns the current URL of the web view, and sets |trustLevel| accordingly
94 // based on the confidence in the verification. 94 // based on the confidence in the verification.
95 - (GURL)webURLWithTrustLevel:(web::URLVerificationTrustLevel*)trustLevel; 95 - (GURL)webURLWithTrustLevel:(web::URLVerificationTrustLevel*)trustLevel;
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 365
366 // Resets pending external request information. 366 // Resets pending external request information.
367 - (void)resetExternalRequest; 367 - (void)resetExternalRequest;
368 368
369 // Converts MIME type string to WebViewDocumentType. 369 // Converts MIME type string to WebViewDocumentType.
370 - (web::WebViewDocumentType)documentTypeFromMIMEType:(NSString*)MIMEType; 370 - (web::WebViewDocumentType)documentTypeFromMIMEType:(NSString*)MIMEType;
371 371
372 @end 372 @end
373 373
374 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_PROTECTED_H_ 374 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_PROTECTED_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698