| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef REMOTING_CLIENT_IOS_FACADE_IOS_CLIENT_RUNTIME_DELEGATE_H_ | |
| 6 #define REMOTING_CLIENT_IOS_FACADE_IOS_CLIENT_RUNTIME_DELEGATE_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "base/memory/weak_ptr.h" | |
| 10 #include "remoting/client/chromoting_client_runtime.h" | |
| 11 | |
| 12 namespace remoting { | |
| 13 | |
| 14 class IosClientRuntimeDelegate : public ChromotingClientRuntime::Delegate { | |
| 15 public: | |
| 16 IosClientRuntimeDelegate(); | |
| 17 ~IosClientRuntimeDelegate() override; | |
| 18 | |
| 19 // remoting::ChromotingClientRuntime::Delegate overrides. | |
| 20 void RuntimeWillShutdown() override; | |
| 21 void RuntimeDidShutdown() override; | |
| 22 void RequestAuthTokenForLogger() override; | |
| 23 | |
| 24 base::WeakPtr<IosClientRuntimeDelegate> GetWeakPtr(); | |
| 25 | |
| 26 private: | |
| 27 ChromotingClientRuntime* runtime_; | |
| 28 | |
| 29 base::WeakPtrFactory<IosClientRuntimeDelegate> weak_factory_; | |
| 30 | |
| 31 DISALLOW_COPY_AND_ASSIGN(IosClientRuntimeDelegate); | |
| 32 }; | |
| 33 | |
| 34 } // namespace remoting | |
| 35 | |
| 36 #endif // REMOTING_CLIENT_IOS_FACADE_CLIENT_RUNTIME_DELEGATE_H_ | |
| OLD | NEW |