Add Download.ShowDangerousDownloadConfirmationPrompt for Windows/CrOS
[chromium-blink-merge.git] / remoting / protocol / host_stub.h
blobcf9fa0b95c3fbaf95a79db5e2d0f95bd8617453c
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
3 // found in the LICENSE file.
5 // Interface of a host that receives commands from a Chromoting client.
6 //
7 // This interface handles control messages defined in control.proto.
9 #ifndef REMOTING_PROTOCOL_HOST_STUB_H_
10 #define REMOTING_PROTOCOL_HOST_STUB_H_
12 #include "base/basictypes.h"
14 namespace remoting {
15 namespace protocol {
17 class AudioControl;
18 class Capabilities;
19 class ClientResolution;
20 class ExtensionMessage;
21 class PairingResponse;
22 class PairingRequest;
23 class VideoControl;
25 class HostStub {
26 public:
27 HostStub() {}
29 // Notification of the client dimensions and pixel density.
30 // This may be used to resize the host display to match the client area.
31 virtual void NotifyClientResolution(const ClientResolution& resolution) = 0;
33 // Configures video update properties. Currently only pausing & resuming the
34 // video channel is supported.
35 virtual void ControlVideo(const VideoControl& video_control) = 0;
37 // Configures audio properties. Currently only pausing & resuming the audio
38 // channel is supported.
39 virtual void ControlAudio(const AudioControl& audio_control) = 0;
41 // Passes the set of capabilities supported by the client to the host.
42 virtual void SetCapabilities(const Capabilities& capabilities) = 0;
44 // Requests pairing between the host and client for PIN-less authentication.
45 virtual void RequestPairing(const PairingRequest& pairing_request) = 0;
47 // Deliver an extension message from the client to the host.
48 virtual void DeliverClientMessage(const ExtensionMessage& message) = 0;
50 protected:
51 virtual ~HostStub() {}
53 private:
54 DISALLOW_COPY_AND_ASSIGN(HostStub);
57 } // namespace protocol
58 } // namespace remoting
60 #endif // REMOTING_PROTOCOL_HOST_STUB_H_