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

Side by Side Diff: ios/web/web_state/js/crw_js_injection_receiver.mm

Issue 2396553002: [ARC] Converts part of ios/web/ui to ARC.
Patch Set: co Created 4 years, 2 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
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 #import "ios/web/public/web_state/js/crw_js_injection_receiver.h" 5 #import "ios/web/public/web_state/js/crw_js_injection_receiver.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #import "base/mac/scoped_nsobject.h" 8 #import "base/mac/scoped_nsobject.h"
9 #import "ios/web/public/web_state/js/crw_js_injection_evaluator.h" 9 #import "ios/web/public/web_state/js/crw_js_injection_evaluator.h"
10 #import "ios/web/public/web_state/js/crw_js_injection_manager.h" 10 #import "ios/web/public/web_state/js/crw_js_injection_manager.h"
11 11
12 #if !defined(__has_feature) || !__has_feature(objc_arc)
13 #error "This file requires ARC support."
14 #endif
15
12 @implementation CRWJSInjectionReceiver { 16 @implementation CRWJSInjectionReceiver {
13 // Used to evaluate JavaScripts. 17 // Used to evaluate JavaScripts.
14 id<CRWJSInjectionEvaluator> _evaluator; 18 __weak id<CRWJSInjectionEvaluator> _evaluator;
15 19
16 // Map from a CRWJSInjectionManager class to its instance created for this 20 // Map from a CRWJSInjectionManager class to its instance created for this
17 // receiver. 21 // receiver.
18 base::scoped_nsobject<NSMutableDictionary> _managers; 22 base::scoped_nsobject<NSMutableDictionary> _managers;
19 } 23 }
20 24
21 - (id)init { 25 - (id)init {
22 NOTREACHED(); 26 NOTREACHED();
23 return [super init]; 27 return [super init];
24 } 28 }
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 return manager; 67 return manager;
64 } 68 }
65 69
66 @end 70 @end
67 71
68 @implementation CRWJSInjectionReceiver (Testing) 72 @implementation CRWJSInjectionReceiver (Testing)
69 - (NSDictionary*)managers { 73 - (NSDictionary*)managers {
70 return _managers.get(); 74 return _managers.get();
71 } 75 }
72 @end 76 @end
OLDNEW
« no previous file with comments | « ios/web/web_state/js/crw_js_injection_manager.mm ('k') | ios/web/web_state/js/crw_js_plugin_placeholder_manager.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698