| Index: third_party/WebKit/Source/core/loader/MixedContentChecker.h
|
| diff --git a/third_party/WebKit/Source/core/loader/MixedContentChecker.h b/third_party/WebKit/Source/core/loader/MixedContentChecker.h
|
| index 33e8a1a82f912cf420a7de0e7aa3d51d85ed4f20..23a66add5cbd7b5e7a27efdf3aaee8d20de4f45e 100644
|
| --- a/third_party/WebKit/Source/core/loader/MixedContentChecker.h
|
| +++ b/third_party/WebKit/Source/core/loader/MixedContentChecker.h
|
| @@ -47,6 +47,12 @@ class KURL;
|
| class ResourceResponse;
|
| class SecurityOrigin;
|
|
|
| +// Checks all sub-resource loads for mixed-content. Frame-level loads are
|
| +// checked at the browser by MixedContentNavigationThrottle. Changes to this
|
| +// class might need to be reflected on its browser counterpart.
|
| +//
|
| +// Current mixed content draft that drives this implementation:
|
| +// https://w3c.github.io/webappsec-mixed-content/
|
| class CORE_EXPORT MixedContentChecker final {
|
| WTF_MAKE_NONCOPYABLE(MixedContentChecker);
|
| DISALLOW_NEW();
|
| @@ -94,6 +100,15 @@ class CORE_EXPORT MixedContentChecker final {
|
| WebURLRequest::FrameType,
|
| WebURLRequest::RequestContext);
|
|
|
| + // Log to the frame console about found mixed content and report it to the CSP
|
| + // policy.
|
| + static void mixedContentFoundByTheBrowser(LocalFrame*,
|
| + const KURL& mainResourceUrl,
|
| + const KURL& mixedContentUrl,
|
| + WebURLRequest::RequestContext,
|
| + bool wasAllowed,
|
| + bool hadRedirect);
|
| +
|
| private:
|
| FRIEND_TEST_ALL_PREFIXES(MixedContentCheckerTest, HandleCertificateError);
|
|
|
|
|