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

Side by Side Diff: remoting/client/ios/session/remoting_client_session_delegate.h

Issue 2827163004: Updating session related code to integrate with client code. (Closed)
Patch Set: Merge branch 'master' into update_session_ms1 Created 3 years, 8 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 unified diff | Download patch
OLDNEW
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_SESSION_REMOTING_CLIENT_SESSION_DELEGATE_H_ 5 #ifndef REMOTING_CLIENT_IOS_SESSION_REMOTING_CLIENT_SESSION_DELEGATE_H_
6 #define REMOTING_CLIENT_IOS_SESSION_REMOTING_CLIENT_SESSION_DELEGATE_H_ 6 #define REMOTING_CLIENT_IOS_SESSION_REMOTING_CLIENT_SESSION_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_session.h" 10 #include "remoting/client/chromoting_session.h"
11 #include "remoting/protocol/connection_to_host.h" 11 #include "remoting/protocol/connection_to_host.h"
12 12
13 @class RemotingClient;
14
13 namespace remoting { 15 namespace remoting {
14 16
15 class ChromotingClientRuntime; 17 class ChromotingClientRuntime;
16 18
17 class RemotingClientSessonDelegate : public ChromotingSession::Delegate { 19 class RemotingClientSessonDelegate : public ChromotingSession::Delegate {
18 public: 20 public:
19 RemotingClientSessonDelegate(); 21 RemotingClientSessonDelegate(RemotingClient* client);
20 ~RemotingClientSessonDelegate() override; 22 ~RemotingClientSessonDelegate() override;
21 23
22 // ChromotingSession::Delegate implementation 24 // ChromotingSession::Delegate implementation
23 25
24 void OnConnectionState(protocol::ConnectionToHost::State state, 26 void OnConnectionState(protocol::ConnectionToHost::State state,
25 protocol::ErrorCode error) override; 27 protocol::ErrorCode error) override;
26 void CommitPairingCredentials(const std::string& host, 28 void CommitPairingCredentials(const std::string& host,
27 const std::string& id, 29 const std::string& id,
28 const std::string& secret) override; 30 const std::string& secret) override;
29 void FetchThirdPartyToken(const std::string& token_url, 31 void FetchThirdPartyToken(const std::string& token_url,
30 const std::string& client_id, 32 const std::string& client_id,
31 const std::string& scope) override; 33 const std::string& scope) override;
32 void SetCapabilities(const std::string& capabilities) override; 34 void SetCapabilities(const std::string& capabilities) override;
33 void HandleExtensionMessage(const std::string& type, 35 void HandleExtensionMessage(const std::string& type,
34 const std::string& message) override; 36 const std::string& message) override;
35 37
36 base::WeakPtr<RemotingClientSessonDelegate> GetWeakPtr(); 38 base::WeakPtr<RemotingClientSessonDelegate> GetWeakPtr();
37 39
38 private: 40 private:
39 ChromotingClientRuntime* runtime_; 41 ChromotingClientRuntime* runtime_;
40 id client_; 42 id client_;
41 43
42 base::WeakPtrFactory<RemotingClientSessonDelegate> weak_factory_; 44 base::WeakPtrFactory<RemotingClientSessonDelegate> weak_factory_;
43 45
44 DISALLOW_COPY_AND_ASSIGN(RemotingClientSessonDelegate); 46 DISALLOW_COPY_AND_ASSIGN(RemotingClientSessonDelegate);
45 } 47 };
46 48
47 } // namespace remoting 49 } // namespace remoting
48 50
49 #endif // REMOTING_CLIENT_IOS_SESSION_REMOTING_CLIENT_SESSION_DELEGATE_H_ 51 #endif // REMOTING_CLIENT_IOS_SESSION_REMOTING_CLIENT_SESSION_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698