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

Side by Side Diff: third_party/WebKit/Source/platform/weborigin/SchemeRegistry.h

Issue 2475673003: Clean registering mixed content restricting schemes (Closed)
Patch Set: Clean registering mixed content restricting schemes Created 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2010 Apple Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 class PLATFORM_EXPORT SchemeRegistry { 44 class PLATFORM_EXPORT SchemeRegistry {
45 STATIC_ONLY(SchemeRegistry); 45 STATIC_ONLY(SchemeRegistry);
46 46
47 public: 47 public:
48 static void initialize(); 48 static void initialize();
49 49
50 static void registerURLSchemeAsLocal(const String&); 50 static void registerURLSchemeAsLocal(const String&);
51 static bool shouldTreatURLSchemeAsLocal(const String&); 51 static bool shouldTreatURLSchemeAsLocal(const String&);
52 52
53 static void registerURLSchemeAsRestrictingMixedContent(const String&);
54 static bool shouldTreatURLSchemeAsRestrictingMixedContent(const String&); 53 static bool shouldTreatURLSchemeAsRestrictingMixedContent(const String&);
55 54
56 // Subresources transported by secure schemes do not trigger mixed content 55 // Subresources transported by secure schemes do not trigger mixed content
57 // warnings. For example, https and data are secure schemes because they 56 // warnings. For example, https and data are secure schemes because they
58 // cannot be corrupted by active network attackers. 57 // cannot be corrupted by active network attackers.
59 static void registerURLSchemeAsSecure(const String&); 58 static void registerURLSchemeAsSecure(const String&);
60 static bool shouldTreatURLSchemeAsSecure(const String&); 59 static bool shouldTreatURLSchemeAsSecure(const String&);
61 60
62 static void registerURLSchemeAsNoAccess(const String&); 61 static void registerURLSchemeAsNoAccess(const String&);
63 static bool shouldTreatURLSchemeAsNoAccess(const String&); 62 static bool shouldTreatURLSchemeAsNoAccess(const String&);
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 const String& scheme); 141 const String& scheme);
143 static bool schemeShouldBypassSecureContextCheck(const String& scheme); 142 static bool schemeShouldBypassSecureContextCheck(const String& scheme);
144 143
145 private: 144 private:
146 static const URLSchemesSet& localSchemes(); 145 static const URLSchemesSet& localSchemes();
147 }; 146 };
148 147
149 } // namespace blink 148 } // namespace blink
150 149
151 #endif // SchemeRegistry_h 150 #endif // SchemeRegistry_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698