blob: ee19a3288876a573e2aaedae8581386c4de5142a [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_LOADER_SUBRESOURCE_INTEGRITY_HELPER_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_LOADER_SUBRESOURCE_INTEGRITY_HELPER_H_
#include "third_party/blink/renderer/core/core_export.h"
#include "third_party/blink/renderer/core/inspector/console_message.h"
#include "third_party/blink/renderer/platform/loader/subresource_integrity.h"
#include "third_party/blink/renderer/platform/wtf/allocator.h"
namespace blink {
class ExecutionContext;
class CORE_EXPORT SubresourceIntegrityHelper final {
STATIC_ONLY(SubresourceIntegrityHelper);
public:
static void DoReport(ExecutionContext&,
const SubresourceIntegrity::ReportInfo&);
static void GetConsoleMessages(const SubresourceIntegrity::ReportInfo&,
HeapVector<Member<ConsoleMessage>>*);
static SubresourceIntegrity::IntegrityFeatures GetFeatures(ExecutionContext*);
};
} // namespace blink
#endif