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

Side by Side Diff: ios/web/public/web_state/js/crw_js_injection_manager.h

Issue 2645603002: [ObjC ARC] Converts components/translate/ios/browser:browser to ARC. (Closed)
Patch Set: autorelease is not too good 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 | « ios/chrome/browser/ui/settings/translate_collection_view_controller.mm ('k') | no next file » | 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_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
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_
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/settings/translate_collection_view_controller.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698