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

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

Issue 6312016: Merge 76637 - 2011-01-25 Adam Barth <abarth@webkit.org>... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/648/
Patch Set: Created 9 years, 11 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
« no previous file with comments | « Source/WebCore/ChangeLog ('k') | no next file » | 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 return schemesWithUniqueOrigins().contains(scheme); 124 return schemesWithUniqueOrigins().contains(scheme);
125 } 125 }
126 126
127 void SchemeRegistry::registerURLSchemeAsDisplayIsolated(const String& scheme) 127 void SchemeRegistry::registerURLSchemeAsDisplayIsolated(const String& scheme)
128 { 128 {
129 displayIsolatedURLSchemes().add(scheme); 129 displayIsolatedURLSchemes().add(scheme);
130 } 130 }
131 131
132 bool SchemeRegistry::shouldTreatURLSchemeAsDisplayIsolated(const String& scheme) 132 bool SchemeRegistry::shouldTreatURLSchemeAsDisplayIsolated(const String& scheme)
133 { 133 {
134 if (scheme.isEmpty())
135 return false;
134 return displayIsolatedURLSchemes().contains(scheme); 136 return displayIsolatedURLSchemes().contains(scheme);
135 } 137 }
136 138
137 void SchemeRegistry::registerURLSchemeAsSecure(const String& scheme) 139 void SchemeRegistry::registerURLSchemeAsSecure(const String& scheme)
138 { 140 {
139 secureSchemes().add(scheme); 141 secureSchemes().add(scheme);
140 } 142 }
141 143
142 bool SchemeRegistry::shouldTreatURLSchemeAsSecure(const String& scheme) 144 bool SchemeRegistry::shouldTreatURLSchemeAsSecure(const String& scheme)
143 { 145 {
144 return secureSchemes().contains(scheme); 146 return secureSchemes().contains(scheme);
145 } 147 }
146 148
147 void SchemeRegistry::registerURLSchemeAsEmptyDocument(const String& scheme) 149 void SchemeRegistry::registerURLSchemeAsEmptyDocument(const String& scheme)
148 { 150 {
149 emptyDocumentSchemes().add(scheme); 151 emptyDocumentSchemes().add(scheme);
150 } 152 }
151 153
152 bool SchemeRegistry::shouldLoadURLSchemeAsEmptyDocument(const String& scheme) 154 bool SchemeRegistry::shouldLoadURLSchemeAsEmptyDocument(const String& scheme)
153 { 155 {
154 return emptyDocumentSchemes().contains(scheme); 156 return emptyDocumentSchemes().contains(scheme);
155 } 157 }
156 158
157 } // namespace WebCore 159 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebCore/ChangeLog ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698