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

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

Issue 1140203002: make file: an effectively unique origin (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix test Created 5 years, 7 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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 explicit SecurityOrigin(const KURL&); 219 explicit SecurityOrigin(const KURL&);
220 explicit SecurityOrigin(const SecurityOrigin*); 220 explicit SecurityOrigin(const SecurityOrigin*);
221 221
222 // FIXME: Rename this function to something more semantic. 222 // FIXME: Rename this function to something more semantic.
223 bool passesFileCheck(const SecurityOrigin*) const; 223 bool passesFileCheck(const SecurityOrigin*) const;
224 void buildRawString(StringBuilder&) const; 224 void buildRawString(StringBuilder&) const;
225 225
226 String m_protocol; 226 String m_protocol;
227 String m_host; 227 String m_host;
228 String m_domain; 228 String m_domain;
229 String m_filePath;
230 unsigned short m_port; 229 unsigned short m_port;
231 bool m_isUnique; 230 bool m_isUnique;
232 bool m_universalAccess; 231 bool m_universalAccess;
233 bool m_domainWasSetInDOM; 232 bool m_domainWasSetInDOM;
234 bool m_canLoadLocalResources; 233 bool m_canLoadLocalResources;
235 bool m_enforceFilePathSeparation; 234 bool m_enforceFilePathSeparation;
236 bool m_needsDatabaseIdentifierQuirkForFiles; 235 bool m_needsDatabaseIdentifierQuirkForFiles;
237 }; 236 };
238 237
239 } // namespace blink 238 } // namespace blink
240 239
241 #endif // SecurityOrigin_h 240 #endif // SecurityOrigin_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698