summaryrefslogtreecommitdiffstats
path: root/chromium/components/variations/seed_response.h
blob: 6f7b586715655bb4ce4ea3e606d5f662463974b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef COMPONENTS_VARIATIONS_SEED_RESPONSE_H_
#define COMPONENTS_VARIATIONS_SEED_RESPONSE_H_

#include <string>

#include "base/component_export.h"
#include "base/time/time.h"

namespace variations {

// Represents data received when downloading the seed: "data" is the response
// body while the other fields come from headers.
// This is only used on Android.
struct COMPONENT_EXPORT(VARIATIONS) SeedResponse {
  SeedResponse();
  ~SeedResponse();

  std::string data;  // "data" is binary, for which protobuf uses strings.
  std::string signature;
  std::string country;
  base::Time date;
  bool is_gzip_compressed = false;
};

}  // namespace variations

#endif  // COMPONENTS_VARIATIONS_SEED_RESPONSE_H_