Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(504)

Unified Diff: third_party/WebKit/Source/core/loader/MixedContentChecker.h

Issue 1415923015: Downgrade lock icon for broken-HTTPS subresources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: missing #incldue Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 d88780bda20c9b5f6fb3435ac3bef91bdcb55999..01f40e88b1c4442e71ae0fa9efc18713570b4423 100644
--- a/third_party/WebKit/Source/core/loader/MixedContentChecker.h
+++ b/third_party/WebKit/Source/core/loader/MixedContentChecker.h
@@ -31,6 +31,7 @@
#ifndef MixedContentChecker_h
#define MixedContentChecker_h
+#include "base/gtest_prod_util.h"
#include "core/CoreExport.h"
#include "platform/heap/Handle.h"
#include "platform/network/ResourceRequest.h"
@@ -42,6 +43,7 @@ namespace blink {
class FrameLoaderClient;
class LocalFrame;
class KURL;
+class ResourceResponse;
class SecurityOrigin;
class CORE_EXPORT MixedContentChecker final {
@@ -75,7 +77,10 @@ public:
// for a mixed content check for the given frame type.
static LocalFrame* effectiveFrameForFrameType(LocalFrame*, WebURLRequest::FrameType);
+ static void handleCertificateError(LocalFrame*, const ResourceRequest&, const ResourceResponse&);
+
private:
+ FRIEND_TEST_ALL_PREFIXES(MixedContentCheckerTest, HandleCertificateError);
enum MixedContentType {
Display,
Execution,
@@ -89,6 +94,7 @@ private:
static const char* typeNameFromContext(WebURLRequest::RequestContext);
static void logToConsoleAboutFetch(LocalFrame*, const KURL&, WebURLRequest::RequestContext, bool allowed);
static void logToConsoleAboutWebSocket(LocalFrame*, const KURL&, bool allowed);
+ static void logToConsoleAboutCertificateError(LocalFrame*, const KURL&, WebURLRequest::RequestContext);
static void count(LocalFrame*, WebURLRequest::RequestContext);
};

Powered by Google App Engine
This is Rietveld 408576698