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_SESSION_REMOTING_CLIENT_SESSION_DELEGATE_H_ |
| 6 #define REMOTING_CLIENT_IOS_SESSION_REMOTING_CLIENT_SESSION_DELEGATE_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "base/memory/weak_ptr.h" |
| 10 #include "remoting/client/chromoting_session.h" |
| 11 #include "remoting/protocol/connection_to_host.h" |
| 12 |
| 13 namespace remoting { |
| 14 |
| 15 class ChromotingClientRuntime; |
| 16 |
| 17 class RemotingClientSessonDelegate : public ChromotingSession::Delegate { |
| 18 public: |
| 19 RemotingClientSessonDelegate(); |
| 20 ~RemotingClientSessonDelegate() override; |
| 21 |
| 22 // ChromotingSession::Delegate implementation |
| 23 |
| 24 void OnConnectionState(protocol::ConnectionToHost::State state, |
| 25 protocol::ErrorCode error) override; |
| 26 void CommitPairingCredentials(const std::string& host, |
| 27 const std::string& id, |
| 28 const std::string& secret) override; |
| 29 void FetchThirdPartyToken(const std::string& token_url, |
| 30 const std::string& client_id, |
| 31 const std::string& scope) override; |
| 32 void SetCapabilities(const std::string& capabilities) override; |
| 33 void HandleExtensionMessage(const std::string& type, |
| 34 const std::string& message) override; |
| 35 |
| 36 base::WeakPtr<RemotingClientSessonDelegate> GetWeakPtr(); |
| 37 |
| 38 private: |
| 39 ChromotingClientRuntime* runtime_; |
| 40 id client_; |
| 41 |
| 42 base::WeakPtrFactory<RemotingClientSessonDelegate> weak_factory_; |
| 43 |
| 44 DISALLOW_COPY_AND_ASSIGN(RemotingClientSessonDelegate); |
| 45 } |
| 46 |
| 47 } // namespace remoting |
| 48 |
| 49 #endif // REMOTING_CLIENT_IOS_SESSION_REMOTING_CLIENT_SESSION_DELEGATE_H_ |
OLD | NEW |