remote_open_url.proto 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 remote-open-url data
  8. // channel.
  9. // Next ID: 3
  10. message RemoteOpenUrl {
  11. // Message sent requesting the remote end to open |url|.
  12. // Next ID: 3
  13. message OpenUrlRequest {
  14. // An ID used to associate the request with the response.
  15. optional uint64 id = 1;
  16. // The URL to be opened by the remote end.
  17. optional string url = 2;
  18. }
  19. // Message sent from the remote end to the requester.
  20. // Next ID: 3
  21. message OpenUrlResponse {
  22. // An ID used to associate the request with the response.
  23. optional uint64 id = 1;
  24. // The outcome of opening the URL remotely.
  25. // Must be synced with remoting/host/mojom/remote_url_opener.mojom
  26. // Next ID: 4
  27. enum Result {
  28. UNSPECIFIED_OPEN_URL_RESULT = 0;
  29. // The URL was successfully opened.
  30. SUCCESS = 1;
  31. // The URL failed to open, and the requester should not try to open the
  32. // URL locally.
  33. FAILURE = 2;
  34. // The remote end has decided that the URL should be opened locally by the
  35. // requester.
  36. LOCAL_FALLBACK = 3;
  37. }
  38. // The result of opening the URL remotely.
  39. optional Result result = 2;
  40. }
  41. oneof message {
  42. OpenUrlRequest open_url_request = 1;
  43. OpenUrlResponse open_url_response = 2;
  44. }
  45. }