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

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

Issue 2392653002: reflow comments in platform/{transforms,weborigin} (Closed)
Patch Set: Created 4 years, 2 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 unified diff | Download patch
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 static bool shouldTreatURLSchemeAsNotAllowingJavascriptURLs( 85 static bool shouldTreatURLSchemeAsNotAllowingJavascriptURLs(
86 const String& scheme); 86 const String& scheme);
87 87
88 // Allow non-HTTP schemes to be registered to allow CORS requests. 88 // Allow non-HTTP schemes to be registered to allow CORS requests.
89 static void registerURLSchemeAsCORSEnabled(const String& scheme); 89 static void registerURLSchemeAsCORSEnabled(const String& scheme);
90 static bool shouldTreatURLSchemeAsCORSEnabled(const String& scheme); 90 static bool shouldTreatURLSchemeAsCORSEnabled(const String& scheme);
91 91
92 // Serialize the registered schemes in a comma-separated list. 92 // Serialize the registered schemes in a comma-separated list.
93 static String listOfCORSEnabledURLSchemes(); 93 static String listOfCORSEnabledURLSchemes();
94 94
95 // "Legacy" schemes (e.g. 'ftp:', 'gopher:') which we might want to treat diff erently from "webby" schemes. 95 // "Legacy" schemes (e.g. 'ftp:', 'gopher:') which we might want to treat
96 // differently from "webby" schemes.
96 static bool shouldTreatURLSchemeAsLegacy(const String& scheme); 97 static bool shouldTreatURLSchemeAsLegacy(const String& scheme);
97 98
98 // Schemes that can register a service worker. 99 // Schemes that can register a service worker.
99 static void registerURLSchemeAsAllowingServiceWorkers(const String& scheme); 100 static void registerURLSchemeAsAllowingServiceWorkers(const String& scheme);
100 static bool shouldTreatURLSchemeAsAllowingServiceWorkers( 101 static bool shouldTreatURLSchemeAsAllowingServiceWorkers(
101 const String& scheme); 102 const String& scheme);
102 103
103 // HTTP-like schemes that are treated as supporting the Fetch API. 104 // HTTP-like schemes that are treated as supporting the Fetch API.
104 static void registerURLSchemeAsSupportingFetchAPI(const String& scheme); 105 static void registerURLSchemeAsSupportingFetchAPI(const String& scheme);
105 static bool shouldTreatURLSchemeAsSupportingFetchAPI(const String& scheme); 106 static bool shouldTreatURLSchemeAsSupportingFetchAPI(const String& scheme);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 const String& scheme); 142 const String& scheme);
142 static bool schemeShouldBypassSecureContextCheck(const String& scheme); 143 static bool schemeShouldBypassSecureContextCheck(const String& scheme);
143 144
144 private: 145 private:
145 static const URLSchemesSet& localSchemes(); 146 static const URLSchemesSet& localSchemes();
146 }; 147 };
147 148
148 } // namespace blink 149 } // namespace blink
149 150
150 #endif // SchemeRegistry_h 151 #endif // SchemeRegistry_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698