public:
virtual ~WebSharedWorkerConnector() { }
- // Returns false if the thread hasn't been started yet (script loading has not taken place).
- // FIXME(atwilson): Remove this when we move the initial script loading into the worker process.
- virtual bool isStarted() = 0;
-
- virtual void startWorkerContext(
- const WebURL& scriptURL,
- const WebString& name,
- const WebString& userAgent,
- const WebString& sourceCode,
- const WebString& contentSecurityPolicy,
- WebContentSecurityPolicyType,
- long long scriptResourceAppCacheID) = 0;
-
class ConnectListener {
public:
// Invoked once the connect event has been sent so the caller can free this object.
virtual void connected() = 0;
+ virtual void scriptLoadFailed() = 0;
};
// Sends a connect event to the SharedWorker context. The listener is invoked when this async operation completes.