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

Side by Side Diff: remoting/client/ios/bridge/client_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_HOST_PROXY_H_
6 #define REMOTING_CLIENT_IOS_BRIDGE_HOST_PROXY_H_
7
8 #include <memory>
9 #include <string>
10 #include <objc/objc.h>
11
12 #include "base/memory/weak_ptr.h"
13 #include "remoting/protocol/connection_to_host.h"
14 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h"
15
16 #if defined(__OBJC__)
17 @class ClientProxyDelegateWrapper;
18 #else // __OBJC__
19 class ClientProxyDelegateWrapper;
20 #endif // __OBJC__
21
22 namespace remoting {
23
24 // class AudioConsumer;
25
26 namespace protocol {
27 class CursorShapeInfo;
28 } // namespace protocol
29
30 // Proxies incoming common Chromoting protocol (HOST) to the UI Application
31 // (CLIENT). The HOST will have a Weak reference to call member functions on
32 // the UI Thread.
33 class ClientProxy : public base::SupportsWeakPtr<ClientProxy> {
34 public:
35 ClientProxy(ClientProxyDelegateWrapper* wrapper);
36
37 // Notifies the user of the current connection status.
38 void ReportConnectionStatus(protocol::ConnectionToHost::State state,
39 protocol::ErrorCode error);
40
41 // Display a dialog box asking the user to enter a PIN.
42 void DisplayAuthenticationPrompt(bool pairing_supported);
43
44 // Saves new pairing credentials to permanent storage. An empty string
45 // represents the unknown value, do not use the NULL value.
46 void CommitPairingCredentials(const std::string& host_id,
47 const std::string& pair_id,
48 const std::string& pair_secret);
49
50 // Delivers the latest image buffer for the canvas.
51 void RedrawCanvas(webrtc::DesktopFrame* buffer);
52
53 // Updates cursor.
54 void UpdateCursorShape(const protocol::CursorShapeInfo& cursor_shape);
55
56 private:
57 // Pointer to the UI application which implements the ClientProxyDelegate.
58 // (id) is similar to a (void*) |delegate_| is set from accepting a
59 // strongly typed @interface which wraps the @protocol ClientProxyDelegate.
60 // see comments for host_proxy_delegate_wrapper.h
61 id delegate_;
62
63 DISALLOW_COPY_AND_ASSIGN(ClientProxy);
64 };
65
66 } // namespace remoting
67
68 #endif // REMOTING_CLIENT_IOS_BRIDGE_HOST_PROXY_H_
OLDNEW
« no previous file with comments | « remoting/client/ios/bridge/client_instance_unittest.mm ('k') | remoting/client/ios/bridge/client_proxy.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698