| Index: ios/web/public/web_state/js/crw_js_injection_receiver.h
|
| diff --git a/ios/web/public/web_state/js/crw_js_injection_receiver.h b/ios/web/public/web_state/js/crw_js_injection_receiver.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f8fdfc5835e83ade4f5393258035ff038292e045
|
| --- /dev/null
|
| +++ b/ios/web/public/web_state/js/crw_js_injection_receiver.h
|
| @@ -0,0 +1,31 @@
|
| +// Copyright 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef IOS_WEB_PUBLIC_WEB_STATE_JS_CRW_JS_INJECTION_RECEIVER_H_
|
| +#define IOS_WEB_PUBLIC_WEB_STATE_JS_CRW_JS_INJECTION_RECEIVER_H_
|
| +
|
| +#import <UIKit/UIKit.h>
|
| +
|
| +#import "ios/web/public/web_state/js/crw_js_injection_evaluator.h"
|
| +
|
| +@class CRWJSInjectionManager;
|
| +
|
| +// CRWJSInjectionReceiver injects JavaScript into a web view.
|
| +@interface CRWJSInjectionReceiver : NSObject<CRWJSInjectionEvaluator>
|
| +
|
| +// Init with JavaScript evaluator.
|
| +- (id)initWithEvaluator:(id<CRWJSInjectionEvaluator>)evaluator;
|
| +
|
| +// Returns an instance of |jsInjectionManagerClass|. Instances of the classes
|
| +// it depends on are created if needed.
|
| +- (CRWJSInjectionManager*)instanceOfClass:(Class)jsInjectionManagerClass;
|
| +
|
| +@end
|
| +
|
| +@interface CRWJSInjectionReceiver (Testing)
|
| +// Returns a dictionary of instantiated managers keyed by class.
|
| +- (NSDictionary*)managers;
|
| +@end
|
| +
|
| +#endif // IOS_WEB_PUBLIC_WEB_STATE_JS_CRW_JS_INJECTION_RECEIVER_H_
|
|
|