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