summaryrefslogtreecommitdiff
path: root/remoting/ios/bridge/client_proxy_delegate_wrapper.mm
blob: af558dc8714b413c69e5bcbdc8b457e3be338f77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#if !defined(__has_feature) || !__has_feature(objc_arc)
#error "This file requires ARC support."
#endif

#import "remoting/ios/bridge/client_proxy_delegate_wrapper.h"

@interface ClientProxyDelegateWrapper (Private)
- (id)initWithDelegate:(id<ClientProxyDelegate>)delegate;
@end

@implementation ClientProxyDelegateWrapper

@synthesize delegate = _delegate;

- (id)initWithDelegate:(id<ClientProxyDelegate>)delegate {
  self = [super init];
  if (self) {
    _delegate = delegate;
  }
  return self;
}

+ (id)wrapDelegate:(id<ClientProxyDelegate>)delegate {
  return [[ClientProxyDelegateWrapper alloc] initWithDelegate:delegate];
}

@end