Chromium Code Reviews| 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_PUBLIC_WEB_STATE_JS_CRW_JS_INJECTION_MANAGER_H_ | 5 #ifndef IOS_WEB_PUBLIC_WEB_STATE_JS_CRW_JS_INJECTION_MANAGER_H_ |
| 6 #define IOS_WEB_PUBLIC_WEB_STATE_JS_CRW_JS_INJECTION_MANAGER_H_ | 6 #define IOS_WEB_PUBLIC_WEB_STATE_JS_CRW_JS_INJECTION_MANAGER_H_ |
| 7 | 7 |
| 8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 9 | 9 |
| 10 #import "ios/web/public/web_state/js/crw_js_injection_evaluator.h" | 10 #import "ios/web/public/web_state/js/crw_js_injection_evaluator.h" |
| 11 | 11 #import "ios/web/public/web_state/js/crw_js_injection_receiver.h" |
| 12 @class CRWJSInjectionReceiver; | |
| 13 | 12 |
|
noyau (Ping after 24h)
2017/01/19 12:33:52
Why change the @class to an import? Nothing else c
stkhapugin
2017/01/19 13:53:50
Done
| |
| 14 // This class defines the abstract interface for managing JavaScript | 13 // This class defines the abstract interface for managing JavaScript |
| 15 // Injection into a UIWebView. | 14 // Injection into a UIWebView. |
| 16 @interface CRWJSInjectionManager : NSObject | 15 @interface CRWJSInjectionManager : NSObject |
| 17 | 16 |
| 18 // Designated initializer. Initializes the object with the |receiver|. | 17 // Designated initializer. Initializes the object with the |receiver|. |
| 19 - (id)initWithReceiver:(CRWJSInjectionReceiver*)receiver; | 18 - (id)initWithReceiver:(CRWJSInjectionReceiver*)receiver; |
| 20 | 19 |
| 21 // Returns whether JavaScript has already been injected into the receiver. | 20 // Returns whether JavaScript has already been injected into the receiver. |
| 22 - (BOOL)hasBeenInjected; | 21 - (BOOL)hasBeenInjected; |
| 23 | 22 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 55 // the receiver object. By default this returns the contents of the script file; | 54 // the receiver object. By default this returns the contents of the script file; |
| 56 // subclasses can override this if they need to get a static script from some | 55 // subclasses can override this if they need to get a static script from some |
| 57 // other source. | 56 // other source. |
| 58 // The return value from this method will be cached; if dynamic script content | 57 // The return value from this method will be cached; if dynamic script content |
| 59 // is necessary, override injectionContent instead. | 58 // is necessary, override injectionContent instead. |
| 60 - (NSString*)staticInjectionContent; | 59 - (NSString*)staticInjectionContent; |
| 61 | 60 |
| 62 @end | 61 @end |
| 63 | 62 |
| 64 #endif // IOS_WEB_PUBLIC_WEB_STATE_JS_CRW_JS_INJECTION_MANAGER_H_ | 63 #endif // IOS_WEB_PUBLIC_WEB_STATE_JS_CRW_JS_INJECTION_MANAGER_H_ |
| OLD | NEW |