#ifndef EXTENSIONS_COMMON_API_WEB_REQUEST_H__
#define EXTENSIONS_COMMON_API_WEB_REQUEST_H__
#include <stdint.h>
#include <map>
#include <memory>
#include <optional>
#include <string>
#include <vector>
#include "base/values.h"
#include <string_view>
#include "extensions/common/api/extension_types.h"
namespace extensions {
namespace api {
namespace web_request {
extern const int MAX_HANDLER_BEHAVIOR_CHANGED_CALLS_PER_10_MINUTES;
enum class ResourceType { … };
const char* ToString(ResourceType as_enum);
ResourceType ParseResourceType(std::string_view as_string);
std::u16string GetResourceTypeParseError(std::string_view as_string);
enum class OnBeforeRequestOptions { … };
const char* ToString(OnBeforeRequestOptions as_enum);
OnBeforeRequestOptions ParseOnBeforeRequestOptions(std::string_view as_string);
std::u16string GetOnBeforeRequestOptionsParseError(std::string_view as_string);
enum class OnBeforeSendHeadersOptions { … };
const char* ToString(OnBeforeSendHeadersOptions as_enum);
OnBeforeSendHeadersOptions ParseOnBeforeSendHeadersOptions(std::string_view as_string);
std::u16string GetOnBeforeSendHeadersOptionsParseError(std::string_view as_string);
enum class OnSendHeadersOptions { … };
const char* ToString(OnSendHeadersOptions as_enum);
OnSendHeadersOptions ParseOnSendHeadersOptions(std::string_view as_string);
std::u16string GetOnSendHeadersOptionsParseError(std::string_view as_string);
enum class OnHeadersReceivedOptions { … };
const char* ToString(OnHeadersReceivedOptions as_enum);
OnHeadersReceivedOptions ParseOnHeadersReceivedOptions(std::string_view as_string);
std::u16string GetOnHeadersReceivedOptionsParseError(std::string_view as_string);
enum class OnAuthRequiredOptions { … };
const char* ToString(OnAuthRequiredOptions as_enum);
OnAuthRequiredOptions ParseOnAuthRequiredOptions(std::string_view as_string);
std::u16string GetOnAuthRequiredOptionsParseError(std::string_view as_string);
enum class OnResponseStartedOptions { … };
const char* ToString(OnResponseStartedOptions as_enum);
OnResponseStartedOptions ParseOnResponseStartedOptions(std::string_view as_string);
std::u16string GetOnResponseStartedOptionsParseError(std::string_view as_string);
enum class OnBeforeRedirectOptions { … };
const char* ToString(OnBeforeRedirectOptions as_enum);
OnBeforeRedirectOptions ParseOnBeforeRedirectOptions(std::string_view as_string);
std::u16string GetOnBeforeRedirectOptionsParseError(std::string_view as_string);
enum class OnCompletedOptions { … };
const char* ToString(OnCompletedOptions as_enum);
OnCompletedOptions ParseOnCompletedOptions(std::string_view as_string);
std::u16string GetOnCompletedOptionsParseError(std::string_view as_string);
enum class OnErrorOccurredOptions { … };
const char* ToString(OnErrorOccurredOptions as_enum);
OnErrorOccurredOptions ParseOnErrorOccurredOptions(std::string_view as_string);
std::u16string GetOnErrorOccurredOptionsParseError(std::string_view as_string);
struct RequestFilter { … };
struct UploadData { … };
struct FormDataItem { … };
enum class IgnoredActionType { … };
const char* ToString(IgnoredActionType as_enum);
IgnoredActionType ParseIgnoredActionType(std::string_view as_string);
std::u16string GetIgnoredActionTypeParseError(std::string_view as_string);
namespace HandlerBehaviorChanged {
namespace Results {
base::Value::List Create();
}
}
namespace OnBeforeRequest {
extern const char kEventName[];
struct Details { … };
base::Value::List Create(const Details& details);
}
namespace OnErrorOccurred {
extern const char kEventName[];
struct Details { … };
base::Value::List Create(const Details& details);
}
namespace OnActionIgnored {
extern const char kEventName[];
struct Details { … };
base::Value::List Create(const Details& details);
}
}
}
}
#endif