aw_variations_seed.proto 1.5 KB

1234567891011121314151617181920212223242526272829303132333435
  1. // Copyright 2018 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. package android_webview;
  6. option optimize_for = LITE_RUNTIME; // TODO(crbug/800281): Remove this after proto 4.0
  7. option java_package = "org.chromium.android_webview.proto";
  8. // WebView uses AwVariationsSeed to serialize a downloaded seed, along with the
  9. // required HTTP header metadata, to a file. While Chrome stores the seed in
  10. // prefs, WebView stores it in a separate file so the WebView service can write
  11. // new seeds directly to each app's seed file.
  12. //
  13. // Next tag: 7
  14. message AwVariationsSeed {
  15. // A base64-encoded signature of the seed data. This can be used by the client
  16. // to verify the seed contents. Comes from HTTP header "X-Seed-Signature".
  17. optional string signature = 1;
  18. // 2-letter country code. Comes from HTTP header "X-Country".
  19. optional string country = 2;
  20. // Date the seed was downloaded. Comes from HTTP header "Date"; see RFC 2616,
  21. // sections 3.3.1 and 14.18 for the format.
  22. // This was deprecated in favor of the |date| field in October 2019.
  23. optional string date_header = 3 [deprecated = true];
  24. // Whether seed_data is GZIP compressed. Comes from HTTP header "IM".
  25. optional bool is_gzip_compressed = 4;
  26. // The download body, itself a serialized VariationsSeed proto.
  27. optional bytes seed_data = 5;
  28. // Date the seed was downloaded according to the device's clock in
  29. // milliseconds since UNIX epoch, GMT.
  30. optional int64 date = 6;
  31. }