summaryrefslogtreecommitdiffstats
path: root/remoting/proto
diff options
context:
space:
mode:
authorajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-02 21:42:25 +0000
committerajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-02 21:42:25 +0000
commit5e240672f29d5371b193ca641bab85e8fcc72e7e (patch)
tree3e6b99b8ba30155099c63fcc00bb35cd83d1ecde /remoting/proto
parentb92699afc8e0c70dfa9ed198786cba63d38fd5b2 (diff)
downloadchromium_src-5e240672f29d5371b193ca641bab85e8fcc72e7e.zip
chromium_src-5e240672f29d5371b193ca641bab85e8fcc72e7e.tar.gz
chromium_src-5e240672f29d5371b193ca641bab85e8fcc72e7e.tar.bz2
Stub classes for Chromoting and use them in HostMessageDispatcher.
(Landing http://http://codereview.chromium.org/4167011 for hclam) BUG=None TEST=None Review URL: http://codereview.chromium.org/4336001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64818 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/proto')
-rw-r--r--remoting/proto/control.proto21
-rw-r--r--remoting/proto/event.proto13
-rw-r--r--remoting/proto/internal.proto1
3 files changed, 11 insertions, 24 deletions
diff --git a/remoting/proto/control.proto b/remoting/proto/control.proto
index 99b5d37..6e40658 100644
--- a/remoting/proto/control.proto
+++ b/remoting/proto/control.proto
@@ -8,26 +8,21 @@ syntax = "proto2";
option optimize_for = LITE_RUNTIME;
-package remoting;
+package remoting.protocol;
-message SuggestScreenResolutionRequest {
+// TODO(hclam): Isolate rectangle from these two messages.
+message SuggestResolutionRequest {
required int32 width = 1;
required int32 height = 2;
};
-// Represents a control message that sent from the client to the host.
-// This message is transmitted on the control channel.
-message ClientControlMessage {
- optional SuggestScreenResolutionRequest suggest_screen_resolution_request = 1;
-}
-
-message SetScreenResolutionRequest {
+message NotifyResolutionRequest {
required int32 width = 1;
required int32 height = 2;
};
-// Represents a control message that sent from host to the client.
-// This message is transmitted on the control channel.
-message HostControlMessage {
- optional SetScreenResolutionRequest set_screen_resolution_request = 1;
+// Represents a message being sent on the control channel.
+message ControlMessage {
+ optional SuggestResolutionRequest suggest_resolution = 1;
+ optional NotifyResolutionRequest notify_resolution = 2;
}
diff --git a/remoting/proto/event.proto b/remoting/proto/event.proto
index 2526d78..1f14c9dc 100644
--- a/remoting/proto/event.proto
+++ b/remoting/proto/event.proto
@@ -90,14 +90,7 @@ message Event {
optional MouseEvent mouse = 4;
}
-// Defines the message that is sent from client to host.
-// Only one of the optional messages should be present.
-message ClientEventMessage {
- repeated Event events = 1;
-}
-
-// Defines the message that is sent from host to client.
-// Only one of the optional messages should be present.
-message HostEventMessage {
- // TODO(hclam): Define the message.
+// Message sent in the event channel.
+message EventMessage {
+ repeated Event event = 1;
}
diff --git a/remoting/proto/internal.proto b/remoting/proto/internal.proto
index 3319420..fbe3181 100644
--- a/remoting/proto/internal.proto
+++ b/remoting/proto/internal.proto
@@ -6,7 +6,6 @@
syntax = "proto2";
-import "control.proto";
import "event.proto";
import "video.proto";