Searched refs:scriptURL (Results 1 - 25 of 31) sorted by relevance

12

/external/chromium_org/third_party/WebKit/Source/core/workers/
H A DAbstractWorker.cpp54 KURL scriptURL = executionContext()->completeURL(url); local
55 if (!scriptURL.isValid()) {
61 if (!executionContext()->securityOrigin()->canRequest(scriptURL)) {
62 exceptionState.throwSecurityError("Script at '" + scriptURL.elidedString() + "' cannot be accessed from origin '" + executionContext()->securityOrigin()->toString() + "'.");
66 if (executionContext()->contentSecurityPolicy() && !executionContext()->contentSecurityPolicy()->allowWorkerContextFromSource(scriptURL)) {
67 exceptionState.throwSecurityError("Access to the script at '" + scriptURL.elidedString() + "' is denied by the document's Content Security Policy.");
71 return scriptURL;
H A DWorkerThreadStartupData.h50 static PassOwnPtrWillBeRawPtr<WorkerThreadStartupData> create(const KURL& scriptURL, const String& userAgent, const String& sourceCode, WorkerThreadStartMode startMode, const String& contentSecurityPolicy, ContentSecurityPolicyHeaderType contentSecurityPolicyType, PassOwnPtrWillBeRawPtr<WorkerClients> workerClients) argument
52 return adoptPtrWillBeNoop(new WorkerThreadStartupData(scriptURL, userAgent, sourceCode, startMode, contentSecurityPolicy, contentSecurityPolicyType, workerClients));
68 WorkerThreadStartupData(const KURL& scriptURL, const String& userAgent, const String& sourceCode, WorkerThreadStartMode, const String& contentSecurityPolicy, ContentSecurityPolicyHeaderType contentSecurityPolicyType, PassOwnPtrWillBeRawPtr<WorkerClients>);
H A DSharedWorker.idl36 Constructor(DOMString scriptURL, optional DOMString name = null),
H A DWorkerThreadStartupData.cpp38 WorkerThreadStartupData::WorkerThreadStartupData(const KURL& scriptURL, const String& userAgent, const String& sourceCode, WorkerThreadStartMode startMode, const String& contentSecurityPolicy, ContentSecurityPolicyHeaderType contentSecurityPolicyType, PassOwnPtrWillBeRawPtr<WorkerClients> workerClients) argument
39 : m_scriptURL(scriptURL.copy())
H A DWorkerGlobalScopeProxy.h49 virtual void startWorkerGlobalScope(const KURL& scriptURL, const String& userAgent, const String& sourceCode, WorkerThreadStartMode) = 0;
H A DSharedWorker.cpp80 KURL scriptURL = worker->resolveURL(url, exceptionState); local
81 if (scriptURL.isEmpty())
85 document->frame()->loader().client()->sharedWorkerRepositoryClient()->connect(worker.get(), remotePort.release(), scriptURL, name, exceptionState);
H A DWorker.cpp68 KURL scriptURL = worker->resolveURL(url, exceptionState); local
69 if (scriptURL.isEmpty())
73 worker->m_scriptLoader->loadAsynchronously(*context, scriptURL, DenyCrossOriginRequests, worker.get());
H A DWorkerMessagingProxy.h56 virtual void startWorkerGlobalScope(const KURL& scriptURL, const String& userAgent, const String& sourceCode, WorkerThreadStartMode) OVERRIDE;
H A DWorkerMessagingProxy.cpp110 void WorkerMessagingProxy::startWorkerGlobalScope(const KURL& scriptURL, const String& userAgent, const String& sourceCode, WorkerThreadStartMode startMode) argument
120 OwnPtrWillBeRawPtr<WorkerThreadStartupData> startupData = WorkerThreadStartupData::create(scriptURL, userAgent, sourceCode, startMode, document->contentSecurityPolicy()->deprecatedHeader(), document->contentSecurityPolicy()->deprecatedHeaderType(), m_workerClients.release());
126 m_workerInspectorProxy->workerThreadCreated(m_executionContext.get(), m_workerThread.get(), scriptURL);
H A DWorkerThread.cpp248 KURL scriptURL = m_startupData->m_scriptURL; local
283 script->evaluate(ScriptSourceCode(sourceCode, scriptURL));
/external/chromium_org/third_party/WebKit/public/web/
H A DWebEmbeddedWorkerStartData.h56 WebURL scriptURL; member in struct:blink::WebEmbeddedWorkerStartData
H A DWebSharedWorker.h51 const WebURL& scriptURL,
H A DWebPermissionClient.h70 virtual bool allowScriptFromSource(bool enabledPerSettings, const WebURL& scriptURL) { return enabledPerSettings; } argument
/external/chromium_org/third_party/WebKit/Source/modules/serviceworkers/
H A DServiceWorker.idl52 readonly attribute ScalarValueString scriptURL;
H A DServiceWorkerContainerTest.cpp134 virtual void registerServiceWorker(const WebURL& pattern, const WebURL& scriptURL, WebServiceWorkerRegistrationCallbacks* callbacks) OVERRIDE
172 void testRegisterRejected(const String& scriptURL, const String& scope, const ScriptValueTest& valueTest) argument
182 ScriptPromise promise = container->registerServiceWorker(scriptState(), scriptURL, *options);
280 virtual void registerServiceWorker(const WebURL& pattern, const WebURL& scriptURL, WebServiceWorkerRegistrationCallbacks* callbacks) OVERRIDE
284 m_owner.m_registerScriptURL = scriptURL;
H A DServiceWorker.h62 String scriptURL() const;
H A DServiceWorkerContainer.cpp131 KURL scriptURL = executionContext->completeURL(url); local
132 scriptURL.removeFragmentIdentifier();
133 if (!documentOrigin->canRequest(scriptURL)) {
138 m_provider->registerServiceWorker(patternURL, scriptURL, new CallbackPromiseAdapter<ServiceWorkerRegistration, ServiceWorkerError>(resolver));
/external/chromium_org/content/shell/renderer/test_runner/
H A Dweb_permissions.h25 const blink::WebURL& scriptURL);
H A Dweb_permissions.cc41 const blink::WebURL& scriptURL) {
46 NormalizeLayoutTestURL(scriptURL.spec()) + "): " +
40 allowScriptFromSource(bool enabled_per_settings, const blink::WebURL& scriptURL) argument
/external/chromium_org/third_party/WebKit/Source/core/html/
H A DHTMLFrameElementBase.cpp86 KURL scriptURL;
89 scriptURL = url;
95 if (!contentFrame() || scriptURL.isEmpty() || !contentFrame()->isLocalFrame())
97 toLocalFrame(contentFrame())->script().executeScriptIfJavaScriptURL(scriptURL);
/external/chromium_org/third_party/WebKit/Source/web/
H A DWebEmbeddedWorkerImpl.cpp83 void load(ExecutionContext* loadingContext, const KURL& scriptURL, const Closure& callback) argument
89 *loadingContext, scriptURL, DenyCrossOriginRequests, this);
309 webFrame->frame()->loader().load(FrameLoadRequest(0, ResourceRequest(m_workerStartData.scriptURL), SubstituteData(buffer, "text/html", "UTF-8", KURL())));
366 m_workerStartData.scriptURL,
409 KURL scriptURL = m_mainScriptLoader->url(); local
412 scriptURL,
427 m_workerInspectorProxy->workerThreadCreated(document, m_workerThread.get(), scriptURL);
H A DWebSharedWorkerImpl.cpp89 void load(ExecutionContext* loadingContext, const KURL& scriptURL, const Closure& receiveResponseCallback, const Closure& finishCallback) argument
96 *loadingContext, scriptURL, DenyCrossOriginRequests, this);
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/bindings/
H A DCompilerScriptMapping.js244 var scriptURL = WebInspector.ParsedURL.completeURL(script.target().resourceTreeModel.inspectedPageURL(), script.sourceURL); variable
245 if (!scriptURL) {
249 var sourceMapURL = WebInspector.ParsedURL.completeURL(scriptURL, script.sourceMapURL);
270 WebInspector.SourceMap.load(sourceMapURL, scriptURL, sourceMapLoaded.bind(this));
/external/chromium_org/content/renderer/service_worker/
H A Dembedded_worker_dispatcher.cc86 start_data.scriptURL = params.script_url;
/external/chromium_org/third_party/WebKit/Source/core/dom/
H A DScriptLoader.cpp246 KURL scriptURL = (!elementDocument.isInDocumentWrite() && m_parserInserted) ? elementDocument.url() : KURL(); local
247 executeScript(ScriptSourceCode(scriptContent(), scriptURL, position));

Completed in 391 milliseconds

12