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

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

Issue 2604633002: Mute use counters for internal pages (Closed)
Patch Set: Update a related comment Created 3 years, 12 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 static void registerURLSchemeAsCORSEnabled(const String& scheme); 88 static void registerURLSchemeAsCORSEnabled(const String& scheme);
89 static bool shouldTreatURLSchemeAsCORSEnabled(const String& scheme); 89 static bool shouldTreatURLSchemeAsCORSEnabled(const String& scheme);
90 90
91 // Serialize the registered schemes in a comma-separated list. 91 // Serialize the registered schemes in a comma-separated list.
92 static String listOfCORSEnabledURLSchemes(); 92 static String listOfCORSEnabledURLSchemes();
93 93
94 // "Legacy" schemes (e.g. 'ftp:', 'gopher:') which we might want to treat 94 // "Legacy" schemes (e.g. 'ftp:', 'gopher:') which we might want to treat
95 // differently from "webby" schemes. 95 // differently from "webby" schemes.
96 static bool shouldTreatURLSchemeAsLegacy(const String& scheme); 96 static bool shouldTreatURLSchemeAsLegacy(const String& scheme);
97 97
98 // Does the scheme represent a location relevant to web compatibility metrics?
99 static bool shouldTrackUsageMetricsForScheme(const String& scheme);
100
98 // Schemes that can register a service worker. 101 // Schemes that can register a service worker.
99 static void registerURLSchemeAsAllowingServiceWorkers(const String& scheme); 102 static void registerURLSchemeAsAllowingServiceWorkers(const String& scheme);
100 static bool shouldTreatURLSchemeAsAllowingServiceWorkers( 103 static bool shouldTreatURLSchemeAsAllowingServiceWorkers(
101 const String& scheme); 104 const String& scheme);
102 105
103 // HTTP-like schemes that are treated as supporting the Fetch API. 106 // HTTP-like schemes that are treated as supporting the Fetch API.
104 static void registerURLSchemeAsSupportingFetchAPI(const String& scheme); 107 static void registerURLSchemeAsSupportingFetchAPI(const String& scheme);
105 static bool shouldTreatURLSchemeAsSupportingFetchAPI(const String& scheme); 108 static bool shouldTreatURLSchemeAsSupportingFetchAPI(const String& scheme);
106 109
107 // Schemes which override the first-/third-party checks on a Document. 110 // Schemes which override the first-/third-party checks on a Document.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 const String& scheme); 144 const String& scheme);
142 static bool schemeShouldBypassSecureContextCheck(const String& scheme); 145 static bool schemeShouldBypassSecureContextCheck(const String& scheme);
143 146
144 private: 147 private:
145 static const URLSchemesSet& localSchemes(); 148 static const URLSchemesSet& localSchemes();
146 }; 149 };
147 150
148 } // namespace blink 151 } // namespace blink
149 152
150 #endif // SchemeRegistry_h 153 #endif // SchemeRegistry_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698