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

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

Issue 12518027: Protocol / client plugin changes to support interactively asking for a PIN (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 9 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_CLIENT_USER_INTERFACE_H_ 5 #ifndef REMOTING_CLIENT_CLIENT_USER_INTERFACE_H_
6 #define REMOTING_CLIENT_CLIENT_USER_INTERFACE_H_ 6 #define REMOTING_CLIENT_CLIENT_USER_INTERFACE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "remoting/protocol/connection_to_host.h" 9 #include "remoting/protocol/connection_to_host.h"
10 10
11 namespace remoting { 11 namespace remoting {
12 12
13 namespace protocol { 13 namespace protocol {
14 class ClipboardStub; 14 class ClipboardStub;
15 class CursorShapeStub; 15 class CursorShapeStub;
16 class PinFetcherFactory;
16 } // namespace protocol 17 } // namespace protocol
17 18
18 // ClientUserInterface is an interface that must be implemented by 19 // ClientUserInterface is an interface that must be implemented by
19 // applications embedding the Chromoting client, to provide client's user 20 // applications embedding the Chromoting client, to provide client's user
20 // interface. 21 // interface.
21 // 22 //
22 // TODO(sergeyu): Cleanup this interface, see crbug.com/138108 . 23 // TODO(sergeyu): Cleanup this interface, see crbug.com/138108 .
23 class ClientUserInterface { 24 class ClientUserInterface {
24 public: 25 public:
25 virtual ~ClientUserInterface() {} 26 virtual ~ClientUserInterface() {}
26 27
27 // Record the update the state of the connection, updating the UI as needed. 28 // Record the update the state of the connection, updating the UI as needed.
28 virtual void OnConnectionState(protocol::ConnectionToHost::State state, 29 virtual void OnConnectionState(protocol::ConnectionToHost::State state,
29 protocol::ErrorCode error) = 0; 30 protocol::ErrorCode error) = 0;
30 virtual void OnConnectionReady(bool ready) = 0; 31 virtual void OnConnectionReady(bool ready) = 0;
31 32
32 // Get the view's ClipboardStub implementation. 33 // Get the view's ClipboardStub implementation.
33 virtual protocol::ClipboardStub* GetClipboardStub() = 0; 34 virtual protocol::ClipboardStub* GetClipboardStub() = 0;
34 35
35 // Get the view's CursorShapeStub implementation. 36 // Get the view's CursorShapeStub implementation.
36 virtual protocol::CursorShapeStub* GetCursorShapeStub() = 0; 37 virtual protocol::CursorShapeStub* GetCursorShapeStub() = 0;
38
39 // Get the view's PinFetcherFactory implementation.
40 virtual protocol::PinFetcherFactory* GetPinFetcherFactory() = 0;
37 }; 41 };
38 42
39 } // namespace remoting 43 } // namespace remoting
40 44
41 #endif // REMOTING_CLIENT_CLIENT_USER_INTERFACE_H_ 45 #endif // REMOTING_CLIENT_CLIENT_USER_INTERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698