https://bugs.webkit.org/show_bug.cgi?id=76853
Reviewed by Darin Fisher.
* public/WebSharedWorker.h:
* src/WebSharedWorkerImpl.cpp:
* src/WebSharedWorkerImpl.h:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@105687
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-01-23 Tom Sepez <tsepez@chromium.org>
+
+ [chromium] Clean up old WebSharedWorker::startWorkerContext() method.
+ https://bugs.webkit.org/show_bug.cgi?id=76853
+
+ Reviewed by Darin Fisher.
+
+ * public/WebSharedWorker.h:
+ * src/WebSharedWorkerImpl.cpp:
+ * src/WebSharedWorkerImpl.h:
+
2012-01-23 Dmitry Lomov <dslomov@google.com>
[Chromium] Implement layoutTestController.workerThreadCount in DRT
// FIXME(atwilson): Remove this when we move the initial script loading into the worker process.
virtual bool isStarted() = 0;
- // API is transitioning from first form to the second. This function must stay virtual for now to prevent breaking chrome on webkit roll.
- // DEPRECATED
- virtual void startWorkerContext(const WebURL& scriptURL,
- const WebString& name,
- const WebString& userAgent,
- const WebString& sourceCode,
- long long scriptResourceAppCacheID) = 0;
-
- // Chromium will need to fallback to this method to avoid breaking during the next webkit roll.
- // It will become a pure virtual method once the chromium side is updated.
virtual void startWorkerContext(const WebURL& scriptURL,
const WebString& name,
const WebString& userAgent,
const WebString& sourceCode,
const WebString& contentSecurityPolicy,
WebContentSecurityPolicyType,
- long long scriptResourceAppCacheID) {
- startWorkerContext(scriptURL, name, userAgent, sourceCode, scriptResourceAppCacheID);
- }
+ long long scriptResourceAppCacheID) = 0;
class ConnectListener {
public:
workerContext->dispatchEvent(createConnectEvent(port));
}
-void WebSharedWorkerImpl::startWorkerContext(const WebURL& url, const WebString& name, const WebString& userAgent, const WebString& sourceCode, long long cacheId)
-{
- startWorkerContext(url, name, userAgent, sourceCode, "", WebContentSecurityPolicyTypeReportOnly, cacheId);
-}
-
void WebSharedWorkerImpl::startWorkerContext(const WebURL& url, const WebString& name, const WebString& userAgent, const WebString& sourceCode, const WebString& contentSecurityPolicy, WebContentSecurityPolicyType policyType, long long)
{
initializeLoader(url);
// WebSharedWorker methods:
virtual bool isStarted();
- // API is transitioning from first form to second form. The methods must remain virtual to avoid breaking chromium on the next webkit roll.
- virtual void startWorkerContext(const WebURL&, const WebString& name, const WebString& userAgent, const WebString& sourceCode, long long);
virtual void startWorkerContext(const WebURL&, const WebString& name, const WebString& userAgent, const WebString& sourceCode, const WebString& contentSecurityPolicy, WebContentSecurityPolicyType, long long cacheId);
virtual void connect(WebMessagePortChannel*, ConnectListener*);