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

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

Issue 392993005: Custom handlers should throw SecurityError exception if the URL's origin differs from the document'… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: baseURL is not required anymore Created 6 years, 4 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) 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 // Explicitly grant the ability to load local resources to this 134 // Explicitly grant the ability to load local resources to this
135 // SecurityOrigin. 135 // SecurityOrigin.
136 // 136 //
137 // Note: This method exists only to support backwards compatibility 137 // Note: This method exists only to support backwards compatibility
138 // with older versions of WebKit. 138 // with older versions of WebKit.
139 void grantLoadLocalResources(); 139 void grantLoadLocalResources();
140 140
141 // Explicitly grant the ability to access every other SecurityOrigin. 141 // Explicitly grant the ability to access every other SecurityOrigin.
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 setUniversalAccess(bool);
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 Policy canShowNotifications() const; 152 Policy canShowNotifications() const;
153 153
154 // Technically, we should always allow access to sessionStorage, but we 154 // Technically, we should always allow access to sessionStorage, but we
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 bool m_universalAccess; 221 bool m_universalAccess;
222 bool m_domainWasSetInDOM; 222 bool m_domainWasSetInDOM;
223 bool m_canLoadLocalResources; 223 bool m_canLoadLocalResources;
224 bool m_enforceFilePathSeparation; 224 bool m_enforceFilePathSeparation;
225 bool m_needsDatabaseIdentifierQuirkForFiles; 225 bool m_needsDatabaseIdentifierQuirkForFiles;
226 }; 226 };
227 227
228 } // namespace blink 228 } // namespace blink
229 229
230 #endif // SecurityOrigin_h 230 #endif // SecurityOrigin_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698