| OLD | NEW |
| 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 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 @class CRWJSInjectionReceiver; | 38 @class CRWJSInjectionReceiver; |
| 39 @protocol CRWNativeContent; | 39 @protocol CRWNativeContent; |
| 40 @protocol CRWNativeContentProvider; | 40 @protocol CRWNativeContentProvider; |
| 41 @protocol CRWSwipeRecognizerProvider; | 41 @protocol CRWSwipeRecognizerProvider; |
| 42 @protocol CRWWebControllerObserver; | 42 @protocol CRWWebControllerObserver; |
| 43 @class CRWWebViewContentView; | 43 @class CRWWebViewContentView; |
| 44 @protocol CRWWebViewProxy; | 44 @protocol CRWWebViewProxy; |
| 45 class GURL; | 45 class GURL; |
| 46 | 46 |
| 47 namespace base { | |
| 48 class Value; | |
| 49 } | |
| 50 | |
| 51 namespace web { | 47 namespace web { |
| 52 class BrowserState; | |
| 53 struct Referrer; | |
| 54 class WebState; | 48 class WebState; |
| 55 class WebInterstitialImpl; | |
| 56 class WebStateImpl; | 49 class WebStateImpl; |
| 57 } | 50 } |
| 58 | 51 |
| 59 // 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 |
| 60 // view, or native content in a view provided by a NativeContentProvider. | 53 // view, or native content in a view provided by a NativeContentProvider. |
| 61 // CRWWebController also transparently evicts and restores the internal web | 54 // CRWWebController also transparently evicts and restores the internal web |
| 62 // 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 |
| 63 // web view. | 56 // web view. |
| 64 // This is an abstract class which must not be instantiated directly. | 57 // This is an abstract class which must not be instantiated directly. |
| 65 // 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. |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 | 298 |
| 306 // Acts on a single message from the JS object, parsed from JSON into a | 299 // Acts on a single message from the JS object, parsed from JSON into a |
| 307 // DictionaryValue. Returns NO if the format for the message was invalid. | 300 // DictionaryValue. Returns NO if the format for the message was invalid. |
| 308 - (BOOL)respondToMessage:(base::DictionaryValue*)crwMessage | 301 - (BOOL)respondToMessage:(base::DictionaryValue*)crwMessage |
| 309 userIsInteracting:(BOOL)userIsInteracting | 302 userIsInteracting:(BOOL)userIsInteracting |
| 310 originURL:(const GURL&)originURL; | 303 originURL:(const GURL&)originURL; |
| 311 | 304 |
| 312 @end | 305 @end |
| 313 | 306 |
| 314 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_ | 307 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_ |
| OLD | NEW |