clang/win/asan: Remove /fallback and enable warnings-as-errors.
[chromium-blink-merge.git] / ios / web / public / web_state / js / crw_js_injection_receiver.h
blobf8fdfc5835e83ade4f5393258035ff038292e045
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
3 // found in the LICENSE file.
5 #ifndef IOS_WEB_PUBLIC_WEB_STATE_JS_CRW_JS_INJECTION_RECEIVER_H_
6 #define IOS_WEB_PUBLIC_WEB_STATE_JS_CRW_JS_INJECTION_RECEIVER_H_
8 #import <UIKit/UIKit.h>
10 #import "ios/web/public/web_state/js/crw_js_injection_evaluator.h"
12 @class CRWJSInjectionManager;
14 // CRWJSInjectionReceiver injects JavaScript into a web view.
15 @interface CRWJSInjectionReceiver : NSObject<CRWJSInjectionEvaluator>
17 // Init with JavaScript evaluator.
18 - (id)initWithEvaluator:(id<CRWJSInjectionEvaluator>)evaluator;
20 // Returns an instance of |jsInjectionManagerClass|. Instances of the classes
21 // it depends on are created if needed.
22 - (CRWJSInjectionManager*)instanceOfClass:(Class)jsInjectionManagerClass;
24 @end
26 @interface CRWJSInjectionReceiver (Testing)
27 // Returns a dictionary of instantiated managers keyed by class.
28 - (NSDictionary*)managers;
29 @end
31 #endif // IOS_WEB_PUBLIC_WEB_STATE_JS_CRW_JS_INJECTION_RECEIVER_H_