#ifndef CHROME_COMMON_EXTENSIONS_API_SAFE_BROWSING_PRIVATE_H__
#define CHROME_COMMON_EXTENSIONS_API_SAFE_BROWSING_PRIVATE_H__
#include <stdint.h>
#include <map>
#include <memory>
#include <optional>
#include <string>
#include <vector>
#include "base/values.h"
#include <string_view>
namespace extensions {
namespace api {
namespace safe_browsing_private {
enum class URLType { … };
const char* ToString(URLType as_enum);
URLType ParseURLType(std::string_view as_string);
std::u16string GetURLTypeParseError(std::string_view as_string);
enum class NavigationInitiation { … };
const char* ToString(NavigationInitiation as_enum);
NavigationInitiation ParseNavigationInitiation(std::string_view as_string);
std::u16string GetNavigationInitiationParseError(std::string_view as_string);
struct PolicySpecifiedPasswordReuse { … };
struct DangerousDownloadInfo { … };
struct InterstitialInfo { … };
struct ServerRedirect { … };
struct ReferrerChainEntry { … };
namespace GetReferrerChain {
struct Params { … };
namespace Results {
base::Value::List Create(const std::vector<ReferrerChainEntry>& entries);
}
}
namespace OnPolicySpecifiedPasswordReuseDetected {
extern const char kEventName[];
base::Value::List Create(const PolicySpecifiedPasswordReuse& reuse_details);
}
namespace OnPolicySpecifiedPasswordChanged {
extern const char kEventName[];
base::Value::List Create(const std::string& user_name);
}
namespace OnDangerousDownloadOpened {
extern const char kEventName[];
base::Value::List Create(const DangerousDownloadInfo& dict);
}
namespace OnSecurityInterstitialShown {
extern const char kEventName[];
base::Value::List Create(const InterstitialInfo& dict);
}
namespace OnSecurityInterstitialProceeded {
extern const char kEventName[];
base::Value::List Create(const InterstitialInfo& dict);
}
}
}
}
#endif