chromium/out/Default/gen/chrome/common/extensions/api/instance_id.h

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// GENERATED FROM THE API DEFINITION IN
//   chrome/common/extensions/api/instance_id.json
// by tools/json_schema_compiler.
// DO NOT EDIT.

#ifndef CHROME_COMMON_EXTENSIONS_API_INSTANCE_ID_H__
#define CHROME_COMMON_EXTENSIONS_API_INSTANCE_ID_H__

#include <stdint.h>

#include <map>
#include <memory>
#include <optional>
#include <string>
#include <vector>

#include "base/values.h"

namespace extensions {
namespace api {
namespace instance_id {

//
// Functions
//

namespace GetID {

namespace Results {

// An Instance ID assigned to the app instance.
base::Value::List Create(const std::string& instance_id);
}  // namespace Results

}  // namespace GetID

namespace GetCreationTime {

namespace Results {

// The time when the Instance ID has been generated, represented in milliseconds
// since the epoch.
base::Value::List Create(double creation_time);
}  // namespace Results

}  // namespace GetCreationTime

namespace GetToken {

struct Params {};

namespace Results {

// A token assigned by the requested service.
base::Value::List Create(const std::string& token);
}  // namespace Results

}  // namespace GetToken

namespace DeleteToken {

struct Params {};

namespace Results {

base::Value::List Create();
}  // namespace Results

}  // namespace DeleteToken

namespace DeleteID {

namespace Results {

base::Value::List Create();
}  // namespace Results

}  // namespace DeleteID

//
// Events
//

namespace OnTokenRefresh {

extern const char kEventName[];  // "instanceID.onTokenRefresh"

base::Value::List Create();
}  // namespace OnTokenRefresh

}  // namespace instance_id
}  // namespace api
}  // namespace extensions

#endif  // CHROME_COMMON_EXTENSIONS_API_INSTANCE_ID_H__