OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/test/fakes/test_native_content.h" | 5 #import "ios/web/public/test/fakes/test_native_content.h" |
6 | 6 |
7 #import "base/mac/scoped_nsobject.h" | 7 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 8 #error "This file requires ARC support." |
| 9 #endif |
8 | 10 |
9 @implementation TestNativeContent { | 11 @implementation TestNativeContent { |
10 GURL _URL; | 12 GURL _URL; |
11 GURL _virtualURL; | 13 GURL _virtualURL; |
12 base::scoped_nsobject<UIView> _view; | 14 UIView* _view; |
13 } | 15 } |
14 - (instancetype)initWithURL:(const GURL&)URL | 16 - (instancetype)initWithURL:(const GURL&)URL |
15 virtualURL:(const GURL&)virtualURL { | 17 virtualURL:(const GURL&)virtualURL { |
16 self = [super init]; | 18 self = [super init]; |
17 if (self) { | 19 if (self) { |
18 _URL = URL; | 20 _URL = URL; |
19 _virtualURL = virtualURL; | 21 _virtualURL = virtualURL; |
20 } | 22 } |
21 return self; | 23 return self; |
22 } | 24 } |
(...skipping 24 matching lines...) Expand all Loading... |
47 - (void)handleLowMemory { | 49 - (void)handleLowMemory { |
48 } | 50 } |
49 | 51 |
50 - (BOOL)isViewAlive { | 52 - (BOOL)isViewAlive { |
51 return YES; | 53 return YES; |
52 } | 54 } |
53 | 55 |
54 - (void)reload { | 56 - (void)reload { |
55 } | 57 } |
56 @end | 58 @end |
OLD | NEW |