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

Side by Side Diff: Source/WebCore/platform/SchemeRegistry.h

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/WebCore/page/Settings.cpp ('k') | Source/WebCore/platform/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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // Such schemes should delegate to SecurityOrigin::canRequest for any URL 65 // Such schemes should delegate to SecurityOrigin::canRequest for any URL
66 // passed to SecurityOrigin::canDisplay. 66 // passed to SecurityOrigin::canDisplay.
67 static bool canDisplayOnlyIfCanRequest(const String& scheme); 67 static bool canDisplayOnlyIfCanRequest(const String& scheme);
68 static void registerAsCanDisplayOnlyIfCanRequest(const String& scheme); 68 static void registerAsCanDisplayOnlyIfCanRequest(const String& scheme);
69 69
70 // Schemes against which javascript: URLs should not be allowed to run (stop 70 // Schemes against which javascript: URLs should not be allowed to run (stop
71 // bookmarklets from running on sensitive pages). 71 // bookmarklets from running on sensitive pages).
72 static void registerURLSchemeAsNotAllowingJavascriptURLs(const String& schem e); 72 static void registerURLSchemeAsNotAllowingJavascriptURLs(const String& schem e);
73 static bool shouldTreatURLSchemeAsNotAllowingJavascriptURLs(const String& sc heme); 73 static bool shouldTreatURLSchemeAsNotAllowingJavascriptURLs(const String& sc heme);
74 74
75 // Let some schemes opt-out of Private Browsing's default behavior of prohib iting read/write
76 // access to Local Storage and Databases.
77 static void registerURLSchemeAsAllowingLocalStorageAccessInPrivateBrowsing(c onst String& scheme);
78 static bool allowsLocalStorageAccessInPrivateBrowsing(const String& scheme);
79 static void registerURLSchemeAsAllowingDatabaseAccessInPrivateBrowsing(const String& scheme);
80 static bool allowsDatabaseAccessInPrivateBrowsing(const String& scheme);
81
82 // Allow non-HTTP schemes to be registered to allow CORS requests. 75 // Allow non-HTTP schemes to be registered to allow CORS requests.
83 static void registerURLSchemeAsCORSEnabled(const String& scheme); 76 static void registerURLSchemeAsCORSEnabled(const String& scheme);
84 static bool shouldTreatURLSchemeAsCORSEnabled(const String& scheme); 77 static bool shouldTreatURLSchemeAsCORSEnabled(const String& scheme);
85 78
86 // Allow resources from some schemes to load on a page, regardless of its 79 // Allow resources from some schemes to load on a page, regardless of its
87 // Content Security Policy. 80 // Content Security Policy.
88 static void registerURLSchemeAsBypassingContentSecurityPolicy(const String& scheme); 81 static void registerURLSchemeAsBypassingContentSecurityPolicy(const String& scheme);
89 static void removeURLSchemeRegisteredAsBypassingContentSecurityPolicy(const String& scheme); 82 static void removeURLSchemeRegisteredAsBypassingContentSecurityPolicy(const String& scheme);
90 static bool schemeShouldBypassContentSecurityPolicy(const String& scheme); 83 static bool schemeShouldBypassContentSecurityPolicy(const String& scheme);
91 }; 84 };
92 85
93 } // namespace WebCore 86 } // namespace WebCore
94 87
95 #endif // SchemeRegistry_h 88 #endif // SchemeRegistry_h
OLDNEW
« no previous file with comments | « Source/WebCore/page/Settings.cpp ('k') | Source/WebCore/platform/SchemeRegistry.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698