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

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

Issue 2648763002: CRWWebController no longer implements CRWRequestTrackerDelegate. (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « no previous file | ios/web/web_state/ui/crw_web_controller.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_ 5 #ifndef IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_
6 #define IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_ 6 #define IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_
7 7
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 9
10 #import "ios/web/net/crw_request_tracker_delegate.h" 10 #import "ios/web/net/crw_request_tracker_delegate.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 } 50 }
51 51
52 // Manages a view that can be used either for rendering web content in a web 52 // Manages a view that can be used either for rendering web content in a web
53 // view, or native content in a view provided by a NativeContentProvider. 53 // view, or native content in a view provided by a NativeContentProvider.
54 // CRWWebController also transparently evicts and restores the internal web 54 // CRWWebController also transparently evicts and restores the internal web
55 // view based on memory pressure, and manages access to interact with the 55 // view based on memory pressure, and manages access to interact with the
56 // web view. 56 // web view.
57 // This is an abstract class which must not be instantiated directly. 57 // This is an abstract class which must not be instantiated directly.
58 // TODO(stuartmorgan): Move all of the navigation APIs out of this class. 58 // TODO(stuartmorgan): Move all of the navigation APIs out of this class.
59 @interface CRWWebController : NSObject<CRWJSInjectionEvaluator, 59 @interface CRWWebController : NSObject<CRWJSInjectionEvaluator,
60 CRWRequestTrackerDelegate,
61 CRWTouchTrackingDelegate, 60 CRWTouchTrackingDelegate,
62 UIGestureRecognizerDelegate> 61 UIGestureRecognizerDelegate>
63 62
64 // Whether or not a UIWebView is allowed to exist in this CRWWebController. 63 // Whether or not a UIWebView is allowed to exist in this CRWWebController.
65 // Defaults to NO; this should be enabled before attempting to access the view. 64 // Defaults to NO; this should be enabled before attempting to access the view.
66 @property(nonatomic, assign) BOOL webUsageEnabled; 65 @property(nonatomic, assign) BOOL webUsageEnabled;
67 66
68 @property(nonatomic, assign) id<CRWWebDelegate> delegate; 67 @property(nonatomic, assign) id<CRWWebDelegate> delegate;
69 @property(nonatomic, weak) id<CRWWebUserInterfaceDelegate> UIDelegate; 68 @property(nonatomic, weak) id<CRWWebUserInterfaceDelegate> UIDelegate;
70 @property(nonatomic, assign) id<CRWNativeContentProvider> nativeProvider; 69 @property(nonatomic, assign) id<CRWNativeContentProvider> nativeProvider;
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 301
303 // Acts on a single message from the JS object, parsed from JSON into a 302 // Acts on a single message from the JS object, parsed from JSON into a
304 // DictionaryValue. Returns NO if the format for the message was invalid. 303 // DictionaryValue. Returns NO if the format for the message was invalid.
305 - (BOOL)respondToMessage:(base::DictionaryValue*)crwMessage 304 - (BOOL)respondToMessage:(base::DictionaryValue*)crwMessage
306 userIsInteracting:(BOOL)userIsInteracting 305 userIsInteracting:(BOOL)userIsInteracting
307 originURL:(const GURL&)originURL; 306 originURL:(const GURL&)originURL;
308 307
309 @end 308 @end
310 309
311 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_ 310 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | ios/web/web_state/ui/crw_web_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698