/macosx-10.10/WebCore-7600.1.25/page/ |
H A D | SecurityOrigin.h | 153 bool canAccessDatabase(const SecurityOrigin* topOrigin = 0) const { return canAccessStorage(topOrigin); }; 154 bool canAccessSessionStorage(const SecurityOrigin* topOrigin) const { return canAccessStorage(topOrigin, AlwaysAllowFromThirdParty); } 155 bool canAccessLocalStorage(const SecurityOrigin* topOrigin) const { return canAccessStorage(topOrigin); }; 156 bool canAccessSharedWorkers(const SecurityOrigin* topOrigin) const { return canAccessStorage(topOrigin); } 157 bool canAccessPluginStorage(const SecurityOrigin* topOrigin) const { return canAccessStorage(topOrigin); } [all...] |
H A D | SecurityOrigin.cpp | 375 bool SecurityOrigin::canAccessStorage(const SecurityOrigin* topOrigin, ShouldAllowFromThirdParty shouldAllowFromThirdParty) const argument 383 // FIXME: This check should be replaced with an ASSERT once we can guarantee that topOrigin is not null. 384 if (!topOrigin) 387 if (topOrigin->m_storageBlockingPolicy == BlockAllStorage) 393 if ((m_storageBlockingPolicy == BlockThirdPartyStorage || topOrigin->m_storageBlockingPolicy == BlockThirdPartyStorage) && topOrigin->isThirdParty(this))
|
H A D | PageGroup.cpp | 279 StorageNamespace* PageGroup::transientLocalStorage(SecurityOrigin* topOrigin) argument 281 auto result = m_transientLocalStorageMap.add(topOrigin, nullptr); 284 result.iterator->value = StorageNamespace::transientLocalStorageNamespace(this, topOrigin);
|
H A D | PageGroup.h | 94 StorageNamespace* transientLocalStorage(SecurityOrigin* topOrigin);
|
H A D | DOMWindow.cpp | 794 if (!document->securityOrigin()->canAccessSessionStorage(document->topOrigin())) { 858 if (!document->securityOrigin()->canAccessLocalStorage(document->topOrigin())) 859 storageArea = page->group().transientLocalStorage(document->topOrigin())->storageArea(document->securityOrigin());
|
/macosx-10.10/WebCore-7600.1.25/workers/ |
H A D | DedicatedWorkerThread.cpp | 41 PassRefPtr<DedicatedWorkerThread> DedicatedWorkerThread::create(const URL& scriptURL, const String& userAgent, const GroupSettings* settings, const String& sourceCode, WorkerLoaderProxy& workerLoaderProxy, WorkerObjectProxy& workerObjectProxy, WorkerThreadStartMode startMode, const String& contentSecurityPolicy, ContentSecurityPolicy::HeaderType contentSecurityPolicyType, const SecurityOrigin* topOrigin) argument 43 return adoptRef(new DedicatedWorkerThread(scriptURL, userAgent, settings, sourceCode, workerLoaderProxy, workerObjectProxy, startMode, contentSecurityPolicy, contentSecurityPolicyType, topOrigin)); 46 DedicatedWorkerThread::DedicatedWorkerThread(const URL& url, const String& userAgent, const GroupSettings* settings, const String& sourceCode, WorkerLoaderProxy& workerLoaderProxy, WorkerObjectProxy& workerObjectProxy, WorkerThreadStartMode startMode, const String& contentSecurityPolicy, ContentSecurityPolicy::HeaderType contentSecurityPolicyType, const SecurityOrigin* topOrigin) argument 47 : WorkerThread(url, userAgent, settings, sourceCode, workerLoaderProxy, workerObjectProxy, startMode, contentSecurityPolicy, contentSecurityPolicyType, topOrigin) 56 PassRefPtr<WorkerGlobalScope> DedicatedWorkerThread::createWorkerGlobalScope(const URL& url, const String& userAgent, std::unique_ptr<GroupSettings> settings, const String& contentSecurityPolicy, ContentSecurityPolicy::HeaderType contentSecurityPolicyType, PassRefPtr<SecurityOrigin> topOrigin) argument 58 return DedicatedWorkerGlobalScope::create(url, userAgent, WTF::move(settings), *this, contentSecurityPolicy, contentSecurityPolicyType, topOrigin);
|
H A D | DedicatedWorkerThread.h | 42 static PassRefPtr<DedicatedWorkerThread> create(const URL& scriptURL, const String& userAgent, const GroupSettings*, const String& sourceCode, WorkerLoaderProxy&, WorkerObjectProxy&, WorkerThreadStartMode, const String& contentSecurityPolicy, ContentSecurityPolicy::HeaderType, const SecurityOrigin* topOrigin); 47 virtual PassRefPtr<WorkerGlobalScope> createWorkerGlobalScope(const URL&, const String& userAgent, std::unique_ptr<GroupSettings>, const String& contentSecurityPolicy, ContentSecurityPolicy::HeaderType, PassRefPtr<SecurityOrigin> topOrigin) override; 51 DedicatedWorkerThread(const URL&, const String& userAgent, const GroupSettings*, const String& sourceCode, WorkerLoaderProxy&, WorkerObjectProxy&, WorkerThreadStartMode, const String& contentSecurityPolicy, ContentSecurityPolicy::HeaderType, const SecurityOrigin* topOrigin);
|
H A D | DedicatedWorkerGlobalScope.h | 45 static PassRefPtr<DedicatedWorkerGlobalScope> create(const URL&, const String& userAgent, std::unique_ptr<GroupSettings>, DedicatedWorkerThread&, const String& contentSecurityPolicy, ContentSecurityPolicy::HeaderType contentSecurityPolicyType, PassRefPtr<SecurityOrigin> topOrigin); 65 DedicatedWorkerGlobalScope(const URL&, const String& userAgent, std::unique_ptr<GroupSettings>, DedicatedWorkerThread&, PassRefPtr<SecurityOrigin> topOrigin);
|
H A D | DedicatedWorkerGlobalScope.cpp | 42 PassRefPtr<DedicatedWorkerGlobalScope> DedicatedWorkerGlobalScope::create(const URL& url, const String& userAgent, std::unique_ptr<GroupSettings> settings, DedicatedWorkerThread& thread, const String& contentSecurityPolicy, ContentSecurityPolicy::HeaderType contentSecurityPolicyType, PassRefPtr<SecurityOrigin> topOrigin) argument 44 RefPtr<DedicatedWorkerGlobalScope> context = adoptRef(new DedicatedWorkerGlobalScope(url, userAgent, WTF::move(settings), thread, topOrigin)); 49 DedicatedWorkerGlobalScope::DedicatedWorkerGlobalScope(const URL& url, const String& userAgent, std::unique_ptr<GroupSettings> settings, DedicatedWorkerThread& thread, PassRefPtr<SecurityOrigin> topOrigin) argument 50 : WorkerGlobalScope(url, userAgent, WTF::move(settings), thread, topOrigin)
|
H A D | SharedWorkerThread.h | 46 virtual PassRefPtr<WorkerGlobalScope> createWorkerGlobalScope(const URL&, const String& userAgent, std::unique_ptr<GroupSettings>, const String& contentSecurityPolicy, ContentSecurityPolicy::HeaderType, PassRefPtr<SecurityOrigin> topOrigin) override;
|
H A D | WorkerThread.h | 72 WorkerThread(const URL&, const String& userAgent, const GroupSettings*, const String& sourceCode, WorkerLoaderProxy&, WorkerReportingProxy&, WorkerThreadStartMode, const String& contentSecurityPolicy, ContentSecurityPolicy::HeaderType, const SecurityOrigin* topOrigin); 75 virtual PassRefPtr<WorkerGlobalScope> createWorkerGlobalScope(const URL&, const String& userAgent, std::unique_ptr<GroupSettings>, const String& contentSecurityPolicy, ContentSecurityPolicy::HeaderType, PassRefPtr<SecurityOrigin> topOrigin) = 0;
|
H A D | WorkerThread.cpp | 83 WorkerThreadStartupData(const URL& scriptURL, const String& userAgent, const GroupSettings*, const String& sourceCode, WorkerThreadStartMode, const String& contentSecurityPolicy, ContentSecurityPolicy::HeaderType contentSecurityPolicyType, const SecurityOrigin* topOrigin); 95 WorkerThreadStartupData::WorkerThreadStartupData(const URL& scriptURL, const String& userAgent, const GroupSettings* settings, const String& sourceCode, WorkerThreadStartMode startMode, const String& contentSecurityPolicy, ContentSecurityPolicy::HeaderType contentSecurityPolicyType, const SecurityOrigin* topOrigin) argument 102 , m_topOrigin(topOrigin ? topOrigin->isolatedCopy() : 0) 113 WorkerThread::WorkerThread(const URL& scriptURL, const String& userAgent, const GroupSettings* settings, const String& sourceCode, WorkerLoaderProxy& workerLoaderProxy, WorkerReportingProxy& workerReportingProxy, WorkerThreadStartMode startMode, const String& contentSecurityPolicy, ContentSecurityPolicy::HeaderType contentSecurityPolicyType, const SecurityOrigin* topOrigin) argument 117 , m_startupData(std::make_unique<WorkerThreadStartupData>(scriptURL, userAgent, settings, sourceCode, startMode, contentSecurityPolicy, contentSecurityPolicyType, topOrigin))
|
H A D | SharedWorker.cpp | 75 if (!document.securityOrigin()->canAccessSharedWorkers(document.topOrigin())) {
|
H A D | WorkerGlobalScope.h | 134 virtual SecurityOrigin* topOrigin() const override { return m_topOrigin.get(); } 144 WorkerGlobalScope(const URL&, const String& userAgent, std::unique_ptr<GroupSettings>, WorkerThread&, PassRefPtr<SecurityOrigin> topOrigin);
|
H A D | WorkerGlobalScope.cpp | 66 WorkerGlobalScope::WorkerGlobalScope(const URL& url, const String& userAgent, std::unique_ptr<GroupSettings> settings, WorkerThread& thread, PassRefPtr<SecurityOrigin> topOrigin) argument 77 , m_topOrigin(topOrigin)
|
H A D | WorkerMessagingProxy.cpp | 90 RefPtr<DedicatedWorkerThread> thread = DedicatedWorkerThread::create(scriptURL, userAgent, settings, sourceCode, *this, *this, startMode, document->contentSecurityPolicy()->deprecatedHeader(), document->contentSecurityPolicy()->deprecatedHeaderType(), document->topOrigin());
|
/macosx-10.10/WebCore-7600.1.25/Modules/indexeddb/ |
H A D | IDBFactory.cpp | 98 if (!context->securityOrigin()->canAccessDatabase(context->topOrigin())) { 104 m_backend->getDatabaseNames(request, *(context->securityOrigin()), *(context->topOrigin()), context, getIndexedDBDatabasePath(context)); 133 if (!context->securityOrigin()->canAccessDatabase(context->topOrigin())) { 141 m_backend->open(name, version, transactionId, request, databaseCallbacks, *(context->securityOrigin()), *(context->topOrigin())); 154 if (!context->securityOrigin()->canAccessDatabase(context->topOrigin())) { 160 m_backend->deleteDatabase(name, *context->securityOrigin(), *context->topOrigin(), request, context, getIndexedDBDatabasePath(context));
|
/macosx-10.10/WebCore-7600.1.25/Modules/webdatabase/ |
H A D | WorkerGlobalScopeWebDatabase.cpp | 48 if (dbManager.isAvailable() && context->securityOrigin()->canAccessDatabase(context->topOrigin())) { 63 if (dbManager.isAvailable() && context->securityOrigin()->canAccessDatabase(context->topOrigin())) {
|
H A D | DOMWindowWebDatabase.cpp | 51 if (dbManager.isAvailable() && window->document()->securityOrigin()->canAccessDatabase(window->document()->topOrigin())) {
|
/macosx-10.10/WebKit-7600.1.25/mac/Misc/ |
H A D | WebCache.mm | 206 WebCore::SecurityOrigin* topOrigin = nullptr; 209 topOrigin = core(frame)->document()->topOrigin(); 211 return WebCore::memoryCache()->addImageToCache(image, url, topOrigin ? topOrigin->cachePartition() : emptyString()); 223 WebCore::SecurityOrigin* topOrigin = nullptr; 226 topOrigin = core(frame)->document()->topOrigin(); 228 WebCore::memoryCache()->removeImageFromCache(url, topOrigin ? topOrigin [all...] |
/macosx-10.10/WebCore-7600.1.25/html/ |
H A D | DOMURL.cpp | 119 request.setCachePartition(scriptExecutionContext->topOrigin()->cachePartition());
|
/macosx-10.10/WebCore-7600.1.25/dom/ |
H A D | ScriptExecutionContext.h | 81 virtual SecurityOrigin* topOrigin() const = 0;
|
/macosx-10.10/WebCore-7600.1.25/loader/appcache/ |
H A D | ApplicationCacheHost.cpp | 494 return !origin->canAccessApplicationCache(frame->document()->topOrigin());
|
/macosx-10.10/WebCore-7600.1.25/loader/cache/ |
H A D | CachedResourceLoader.cpp | 198 request.mutableResourceRequest().setCachePartition(document()->topOrigin()->cachePartition()); 442 request.mutableResourceRequest().setCachePartition(document()->topOrigin()->cachePartition());
|
/macosx-10.10/WebCore-7600.1.25/loader/archive/cf/ |
H A D | LegacyWebArchive.cpp | 548 request.setCachePartition(frame->document()->topOrigin()->cachePartition());
|