X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2FWebKit%2FSource%2Fweb%2FSharedWorkerRepositoryClientImpl.cpp;h=468492ecf38acccb0d2ba0e965df2991f0cd48ef;hb=4a1a0bdd01eef90b0826a0e761d3379d3715c10f;hp=5c3778fd2ab2d3d20dbff4501b6205c5ac2606cd;hpb=b1be5ca53587d23e7aeb77b26861fdc0a181ffd8;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/WebKit/Source/web/SharedWorkerRepositoryClientImpl.cpp b/src/third_party/WebKit/Source/web/SharedWorkerRepositoryClientImpl.cpp index 5c3778f..468492e 100644 --- a/src/third_party/WebKit/Source/web/SharedWorkerRepositoryClientImpl.cpp +++ b/src/third_party/WebKit/Source/web/SharedWorkerRepositoryClientImpl.cpp @@ -31,8 +31,8 @@ #include "config.h" #include "web/SharedWorkerRepositoryClientImpl.h" -#include "bindings/v8/ExceptionMessages.h" -#include "bindings/v8/ExceptionState.h" +#include "bindings/core/v8/ExceptionMessages.h" +#include "bindings/core/v8/ExceptionState.h" #include "core/dom/ExceptionCode.h" #include "core/dom/ExecutionContext.h" #include "core/events/Event.h" @@ -52,8 +52,6 @@ #include "public/web/WebSharedWorkerRepositoryClient.h" #include "web/WebLocalFrameImpl.h" -using namespace WebCore; - namespace blink { // Callback class that keeps the SharedWorker and WebSharedWorker objects alive while connecting. @@ -83,11 +81,12 @@ private: SharedWorkerConnector::~SharedWorkerConnector() { - m_worker->unsetPreventGC(); + m_worker->setIsBeingConnected(false); } + void SharedWorkerConnector::connect() { - m_worker->setPreventGC(); + m_worker->setIsBeingConnected(true); m_webWorkerConnector->connect(m_channel.leakPtr(), this); } @@ -117,7 +116,7 @@ void SharedWorkerRepositoryClientImpl::connect(PassRefPtrWillBeRawPtrexecutionContext()->isDocument()); Document* document = toDocument(worker->executionContext()); - OwnPtr webWorkerConnector = adoptPtr(m_client->createSharedWorkerConnector(url, name, getId(document), worker->executionContext()->contentSecurityPolicy()->deprecatedHeader(), static_cast(worker->executionContext()->contentSecurityPolicy()->deprecatedHeaderType()))); + OwnPtr webWorkerConnector = adoptPtr(m_client->createSharedWorkerConnector(url, name, getId(document), worker->executionContext()->contentSecurityPolicy()->deprecatedHeader(), static_cast(worker->executionContext()->contentSecurityPolicy()->deprecatedHeaderType()))); if (!webWorkerConnector) { // Existing worker does not match this url, so return an error back to the caller. exceptionState.throwDOMException(URLMismatchError, "The location of the SharedWorker named '" + name + "' does not exactly match the provided URL ('" + url.elidedString() + "').");