Searched refs:topOrigin (Results 1 - 25 of 30) sorted by relevance

12

/macosx-10.10/WebCore-7600.1.25/page/
H A DSecurityOrigin.h153 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 DSecurityOrigin.cpp375 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 DPageGroup.cpp279 StorageNamespace* PageGroup::transientLocalStorage(SecurityOrigin* topOrigin) argument
281 auto result = m_transientLocalStorageMap.add(topOrigin, nullptr);
284 result.iterator->value = StorageNamespace::transientLocalStorageNamespace(this, topOrigin);
H A DPageGroup.h94 StorageNamespace* transientLocalStorage(SecurityOrigin* topOrigin);
H A DDOMWindow.cpp794 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 DDedicatedWorkerThread.cpp41 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 DDedicatedWorkerThread.h42 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 DDedicatedWorkerGlobalScope.h45 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 DDedicatedWorkerGlobalScope.cpp42 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 DSharedWorkerThread.h46 virtual PassRefPtr<WorkerGlobalScope> createWorkerGlobalScope(const URL&, const String& userAgent, std::unique_ptr<GroupSettings>, const String& contentSecurityPolicy, ContentSecurityPolicy::HeaderType, PassRefPtr<SecurityOrigin> topOrigin) override;
H A DWorkerThread.h72 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 DWorkerThread.cpp83 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 DSharedWorker.cpp75 if (!document.securityOrigin()->canAccessSharedWorkers(document.topOrigin())) {
H A DWorkerGlobalScope.h134 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 DWorkerGlobalScope.cpp66 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 DWorkerMessagingProxy.cpp90 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 DIDBFactory.cpp98 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 DWorkerGlobalScopeWebDatabase.cpp48 if (dbManager.isAvailable() && context->securityOrigin()->canAccessDatabase(context->topOrigin())) {
63 if (dbManager.isAvailable() && context->securityOrigin()->canAccessDatabase(context->topOrigin())) {
H A DDOMWindowWebDatabase.cpp51 if (dbManager.isAvailable() && window->document()->securityOrigin()->canAccessDatabase(window->document()->topOrigin())) {
/macosx-10.10/WebKit-7600.1.25/mac/Misc/
H A DWebCache.mm206 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 DDOMURL.cpp119 request.setCachePartition(scriptExecutionContext->topOrigin()->cachePartition());
/macosx-10.10/WebCore-7600.1.25/dom/
H A DScriptExecutionContext.h81 virtual SecurityOrigin* topOrigin() const = 0;
/macosx-10.10/WebCore-7600.1.25/loader/appcache/
H A DApplicationCacheHost.cpp494 return !origin->canAccessApplicationCache(frame->document()->topOrigin());
/macosx-10.10/WebCore-7600.1.25/loader/cache/
H A DCachedResourceLoader.cpp198 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 DLegacyWebArchive.cpp548 request.setCachePartition(frame->document()->topOrigin()->cachePartition());

Completed in 245 milliseconds

12