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

Unified Diff: Source/WebCore/platform/SchemeRegistry.cpp

Issue 14142009: Remove Apple's unused implementation of private browsing from WebCore (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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 | « Source/WebCore/platform/SchemeRegistry.h ('k') | Source/WebCore/platform/graphics/MediaPlayer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/platform/SchemeRegistry.cpp
diff --git a/Source/WebCore/platform/SchemeRegistry.cpp b/Source/WebCore/platform/SchemeRegistry.cpp
index dea59eee40c452b1b5ff6cf424ca71a48e2b7d11..738ad89b596dd20d8e48c527485ec76b26720eb5 100644
--- a/Source/WebCore/platform/SchemeRegistry.cpp
+++ b/Source/WebCore/platform/SchemeRegistry.cpp
@@ -125,18 +125,6 @@ const URLSchemesMap& SchemeRegistry::localSchemes()
return localURLSchemes();
}
-static URLSchemesMap& schemesAllowingLocalStorageAccessInPrivateBrowsing()
-{
- DEFINE_STATIC_LOCAL(URLSchemesMap, schemesAllowingLocalStorageAccessInPrivateBrowsing, ());
- return schemesAllowingLocalStorageAccessInPrivateBrowsing;
-}
-
-static URLSchemesMap& schemesAllowingDatabaseAccessInPrivateBrowsing()
-{
- DEFINE_STATIC_LOCAL(URLSchemesMap, schemesAllowingDatabaseAccessInPrivateBrowsing, ());
- return schemesAllowingDatabaseAccessInPrivateBrowsing;
-}
-
static URLSchemesMap& CORSEnabledSchemes()
{
// FIXME: http://bugs.webkit.org/show_bug.cgi?id=77160
@@ -253,30 +241,6 @@ bool SchemeRegistry::shouldTreatURLSchemeAsNotAllowingJavascriptURLs(const Strin
return notAllowingJavascriptURLsSchemes().contains(scheme);
}
-void SchemeRegistry::registerURLSchemeAsAllowingLocalStorageAccessInPrivateBrowsing(const String& scheme)
-{
- schemesAllowingLocalStorageAccessInPrivateBrowsing().add(scheme);
-}
-
-bool SchemeRegistry::allowsLocalStorageAccessInPrivateBrowsing(const String& scheme)
-{
- if (scheme.isEmpty())
- return false;
- return schemesAllowingLocalStorageAccessInPrivateBrowsing().contains(scheme);
-}
-
-void SchemeRegistry::registerURLSchemeAsAllowingDatabaseAccessInPrivateBrowsing(const String& scheme)
-{
- schemesAllowingDatabaseAccessInPrivateBrowsing().add(scheme);
-}
-
-bool SchemeRegistry::allowsDatabaseAccessInPrivateBrowsing(const String& scheme)
-{
- if (scheme.isEmpty())
- return false;
- return schemesAllowingDatabaseAccessInPrivateBrowsing().contains(scheme);
-}
-
void SchemeRegistry::registerURLSchemeAsCORSEnabled(const String& scheme)
{
CORSEnabledSchemes().add(scheme);
« no previous file with comments | « Source/WebCore/platform/SchemeRegistry.h ('k') | Source/WebCore/platform/graphics/MediaPlayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698