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

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

Issue 665893002: Change SecurityOrigin from ThreadSafeRefCounted to RefCounted (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 2 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 | « no previous file | 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 20 matching lines...) Expand all
31 31
32 #include "platform/PlatformExport.h" 32 #include "platform/PlatformExport.h"
33 #include "wtf/ThreadSafeRefCounted.h" 33 #include "wtf/ThreadSafeRefCounted.h"
34 #include "wtf/text/WTFString.h" 34 #include "wtf/text/WTFString.h"
35 35
36 namespace blink { 36 namespace blink {
37 37
38 class KURL; 38 class KURL;
39 class SecurityOriginCache; 39 class SecurityOriginCache;
40 40
41 class PLATFORM_EXPORT SecurityOrigin : public ThreadSafeRefCounted<SecurityOrigi n> { 41 class PLATFORM_EXPORT SecurityOrigin : public RefCounted<SecurityOrigin> {
42 public: 42 public:
43 enum Policy { 43 enum Policy {
44 AlwaysDeny = 0, 44 AlwaysDeny = 0,
45 AlwaysAllow, 45 AlwaysAllow,
46 Ask 46 Ask
47 }; 47 };
48 48
49 static PassRefPtr<SecurityOrigin> create(const KURL&); 49 static PassRefPtr<SecurityOrigin> create(const KURL&);
50 static PassRefPtr<SecurityOrigin> createUnique(); 50 static PassRefPtr<SecurityOrigin> createUnique();
51 51
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 bool m_universalAccess; 232 bool m_universalAccess;
233 bool m_domainWasSetInDOM; 233 bool m_domainWasSetInDOM;
234 bool m_canLoadLocalResources; 234 bool m_canLoadLocalResources;
235 bool m_enforceFilePathSeparation; 235 bool m_enforceFilePathSeparation;
236 bool m_needsDatabaseIdentifierQuirkForFiles; 236 bool m_needsDatabaseIdentifierQuirkForFiles;
237 }; 237 };
238 238
239 } // namespace blink 239 } // namespace blink
240 240
241 #endif // SecurityOrigin_h 241 #endif // SecurityOrigin_h
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698