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

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

Issue 2625633002: Supporting changes in preparation of browser side mixed content checking. (Closed)
Patch Set: Address code review 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
« no previous file with comments | « third_party/WebKit/public/platform/WebMixedContent.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/WebMixedContentContextType.h
diff --git a/third_party/WebKit/public/platform/WebMixedContent.h b/third_party/WebKit/public/platform/WebMixedContentContextType.h
similarity index 75%
copy from third_party/WebKit/public/platform/WebMixedContent.h
copy to third_party/WebKit/public/platform/WebMixedContentContextType.h
index e263e5c2c8b931f4c7a59a56727c25b768ffc3fe..604526c17fb7231f42c8b3593d8afbd443e30fcc 100644
--- a/third_party/WebKit/public/platform/WebMixedContent.h
+++ b/third_party/WebKit/public/platform/WebMixedContentContextType.h
@@ -28,31 +28,20 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebMixedContent_h
-#define WebMixedContent_h
-
-#include "public/platform/WebURLRequest.h"
+#ifndef WebMixedContentContextType_h
+#define WebMixedContentContextType_h
namespace blink {
// Types and 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);
+enum class WebMixedContentContextType {
+ NotMixedContent,
+ Blockable,
+ OptionallyBlockable,
+ ShouldBeBlockable,
+ Last = ShouldBeBlockable
};
} // namespace blink
-#endif // WebMixedContent_h
+#endif // WebMixedContentContextType_h
« no previous file with comments | « third_party/WebKit/public/platform/WebMixedContent.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698