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

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: Merged with origin/master 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 // navigation manager and treating that as authoritative. For now, this allows 130 // navigation manager and treating that as authoritative. For now, this allows
131 // sharing the flow that's currently in the superclass. 131 // sharing the flow that's currently in the superclass.
132 @property(nonatomic, readonly) GURL documentURL; 132 @property(nonatomic, readonly) GURL documentURL;
133 133
134 // YES if the user has interacted with the content area since the last URL 134 // YES if the user has interacted with the content area since the last URL
135 // change. 135 // change.
136 @property(nonatomic, readonly) BOOL interactionRegisteredSinceLastURLChange; 136 @property(nonatomic, readonly) BOOL interactionRegisteredSinceLastURLChange;
137 137
138 - (CRWWebControllerPendingNavigationInfo*)pendingNavigationInfo; 138 - (CRWWebControllerPendingNavigationInfo*)pendingNavigationInfo;
139 139
140 // Designated initializer. 140 // Designated initializer. Initializes web controller with |webState|. The
141 - (instancetype)initWithWebState:(std::unique_ptr<web::WebStateImpl>)webState; 141 // calling code must retain the ownership of |webState|.
142 - (instancetype)initWithWebState:(web::WebStateImpl*)webState;
142 143
143 // Creates a web view if it's not yet created. 144 // Creates a web view if it's not yet created.
144 - (void)ensureWebViewCreated; 145 - (void)ensureWebViewCreated;
145 146
146 // Destroys the web view by setting webView property to nil. 147 // Destroys the web view by setting webView property to nil.
147 - (void)resetWebView; 148 - (void)resetWebView;
148 149
149 // Sets _documentURL to newURL, and updates any relevant state information. 150 // Sets _documentURL to newURL, and updates any relevant state information.
150 - (void)setDocumentURL:(const GURL&)newURL; 151 - (void)setDocumentURL:(const GURL&)newURL;
151 152
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 503
503 // Converts MIME type string to WebViewDocumentType. 504 // Converts MIME type string to WebViewDocumentType.
504 - (web::WebViewDocumentType)documentTypeFromMIMEType:(NSString*)MIMEType; 505 - (web::WebViewDocumentType)documentTypeFromMIMEType:(NSString*)MIMEType;
505 506
506 // Extracts Referer value from WKNavigationAction request header. 507 // Extracts Referer value from WKNavigationAction request header.
507 - (NSString*)refererFromNavigationAction:(WKNavigationAction*)action; 508 - (NSString*)refererFromNavigationAction:(WKNavigationAction*)action;
508 509
509 @end 510 @end
510 511
511 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_PROTECTED_H_ 512 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_PROTECTED_H_
OLDNEW
« no previous file with comments | « ios/web/web_state/ui/crw_web_controller.mm ('k') | ios/web/web_state/ui/crw_web_controller_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698