Home
last modified time | relevance | path

Searched refs:scriptExecutionContext (Results 1 – 25 of 121) sorted by relevance

12345

/external/webkit/Source/WebKit/chromium/src/
DDatabaseObserver.cpp52 bool DatabaseObserver::canEstablishDatabase(ScriptExecutionContext* scriptExecutionContext, const S… in canEstablishDatabase() argument
54 ASSERT(scriptExecutionContext->isContextThread()); in canEstablishDatabase()
55 ASSERT(scriptExecutionContext->isDocument() || scriptExecutionContext->isWorkerContext()); in canEstablishDatabase()
56 if (scriptExecutionContext->isDocument()) { in canEstablishDatabase()
57 Document* document = static_cast<Document*>(scriptExecutionContext); in canEstablishDatabase()
61 WorkerContext* workerContext = static_cast<WorkerContext*>(scriptExecutionContext); in canEstablishDatabase()
72 ASSERT(database->scriptExecutionContext()->isContextThread()); in databaseOpened()
78 ASSERT(database->scriptExecutionContext()->isContextThread()); in databaseModified()
84 ASSERT(database->scriptExecutionContext()->isContextThread()); in databaseClosed()
DWorkerFileWriterCallbacksBridge.cpp131 … String& path, WorkerLoaderProxy* proxy, ScriptExecutionContext* scriptExecutionContext, AsyncFile… in WorkerFileWriterCallbacksBridge() argument
132 : WorkerContext::Observer(static_cast<WorkerContext*>(scriptExecutionContext)) in WorkerFileWriterCallbacksBridge()
134 , m_workerContext(scriptExecutionContext) in WorkerFileWriterCallbacksBridge()
141 …m_mode.append(String::number(static_cast<WorkerContext*>(scriptExecutionContext)->thread()->runLoo… in WorkerFileWriterCallbacksBridge()
182 …iterCallbacksBridge::runTaskOnMainThread(ScriptExecutionContext* scriptExecutionContext, PassRefPt… in runTaskOnMainThread() argument
186 taskToRun->performTask(scriptExecutionContext); in runTaskOnMainThread()
189 …erCallbacksBridge::runTaskOnWorkerThread(ScriptExecutionContext* scriptExecutionContext, PassRefPt… in runTaskOnWorkerThread() argument
193 taskToRun->performTask(scriptExecutionContext); in runTaskOnWorkerThread()
DSharedWorkerRepository.cpp90 const ScriptExecutionContext* loadingContext() { return m_worker->scriptExecutionContext(); } in loadingContext()
137 …m_scriptLoader.loadAsynchronously(m_worker->scriptExecutionContext(), m_url, DenyCrossOriginReques… in load()
165 …InspectorInstrumentation::scriptImported(m_worker->scriptExecutionContext(), m_scriptLoader.identi… in notifyFinished()
167 …m_webWorker->startWorkerContext(m_url, m_name, m_worker->scriptExecutionContext()->userAgent(m_url… in notifyFinished()
203 ASSERT(worker->scriptExecutionContext()->isDocument()); in connect()
204 Document* document = static_cast<Document*>(worker->scriptExecutionContext()); in connect()
/external/webkit/Source/WebCore/fileapi/
DFileReaderSync.cpp50 …uffer> FileReaderSync::readAsArrayBuffer(ScriptExecutionContext* scriptExecutionContext, Blob* blo… in readAsArrayBuffer() argument
56 startLoading(scriptExecutionContext, loader, blob, ec); in readAsArrayBuffer()
61 String FileReaderSync::readAsBinaryString(ScriptExecutionContext* scriptExecutionContext, Blob* blo… in readAsBinaryString() argument
67 startLoading(scriptExecutionContext, loader, blob, ec); in readAsBinaryString()
71 String FileReaderSync::readAsText(ScriptExecutionContext* scriptExecutionContext, Blob* blob, const… in readAsText() argument
78 startLoading(scriptExecutionContext, loader, blob, ec); in readAsText()
82 String FileReaderSync::readAsDataURL(ScriptExecutionContext* scriptExecutionContext, Blob* blob, Ex… in readAsDataURL() argument
89 startLoading(scriptExecutionContext, loader, blob, ec); in readAsDataURL()
93 void FileReaderSync::startLoading(ScriptExecutionContext* scriptExecutionContext, FileReaderLoader&… in startLoading() argument
95 loader.start(scriptExecutionContext, blob); in startLoading()
DDOMFileSystem.h73 scheduleCallback(scriptExecutionContext(), callback, callbackArg); in scheduleCallback()
101 void DOMFileSystem::scheduleCallback(ScriptExecutionContext* scriptExecutionContext, PassRefPtr<CB>… in scheduleCallback() argument
103 ASSERT(scriptExecutionContext->isContextThread()); in scheduleCallback()
105 scriptExecutionContext->postTask(new DispatchCallbackTask<CB, CBArg>(callback, arg)); in scheduleCallback()
/external/webkit/Source/WebCore/websockets/
DWebSocket.cpp120scriptExecutionContext()->addMessage(JSMessageSource, LogMessageType, ErrorMessageLevel, "Invalid … in connect()
127scriptExecutionContext()->addMessage(JSMessageSource, LogMessageType, ErrorMessageLevel, "Wrong ur… in connect()
133scriptExecutionContext()->addMessage(JSMessageSource, LogMessageType, ErrorMessageLevel, "URL has … in connect()
139scriptExecutionContext()->addMessage(JSMessageSource, LogMessageType, ErrorMessageLevel, "Wrong pr… in connect()
145scriptExecutionContext()->addMessage(JSMessageSource, LogMessageType, ErrorMessageLevel, makeStrin… in connect()
151 … m_channel = ThreadableWebSocketChannel::create(scriptExecutionContext(), this, m_url, m_protocol); in connect()
203 ScriptExecutionContext* WebSocket::scriptExecutionContext() const in scriptExecutionContext() function in WebCore::WebSocket
205 return ActiveDOMObject::scriptExecutionContext(); in scriptExecutionContext()
252 ASSERT(scriptExecutionContext()); in didConnect()
262 ASSERT(scriptExecutionContext()); in didReceiveMessage()
[all …]
/external/webkit/Source/WebCore/bindings/js/
DJSDOMGlobalObject.cpp94 JSDOMGlobalObject* toJSDOMGlobalObject(ScriptExecutionContext* scriptExecutionContext, JSC::ExecSta… in toJSDOMGlobalObject() argument
96 if (scriptExecutionContext->isDocument()) in toJSDOMGlobalObject()
97 return toJSDOMGlobalObject(static_cast<Document*>(scriptExecutionContext), exec); in toJSDOMGlobalObject()
100 if (scriptExecutionContext->isWorkerContext()) in toJSDOMGlobalObject()
101 … return static_cast<WorkerContext*>(scriptExecutionContext)->script()->workerContextWrapper(); in toJSDOMGlobalObject()
113 JSDOMGlobalObject* toJSDOMGlobalObject(ScriptExecutionContext* scriptExecutionContext, DOMWrapperWo… in toJSDOMGlobalObject() argument
115 if (scriptExecutionContext->isDocument()) in toJSDOMGlobalObject()
116 return toJSDOMGlobalObject(static_cast<Document*>(scriptExecutionContext), world); in toJSDOMGlobalObject()
119 if (scriptExecutionContext->isWorkerContext()) in toJSDOMGlobalObject()
120 … return static_cast<WorkerContext*>(scriptExecutionContext)->script()->workerContextWrapper(); in toJSDOMGlobalObject()
DJSEventListener.cpp65 void JSEventListener::handleEvent(ScriptExecutionContext* scriptExecutionContext, Event* event) in handleEvent() argument
67 ASSERT(scriptExecutionContext); in handleEvent()
68 if (!scriptExecutionContext || scriptExecutionContext->isJSExecutionForbidden()) in handleEvent()
73 JSObject* jsFunction = this->jsFunction(scriptExecutionContext); in handleEvent()
77 …JSDOMGlobalObject* globalObject = toJSDOMGlobalObject(scriptExecutionContext, m_isolatedWorld.get(… in handleEvent()
81 if (scriptExecutionContext->isDocument()) { in handleEvent()
121 retval = scriptExecutionContext->isDocument() in handleEvent()
126 retval = scriptExecutionContext->isDocument() in handleEvent()
135 if (scriptExecutionContext->isWorkerContext()) { in handleEvent()
138 static_cast<WorkerContext*>(scriptExecutionContext)->script()->forbidExecution(); in handleEvent()
DJSErrorHandler.cpp53 void JSErrorHandler::handleEvent(ScriptExecutionContext* scriptExecutionContext, Event* event) in handleEvent() argument
56 return JSEventListener::handleEvent(scriptExecutionContext, event); in handleEvent()
58 ASSERT(scriptExecutionContext); in handleEvent()
59 if (!scriptExecutionContext) in handleEvent()
66 JSObject* jsFunction = this->jsFunction(scriptExecutionContext); in handleEvent()
70 JSDOMGlobalObject* globalObject = toJSDOMGlobalObject(scriptExecutionContext, isolatedWorld()); in handleEvent()
DJSAudioContextCustom.cpp48 ScriptExecutionContext* scriptExecutionContext = jsConstructor->scriptExecutionContext(); in constructJSAudioContext() local
49 if (!scriptExecutionContext) in constructJSAudioContext()
52 if (!scriptExecutionContext->isDocument()) in constructJSAudioContext()
55 Document* document = static_cast<Document*>(scriptExecutionContext); in constructJSAudioContext()
/external/webkit/Source/WebCore/notifications/
DNotificationCenter.cpp49 if (!presenter() || !scriptExecutionContext()) in checkPermission()
51 return m_notificationPresenter->checkPermission(scriptExecutionContext()); in checkPermission()
56 if (!presenter() || !scriptExecutionContext()) in requestPermission()
58 m_notificationPresenter->requestPermission(scriptExecutionContext(), callback); in requestPermission()
68 m_notificationPresenter->cancelRequestsForPermission(scriptExecutionContext()); in disconnectFrame()
DNotificationCenter.h61 …return Notification::create(scriptExecutionContext()->completeURL(URI), scriptExecutionContext(), … in createHTMLNotification()
70 …NotificationContents contents(iconURI.isEmpty() ? KURL() : scriptExecutionContext()->completeURL(i… in createNotification()
71 return Notification::create(contents, scriptExecutionContext(), ec, this); in createNotification()
/external/webkit/Source/WebCore/bindings/scripts/test/V8/
DV8TestCallback.cpp62 v8::Handle<v8::Context> v8Context = toV8Context(scriptExecutionContext(), m_worldContext); in callbackWithNoParam()
72 return !invokeCallback(m_callback, 0, argv, callbackReturnValue, scriptExecutionContext()); in callbackWithNoParam()
82 v8::Handle<v8::Context> v8Context = toV8Context(scriptExecutionContext(), m_worldContext); in callbackWithClass1Param()
99 return !invokeCallback(m_callback, 1, argv, callbackReturnValue, scriptExecutionContext()); in callbackWithClass1Param()
109 v8::Handle<v8::Context> v8Context = toV8Context(scriptExecutionContext(), m_worldContext); in callbackWithClass2Param()
132 return !invokeCallback(m_callback, 2, argv, callbackReturnValue, scriptExecutionContext()); in callbackWithClass2Param()
142 v8::Handle<v8::Context> v8Context = toV8Context(scriptExecutionContext(), m_worldContext); in callbackWithStringList()
159 return !invokeCallback(m_callback, 1, argv, callbackReturnValue, scriptExecutionContext()); in callbackWithStringList()
/external/webkit/Source/WebCore/storage/
DSQLTransactionSync.cpp64 ASSERT(m_database->scriptExecutionContext()->isContextThread()); in SQLTransactionSync()
69 ASSERT(m_database->scriptExecutionContext()->isContextThread()); in ~SQLTransactionSync()
76 ASSERT(m_database->scriptExecutionContext()->isContextThread()); in executeSQL()
91 if (!m_database->scriptExecutionContext()->allowDatabaseAccess()) in executeSQL()
128 ASSERT(m_database->scriptExecutionContext()->isContextThread()); in begin()
158 ASSERT(m_database->scriptExecutionContext()->isContextThread()); in execute()
170 ASSERT(m_database->scriptExecutionContext()->isContextThread()); in commit()
199 ASSERT(m_database->scriptExecutionContext()->isContextThread()); in rollback()
DIDBRequest.cpp126 ASSERT(scriptExecutionContext()); in resetReadyState()
153 ASSERT(scriptExecutionContext()->isDocument()); in abort()
154 EventQueue* eventQueue = static_cast<Document*>(scriptExecutionContext())->eventQueue(); in abort()
200 RefPtr<IDBDatabase> idbDatabase = IDBDatabase::create(scriptExecutionContext(), backend); in onSuccess()
217 if (!scriptExecutionContext()) in onSuccess()
221 …RefPtr<IDBTransaction> frontend = IDBTransaction::create(scriptExecutionContext(), backend, m_sour… in onSuccess()
254 ScriptExecutionContext* IDBRequest::scriptExecutionContext() const in scriptExecutionContext() function in WebCore::IDBRequest
256 return ActiveDOMObject::scriptExecutionContext(); in scriptExecutionContext()
263 ASSERT(scriptExecutionContext()); in dispatchEvent()
312 if (!scriptExecutionContext()) in enqueueEvent()
[all …]
DIDBTransaction.cpp141 ScriptExecutionContext* IDBTransaction::scriptExecutionContext() const in scriptExecutionContext() function in WebCore::IDBTransaction
143 return ActiveDOMObject::scriptExecutionContext(); in scriptExecutionContext()
149 ASSERT(scriptExecutionContext()); in dispatchEvent()
186 if (!scriptExecutionContext()) in enqueueEvent()
189 ASSERT(scriptExecutionContext()->isDocument()); in enqueueEvent()
190 EventQueue* eventQueue = static_cast<Document*>(scriptExecutionContext())->eventQueue(); in enqueueEvent()
DIDBDatabase.cpp148 ASSERT(scriptExecutionContext()->isDocument()); in close()
149 EventQueue* eventQueue = static_cast<Document*>(scriptExecutionContext())->eventQueue(); in close()
185 ASSERT(scriptExecutionContext()->isDocument()); in enqueueEvent()
186 EventQueue* eventQueue = static_cast<Document*>(scriptExecutionContext())->eventQueue(); in enqueueEvent()
210 ScriptExecutionContext* IDBDatabase::scriptExecutionContext() const in scriptExecutionContext() function in WebCore::IDBDatabase
212 return ActiveDOMObject::scriptExecutionContext(); in scriptExecutionContext()
/external/webkit/Source/WebCore/bindings/generic/
DActiveDOMCallback.cpp99 ScriptExecutionContext* scriptExecutionContext() in scriptExecutionContext() function in WebCore::ActiveDOMObjectCallbackImpl
102 return ActiveDOMObject::scriptExecutionContext(); in scriptExecutionContext()
116 ScriptExecutionContext* context = implOwnPtr->scriptExecutionContext(); in destroyOnContextThread()
137 ScriptExecutionContext* ActiveDOMCallback::scriptExecutionContext() const in scriptExecutionContext() function in WebCore::ActiveDOMCallback
139 return m_impl->scriptExecutionContext(); in scriptExecutionContext()
/external/webkit/Source/WebCore/xml/
DXMLHttpRequest.cpp207 ASSERT(scriptExecutionContext()->isDocument()); in document()
208 return static_cast<Document*>(scriptExecutionContext()); in document()
214 if (scriptExecutionContext()->isWorkerContext()) in usesDashboardBackwardCompatibilityMode()
246 … if ((m_response.isHTTP() && !responseIsXML()) || scriptExecutionContext()->isWorkerContext()) { in responseXML()
352 if (!scriptExecutionContext()) in callReadyStateChangeListener()
355 …nCookie cookie = InspectorInstrumentation::willChangeXHRReadyState(scriptExecutionContext(), this); in callReadyStateChangeListener()
363 …strumentationCookie cookie = InspectorInstrumentation::willLoadXHR(scriptExecutionContext(), this); in callReadyStateChangeListener()
465 if (!scriptExecutionContext()) in initSend()
621 m_sameOriginRequest = scriptExecutionContext()->securityOrigin()->canRequest(m_url); in createRequest()
657 m_loader = ThreadableLoader::create(scriptExecutionContext(), this, request, options); in createRequest()
[all …]
/external/webkit/Source/WebCore/workers/
DWorkerScriptLoader.cpp54 void WorkerScriptLoader::loadSynchronously(ScriptExecutionContext* scriptExecutionContext, const KU… in loadSynchronously() argument
62 ASSERT(scriptExecutionContext->isWorkerContext()); in loadSynchronously()
69 …bleLoader::loadResourceSynchronously(static_cast<WorkerContext*>(scriptExecutionContext), *request… in loadSynchronously()
72 void WorkerScriptLoader::loadAsynchronously(ScriptExecutionContext* scriptExecutionContext, const K… in loadAsynchronously() argument
87 m_threadableLoader = ThreadableLoader::create(scriptExecutionContext, this, *request, options); in loadAsynchronously()
/external/webkit/Source/WebCore/storage/chromium/
DDatabaseTrackerChromium.cpp59 bool DatabaseTracker::canEstablishDatabase(ScriptExecutionContext* scriptExecutionContext, const St… in canEstablishDatabase() argument
61 …return DatabaseObserver::canEstablishDatabase(scriptExecutionContext, name, displayName, estimated… in canEstablishDatabase()
76 ASSERT(database->scriptExecutionContext()->isContextThread()); in addOpenDatabase()
122 if (!database->scriptExecutionContext()->isContextThread()) { in removeOpenDatabase()
123 … database->scriptExecutionContext()->postTask(TrackerRemoveOpenDatabaseTask::create(database)); in removeOpenDatabase()
195 if ((*dbSetIt)->scriptExecutionContext() == context) in interruptAllDatabasesForContext()
DSQLTransactionClientChromium.cpp65 if (!database->scriptExecutionContext()->isContextThread()) { in didCommitWriteTransaction()
66 database->scriptExecutionContext()->postTask(NotifyDatabaseChangedTask::create(database)); in didCommitWriteTransaction()
83 ASSERT(database->scriptExecutionContext()->isContextThread()); in didExceedQuota()
/external/webkit/Source/WebCore/page/
DDOMTimer.cpp73 scriptExecutionContext()->addTimeout(m_timeoutId, this); in DOMTimer()
84 if (scriptExecutionContext()) in ~DOMTimer()
85 scriptExecutionContext()->removeTimeout(m_timeoutId); in ~DOMTimer()
115 ScriptExecutionContext* context = scriptExecutionContext(); in fired()
175 double newMinimumInterval = scriptExecutionContext()->minimumTimerInterval(); in adjustMinimumTimerInterval()
/external/webkit/Source/WebCore/html/
DDOMURL.h42 …DOMURL> create(ScriptExecutionContext* scriptExecutionContext) { return adoptRef(new DOMURL(script… in create() argument
49 ScriptExecutionContext* scriptExecutionContext() const { return m_scriptExecutionContext; } in scriptExecutionContext() function
/external/webkit/Source/WebCore/bindings/v8/custom/
DV8SQLTransactionCustom.cpp93 ScriptExecutionContext* scriptExecutionContext = getScriptExecutionContext(); in executeSqlCallback() local
94 if (!scriptExecutionContext) in executeSqlCallback()
101 callback = V8SQLStatementCallback::create(args[2], scriptExecutionContext); in executeSqlCallback()
108 errorCallback = V8SQLStatementErrorCallback::create(args[3], scriptExecutionContext); in executeSqlCallback()

12345