summaryrefslogtreecommitdiff
path: root/chromium/components/cryptauth/cryptauth_device_id_provider.h
blob: 5d825571753454dd5ff371d63386102e4bb9da22 (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
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef COMPONENTS_CRYPTAUTH_CRYPTAUTH_DEVICE_ID_PROVIDER_H_
#define COMPONENTS_CRYPTAUTH_CRYPTAUTH_DEVICE_ID_PROVIDER_H_

#include <string>

#include "base/macros.h"

namespace cryptauth {

// Provides the ID of the current device. In this context, "device ID" refers to
// the |long_device_id| field of the GcmDeviceInfo proto which is sent to the
// CryptAuth back-end during device enrollment.
class CryptAuthDeviceIdProvider {
 public:
  CryptAuthDeviceIdProvider() = default;
  virtual ~CryptAuthDeviceIdProvider() = default;

  virtual std::string GetDeviceId() const = 0;

 private:
  DISALLOW_COPY_AND_ASSIGN(CryptAuthDeviceIdProvider);
};

}  // namespace cryptauth

#endif  // COMPONENTS_CRYPTAUTH_CRYPTAUTH_DEVICE_ID_PROVIDER_H_