OLD | NEW |
| (Empty) |
1 // Copyright 2014 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. | |
4 | |
5 #if !defined(__has_feature) || !__has_feature(objc_arc) | |
6 #error "This file requires ARC support." | |
7 #endif | |
8 | |
9 #import "remoting/ios/bridge/client_proxy_delegate_wrapper.h" | |
10 | |
11 @interface ClientProxyDelegateWrapper (Private) | |
12 - (id)initWithDelegate:(id<ClientProxyDelegate>)delegate; | |
13 @end | |
14 | |
15 @implementation ClientProxyDelegateWrapper | |
16 | |
17 @synthesize delegate = _delegate; | |
18 | |
19 - (id)initWithDelegate:(id<ClientProxyDelegate>)delegate { | |
20 self = [super init]; | |
21 if (self) { | |
22 _delegate = delegate; | |
23 } | |
24 return self; | |
25 } | |
26 | |
27 + (id)wrapDelegate:(id<ClientProxyDelegate>)delegate { | |
28 return [[ClientProxyDelegateWrapper alloc] initWithDelegate:delegate]; | |
29 } | |
30 | |
31 @end | |
OLD | NEW |