| Index: third_party/WebKit/Source/core/frame/csp/RemoteContentSecurityPolicy.h
|
| diff --git a/third_party/WebKit/Source/core/frame/csp/RemoteContentSecurityPolicy.h b/third_party/WebKit/Source/core/frame/csp/RemoteContentSecurityPolicy.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d2604eddb7b25bc1dc959dda0222391933c91d0b
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/frame/csp/RemoteContentSecurityPolicy.h
|
| @@ -0,0 +1,31 @@
|
| +// Copyright 2016 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 RemoteContentSecurityPolicy_h
|
| +#define RemoteContentSecurityPolicy_h
|
| +
|
| +#include "core/frame/csp/ContentSecurityPolicy.h"
|
| +#include "platform/heap/Handle.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class RemoteFrameClient;
|
| +
|
| +class RemoteContentSecurityPolicy : public ContentSecurityPolicy {
|
| +public:
|
| + static RemoteContentSecurityPolicy* create(RemoteFrameClient*);
|
| + ~RemoteContentSecurityPolicy() override;
|
| + DECLARE_VIRTUAL_TRACE();
|
| +
|
| + void reportViolation(const String& directiveText, const String& effectiveDirective, const String& consoleMessage, const KURL& blockedURL, const Vector<String>& reportEndpoints, const String& header, ViolationType, LocalFrame*, RedirectStatus, int contextLine) override;
|
| +
|
| +private:
|
| + RemoteContentSecurityPolicy(RemoteFrameClient*);
|
| +
|
| + Member<RemoteFrameClient> m_remoteFrameClient;
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif
|
|
|