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

Unified Diff: remoting/ios/bridge/client_proxy_delegate_wrapper.mm

Issue 278863003: Chromoting iOS client (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/ios/bridge/client_proxy_delegate_wrapper.h ('k') | remoting/ios/bridge/client_proxy_unittest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/ios/bridge/client_proxy_delegate_wrapper.mm
diff --git a/remoting/ios/bridge/client_proxy_delegate_wrapper.mm b/remoting/ios/bridge/client_proxy_delegate_wrapper.mm
new file mode 100644
index 0000000000000000000000000000000000000000..af558dc8714b413c69e5bcbdc8b457e3be338f77
--- /dev/null
+++ b/remoting/ios/bridge/client_proxy_delegate_wrapper.mm
@@ -0,0 +1,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
« no previous file with comments | « remoting/ios/bridge/client_proxy_delegate_wrapper.h ('k') | remoting/ios/bridge/client_proxy_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698