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

Side by Side Diff: Source/platform/weborigin/SecurityOrigin.h

Issue 1032623008: Expose Cache Storage API in global window/worker scope (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update webexposed expectations Created 5 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/platform/RuntimeEnabledFeatures.in ('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) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 // 142 //
143 // WARNING: This is an extremely powerful ability. Use with caution! 143 // WARNING: This is an extremely powerful ability. Use with caution!
144 void grantUniversalAccess(); 144 void grantUniversalAccess();
145 145
146 bool canAccessDatabase() const { return !isUnique(); }; 146 bool canAccessDatabase() const { return !isUnique(); };
147 bool canAccessLocalStorage() const { return !isUnique(); }; 147 bool canAccessLocalStorage() const { return !isUnique(); };
148 bool canAccessSharedWorkers() const { return !isUnique(); } 148 bool canAccessSharedWorkers() const { return !isUnique(); }
149 bool canAccessCookies() const { return !isUnique(); } 149 bool canAccessCookies() const { return !isUnique(); }
150 bool canAccessPasswordManager() const { return !isUnique(); } 150 bool canAccessPasswordManager() const { return !isUnique(); }
151 bool canAccessFileSystem() const { return !isUnique(); } 151 bool canAccessFileSystem() const { return !isUnique(); }
152 bool canAccessCacheStorage() const { return !isUnique(); };
152 Policy canShowNotifications() const; 153 Policy canShowNotifications() const;
153 154
154 // Technically, we should always allow access to sessionStorage, but we 155 // Technically, we should always allow access to sessionStorage, but we
155 // currently don't handle creating a sessionStorage area for unique 156 // currently don't handle creating a sessionStorage area for unique
156 // origins. 157 // origins.
157 bool canAccessSessionStorage() const { return !isUnique(); } 158 bool canAccessSessionStorage() const { return !isUnique(); }
158 159
159 // The local SecurityOrigin is the most privileged SecurityOrigin. 160 // The local SecurityOrigin is the most privileged SecurityOrigin.
160 // The local SecurityOrigin can script any document, navigate to local 161 // The local SecurityOrigin can script any document, navigate to local
161 // resources, and can set arbitrary headers on XMLHttpRequests. 162 // resources, and can set arbitrary headers on XMLHttpRequests.
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 bool m_universalAccess; 233 bool m_universalAccess;
233 bool m_domainWasSetInDOM; 234 bool m_domainWasSetInDOM;
234 bool m_canLoadLocalResources; 235 bool m_canLoadLocalResources;
235 bool m_enforceFilePathSeparation; 236 bool m_enforceFilePathSeparation;
236 bool m_needsDatabaseIdentifierQuirkForFiles; 237 bool m_needsDatabaseIdentifierQuirkForFiles;
237 }; 238 };
238 239
239 } // namespace blink 240 } // namespace blink
240 241
241 #endif // SecurityOrigin_h 242 #endif // SecurityOrigin_h
OLDNEW
« no previous file with comments | « Source/platform/RuntimeEnabledFeatures.in ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698