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

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

Issue 1495013002: Check for equality of the URL's origin in replaceState/pushState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Put all logic in History.cpp, change tests to testharness Created 5 years 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 // SecurityOrigin. 144 // SecurityOrigin.
145 // 145 //
146 // Note: This method exists only to support backwards compatibility 146 // Note: This method exists only to support backwards compatibility
147 // with older versions of WebKit. 147 // with older versions of WebKit.
148 void grantLoadLocalResources(); 148 void grantLoadLocalResources();
149 149
150 // Explicitly grant the ability to access every other SecurityOrigin. 150 // Explicitly grant the ability to access every other SecurityOrigin.
151 // 151 //
152 // WARNING: This is an extremely powerful ability. Use with caution! 152 // WARNING: This is an extremely powerful ability. Use with caution!
153 void grantUniversalAccess(); 153 void grantUniversalAccess();
154 bool isGrantedUniversalAccess() const { return m_universalAccess; }
154 155
155 bool canAccessDatabase() const { return !isUnique(); } 156 bool canAccessDatabase() const { return !isUnique(); }
156 bool canAccessLocalStorage() const { return !isUnique(); } 157 bool canAccessLocalStorage() const { return !isUnique(); }
157 bool canAccessSharedWorkers() const { return !isUnique(); } 158 bool canAccessSharedWorkers() const { return !isUnique(); }
158 bool canAccessServiceWorkers() const { return !isUnique(); } 159 bool canAccessServiceWorkers() const { return !isUnique(); }
159 bool canAccessCookies() const { return !isUnique(); } 160 bool canAccessCookies() const { return !isUnique(); }
160 bool canAccessPasswordManager() const { return !isUnique(); } 161 bool canAccessPasswordManager() const { return !isUnique(); }
161 bool canAccessFileSystem() const { return !isUnique(); } 162 bool canAccessFileSystem() const { return !isUnique(); }
162 bool canAccessCacheStorage() const { return !isUnique(); } 163 bool canAccessCacheStorage() const { return !isUnique(); }
163 164
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 bool m_universalAccess; 263 bool m_universalAccess;
263 bool m_domainWasSetInDOM; 264 bool m_domainWasSetInDOM;
264 bool m_canLoadLocalResources; 265 bool m_canLoadLocalResources;
265 bool m_blockLocalAccessFromLocalOrigin; 266 bool m_blockLocalAccessFromLocalOrigin;
266 bool m_needsDatabaseIdentifierQuirkForFiles; 267 bool m_needsDatabaseIdentifierQuirkForFiles;
267 }; 268 };
268 269
269 } // namespace blink 270 } // namespace blink
270 271
271 #endif // SecurityOrigin_h 272 #endif // SecurityOrigin_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698