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

Unified Diff: third_party/WebKit/public/platform/WebMixedContent.h

Issue 1905033002: PlzNavigate: Move navigation-level mixed content checks to the browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@console-security-message
Patch Set: Addressed all jam@ latest comments. Created 3 years, 11 months 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/public/platform/WebMixedContent.h
diff --git a/third_party/WebKit/public/platform/WebMixedContent.h b/third_party/WebKit/public/platform/WebMixedContent.h
index e263e5c2c8b931f4c7a59a56727c25b768ffc3fe..c8596ebbd3f158f302307a2d5651db57974f823f 100644
--- a/third_party/WebKit/public/platform/WebMixedContent.h
+++ b/third_party/WebKit/public/platform/WebMixedContent.h
@@ -31,26 +31,17 @@
#ifndef WebMixedContent_h
#define WebMixedContent_h
+#include "public/platform/WebMixedContentContextType.h"
#include "public/platform/WebURLRequest.h"
namespace blink {
-// Types and helper functions related to mixed content checks.
+// Helper functions related to mixed content checks.
class WebMixedContent {
public:
- enum class ContextType {
- NotMixedContent,
- Blockable,
- OptionallyBlockable,
- ShouldBeBlockable,
- };
-
- BLINK_PLATFORM_EXPORT static ContextType contextTypeFromRequestContext(
- WebURLRequest::RequestContext,
- bool strictMixedContentCheckingForPlugin);
-
- BLINK_PLATFORM_EXPORT static const char* requestContextName(
- WebURLRequest::RequestContext);
+ BLINK_PLATFORM_EXPORT static WebMixedContentContextType
+ contextTypeFromRequestContext(WebURLRequest::RequestContext,
+ bool strictMixedContentCheckingForPlugin);
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698