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

Side by Side Diff: remoting/client/ios/bridge/host_proxy.h

Issue 2829853003: Remove crufty bridge code from old CRD iOS app. (Closed)
Patch Set: Fix remoting/display proto import issue. 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
(Empty)
1 // Copyright 2016 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_BRIDGE_CLIENT_PROXY_H_
6 #define REMOTING_CLIENT_IOS_BRIDGE_CLIENT_PROXY_H_
7
8 #import <Foundation/Foundation.h>
9 #import <UIKit/UIKit.h>
10
11 #include <memory>
12
13 #import "remoting/client/ios/bridge/client_proxy_delegate_wrapper.h"
14
15 #include "base/memory/ref_counted.h"
16 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h"
17
18 namespace remoting {
19 class ClientInstance;
20 class ClientProxy;
21 } // namespace remoting
22
23 // HostProxy is one channel of a bridge from the UI Application (CLIENT) and the
24 // common Chromoting protocol (HOST). HostProxy proxies message from the UI
25 // application to the host. The reverse channel, ClientProxy, is owned by the
26 // HostProxy to control deconstruction order, but is shared with the
27 // ClientInstance to perform work.
28
29 @interface HostProxy : NSObject {
30 @private
31 // Host to Client channel.
32 std::unique_ptr<remoting::ClientProxy> _hostToClientChannel;
33 // Client to Host channel, must be released before |_hostToClientChannel|.
34 scoped_refptr<remoting::ClientInstance> _clientToHostChannel;
35 // Connection state.
36 BOOL _isConnected;
37 }
38
39 // TRUE when a connection has been established successfully.
40 - (BOOL)isConnected;
41
42 // Forwards credentials from CLIENT and to HOST and begins establishing a
43 // connection.
44 - (void)connectToHost:(NSString*)username
45 authToken:(NSString*)token
46 jabberId:(NSString*)jid
47 hostId:(NSString*)hostId
48 publicKey:(NSString*)hostPublicKey
49 delegate:(id<ClientProxyDelegate>)delegate;
50
51 // Report from CLIENT with the user's PIN.
52 - (void)authenticationResponse:(NSString*)pin createPairing:(BOOL)createPairing;
53
54 // CLIENT initiated disconnection.
55 - (void)disconnectFromHost;
56
57 // Report from CLIENT of mouse input.
58 - (void)mouseAction:(const webrtc::DesktopVector&)position
59 wheelDelta:(const webrtc::DesktopVector&)wheelDelta
60 whichButton:(NSInteger)buttonPressed
61 buttonDown:(BOOL)buttonIsDown;
62
63 // Report from CLIENT of keyboard input.
64 - (void)keyboardAction:(NSInteger)keyCode keyDown:(BOOL)keyIsDown;
65
66 @end
67
68 #endif // REMOTING_CLIENT_IOS_BRIDGE_CLIENT_PROXY_H_
OLDNEW
« no previous file with comments | « remoting/client/ios/bridge/frame_consumer_bridge_unittest.cc ('k') | remoting/client/ios/bridge/host_proxy.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698