url_forwarder_control.proto 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. // Copyright 2021 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. syntax = "proto2";
  5. option optimize_for = LITE_RUNTIME;
  6. package remoting.protocol;
  7. // Composite message type for messages sent over the url-forwarder-control data
  8. // channel.
  9. // Next ID: 5
  10. message UrlForwarderControl {
  11. // Message sent by the client requesting the host for the current
  12. // configuration state. The host will respond with a QueryConfigStateResponse.
  13. // Next ID: 1
  14. message QueryConfigStateRequest {}
  15. // Message sent by the host reporting the current configuration state.
  16. // Next ID: 2
  17. message QueryConfigStateResponse {
  18. // Indicates whether the URL forwarder has been properly set up.
  19. optional bool is_url_forwarder_set_up = 1;
  20. }
  21. // Message sent by the client requesting the host to set up the URL forwarder.
  22. // The host will respond with one or more SetUpUrlForwarderResponse(s).
  23. // Next ID: 1
  24. message SetUpUrlForwarderRequest {}
  25. // Message sent by the host reporting the current state of the URL forwarder
  26. // setup process.
  27. // Next ID: 2
  28. message SetUpUrlForwarderResponse {
  29. // Next ID: 4
  30. enum State {
  31. UNSPECIFIED_STATE = 0;
  32. // The setup process has been completed successfully.
  33. COMPLETE = 1;
  34. // The setup process has failed.
  35. FAILED = 2;
  36. // The setup process requires user intervention. The host will send
  37. // another SetUpUrlForwarderResponse once the setup process becomes
  38. // completed or failed.
  39. USER_INTERVENTION_REQUIRED = 3;
  40. }
  41. optional State state = 1;
  42. }
  43. oneof message {
  44. QueryConfigStateRequest query_config_state_request = 1;
  45. QueryConfigStateResponse query_config_state_response = 2;
  46. SetUpUrlForwarderRequest set_up_url_forwarder_request = 3;
  47. SetUpUrlForwarderResponse set_up_url_forwarder_response = 4;
  48. }
  49. }