chromium/out/Default/gen/chrome/common/extensions/api/mdns.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/mdns.idl
// by tools/json_schema_compiler.
// DO NOT EDIT.

#ifndef CHROME_COMMON_EXTENSIONS_API_MDNS_H__
#define CHROME_COMMON_EXTENSIONS_API_MDNS_H__

#include <stdint.h>

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

#include "base/values.h"

namespace extensions {
namespace api {
namespace mdns {

//
// Properties
//

// The maximum number of service instances that will be included in
// onServiceList events.  If more instances are available, they may be truncated
// from the onServiceList event.
extern const int MAX_SERVICE_INSTANCES_PER_EVENT;

//
// Types
//

struct MDnsService {};


//
// Functions
//

namespace ForceDiscovery {

namespace Results {

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

}  // namespace ForceDiscovery

//
// Events
//

namespace OnServiceList {

extern const char kEventName[];  // "mdns.onServiceList"

base::Value::List Create(const std::vector<MDnsService>& services);
}  // namespace OnServiceList

}  // namespace mdns
}  // namespace api
}  // namespace extensions

#endif  // CHROME_COMMON_EXTENSIONS_API_MDNS_H__