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

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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 // A set of script managers whose scripts have been injected into the current 100 // A set of script managers whose scripts have been injected into the current
101 // page. 101 // page.
102 @property(nonatomic, readonly) NSMutableSet* injectedScriptManagers; 102 @property(nonatomic, readonly) NSMutableSet* injectedScriptManagers;
103 103
104 // Downloader for PassKit files. Lazy initialized. 104 // Downloader for PassKit files. Lazy initialized.
105 @property(nonatomic, readonly) CRWPassKitDownloader* passKitDownloader; 105 @property(nonatomic, readonly) CRWPassKitDownloader* passKitDownloader;
106 106
107 - (CRWWebControllerPendingNavigationInfo*)pendingNavigationInfo; 107 - (CRWWebControllerPendingNavigationInfo*)pendingNavigationInfo;
108 108
109 // Designated initializer. 109 // Designated initializer. Initializes web controller with unowned |webState|.
kkhorimoto 2016/04/12 21:36:13 "Initializes a web controller owned by |webState|"
Eugene But (OOO till 7-30) 2016/04/13 02:51:26 Owner of WC should not be mentioned here (see my o
Eugene But (OOO till 7-30) 2016/04/13 13:57:57 Updated the comments according to Rohit's suggesti
110 - (instancetype)initWithWebState:(std::unique_ptr<web::WebStateImpl>)webState; 110 - (instancetype)initWithWebState:(web::WebStateImpl*)webState;
111 111
112 // Creates a web view if it's not yet created. 112 // Creates a web view if it's not yet created.
113 - (void)ensureWebViewCreated; 113 - (void)ensureWebViewCreated;
114 114
115 // Destroys the web view by setting webView property to nil. 115 // Destroys the web view by setting webView property to nil.
116 - (void)resetWebView; 116 - (void)resetWebView;
117 117
118 // Returns the current URL of the web view, and sets |trustLevel| accordingly 118 // Returns the current URL of the web view, and sets |trustLevel| accordingly
119 // based on the confidence in the verification. 119 // based on the confidence in the verification.
120 - (GURL)webURLWithTrustLevel:(web::URLVerificationTrustLevel*)trustLevel; 120 - (GURL)webURLWithTrustLevel:(web::URLVerificationTrustLevel*)trustLevel;
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 416
417 // Converts MIME type string to WebViewDocumentType. 417 // Converts MIME type string to WebViewDocumentType.
418 - (web::WebViewDocumentType)documentTypeFromMIMEType:(NSString*)MIMEType; 418 - (web::WebViewDocumentType)documentTypeFromMIMEType:(NSString*)MIMEType;
419 419
420 // Extracts Referer value from WKNavigationAction request header. 420 // Extracts Referer value from WKNavigationAction request header.
421 - (NSString*)refererFromNavigationAction:(WKNavigationAction*)action; 421 - (NSString*)refererFromNavigationAction:(WKNavigationAction*)action;
422 422
423 @end 423 @end
424 424
425 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_PROTECTED_H_ 425 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_PROTECTED_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698