| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 #if !defined(__has_feature) || !__has_feature(objc_arc) | 5 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 6 #error "This file requires ARC support." | 6 #error "This file requires ARC support." |
| 7 #endif | 7 #endif |
| 8 | 8 |
| 9 #include "remoting/client/ios/facade/ios_client_runtime_delegate.h" | 9 #include "remoting/ios/facade/ios_client_runtime_delegate.h" |
| 10 | 10 |
| 11 #import "base/mac/bind_objc_block.h" | 11 #import "base/mac/bind_objc_block.h" |
| 12 #import "remoting/client/ios/facade/remoting_authentication.h" | 12 #import "remoting/ios/facade/remoting_authentication.h" |
| 13 #import "remoting/client/ios/facade/remoting_service.h" | 13 #import "remoting/ios/facade/remoting_service.h" |
| 14 | 14 |
| 15 #include "base/bind.h" | 15 #include "base/bind.h" |
| 16 #include "base/logging.h" | 16 #include "base/logging.h" |
| 17 #include "base/macros.h" | 17 #include "base/macros.h" |
| 18 #include "base/memory/ptr_util.h" | 18 #include "base/memory/ptr_util.h" |
| 19 #include "base/memory/weak_ptr.h" | 19 #include "base/memory/weak_ptr.h" |
| 20 | 20 |
| 21 namespace remoting { | 21 namespace remoting { |
| 22 | 22 |
| 23 IosClientRuntimeDelegate::IosClientRuntimeDelegate() : weak_factory_(this) { | 23 IosClientRuntimeDelegate::IosClientRuntimeDelegate() : weak_factory_(this) { |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 } | 62 } |
| 63 })]; | 63 })]; |
| 64 } | 64 } |
| 65 } | 65 } |
| 66 | 66 |
| 67 base::WeakPtr<IosClientRuntimeDelegate> IosClientRuntimeDelegate::GetWeakPtr() { | 67 base::WeakPtr<IosClientRuntimeDelegate> IosClientRuntimeDelegate::GetWeakPtr() { |
| 68 return weak_factory_.GetWeakPtr(); | 68 return weak_factory_.GetWeakPtr(); |
| 69 } | 69 } |
| 70 | 70 |
| 71 } // namespace remoting | 71 } // namespace remoting |
| OLD | NEW |