#include "content/browser/background_fetch/background_fetch_cross_origin_filter.h"
#include <set>
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "content/browser/background_fetch/background_fetch_request_info.h"
#include "url/gurl.h"
namespace content {
namespace {
const char kAccessControlAllowOriginHeader[] = …;
const char kAccessControlAllowCredentialsHeader[] = …;
const char kAnyOriginValue[] = …;
bool ParseOriginListHeader(const std::string& value,
bool* any_origin,
std::set<url::Origin>* origins) { … }
}
BackgroundFetchCrossOriginFilter::BackgroundFetchCrossOriginFilter(
const url::Origin& source_origin,
const BackgroundFetchRequestInfo& request) { … }
BackgroundFetchCrossOriginFilter::~BackgroundFetchCrossOriginFilter() = default;
bool BackgroundFetchCrossOriginFilter::CanPopulateBody() const { … }
}