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

Side by Side Diff: remoting/client/chromoting_session.h

Issue 2829673003: Adding a Client Runtime Delegate for iOS (Closed)
Patch Set: Moving removing_service change to gl related cl. 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_CHROMOTING_SESSION_H_ 5 #ifndef REMOTING_CLIENT_CHROMOTING_SESSION_H_
6 #define REMOTING_CLIENT_CHROMOTING_SESSION_H_ 6 #define REMOTING_CLIENT_CHROMOTING_SESSION_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // Pass on the set of negotiated capabilities to the client. 63 // Pass on the set of negotiated capabilities to the client.
64 virtual void SetCapabilities(const std::string& capabilities) = 0; 64 virtual void SetCapabilities(const std::string& capabilities) = 0;
65 65
66 // Passes on the deconstructed ExtensionMessage to the client to handle 66 // Passes on the deconstructed ExtensionMessage to the client to handle
67 // appropriately. 67 // appropriately.
68 virtual void HandleExtensionMessage(const std::string& type, 68 virtual void HandleExtensionMessage(const std::string& type,
69 const std::string& message) = 0; 69 const std::string& message) = 0;
70 }; 70 };
71 71
72 // Initiates a connection with the specified host. Call from the UI thread. 72 // Initiates a connection with the specified host. Call from the UI thread.
73 ChromotingSession(base::WeakPtr<ChromotingSession::Delegate> delegate, 73 ChromotingSession(
74 std::unique_ptr<protocol::CursorShapeStub> cursor_stub, 74 base::WeakPtr<ChromotingSession::Delegate> delegate,
75 std::unique_ptr<protocol::VideoRenderer> video_renderer, 75 std::unique_ptr<protocol::CursorShapeStub> cursor_stub,
76 base::WeakPtr<protocol::AudioStub> audio_player, 76 std::unique_ptr<protocol::VideoRenderer> video_renderer,
77 const ConnectToHostInfo& info, 77 base::WeakPtr<protocol::AudioStub> audio_player,
78 protocol::ClientAuthenticationConfig& client_auth_config); 78 const ConnectToHostInfo& info,
79 const protocol::ClientAuthenticationConfig& client_auth_config);
79 80
80 ~ChromotingSession() override; 81 ~ChromotingSession() override;
81 82
82 // Starts the connection. Can be called on any thread. 83 // Starts the connection. Can be called on any thread.
83 void Connect(); 84 void Connect();
84 85
85 // Terminates the current connection (if it hasn't already failed) and cleans 86 // Terminates the current connection (if it hasn't already failed) and cleans
86 // up. The instance will no longer be valid after calling this function. 87 // up. The instance will no longer be valid after calling this function.
87 // Must be called before destruction. 88 // Must be called before destruction.
88 void Disconnect(); 89 void Disconnect();
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 216
216 base::WeakPtr<ChromotingSession> weak_ptr_; 217 base::WeakPtr<ChromotingSession> weak_ptr_;
217 base::WeakPtrFactory<ChromotingSession> weak_factory_; 218 base::WeakPtrFactory<ChromotingSession> weak_factory_;
218 219
219 DISALLOW_COPY_AND_ASSIGN(ChromotingSession); 220 DISALLOW_COPY_AND_ASSIGN(ChromotingSession);
220 }; 221 };
221 222
222 } // namespace remoting 223 } // namespace remoting
223 224
224 #endif // REMOTING_CLIENT_CHROMOTING_SESSION_H_ 225 #endif // REMOTING_CLIENT_CHROMOTING_SESSION_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/client/chromoting_session.cc » ('j') | remoting/client/ios/facade/ios_client_runtime_delegate.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698