• horo@chromium.org's avatar
    Move the worker script loading code to the worker process (phase:2/5) · 93caf451
    horo@chromium.org authored
    - Add content_security_policy and security_policy_type to ViewHostMsg_CreateWorker_Params and WorkerProcessMsg_CreateWorker_Params.
     It is needed because WorkerMsg_StartWorkerContext will be removed.
    - Implement workerScriptLoaded, workerScriptLoadFailed and selectAppChacheID.
    - Queue WebMessagePortChannel in WebSharedWorkerStub::OnConnect
      When we will add the script loading code in WebSharedWorkerImpl, the worker process can't respond to the connection request which is sent soon after the SharedWorker is created.
      So we have to create WebMessagePortChannelImpl in WebSharedWorkerStub::OnConnect.
    
    This is step 2 of moving the worker script loading code from the renderer process to the worker process.
    See: http://crbug.com/329786
    
    BUG=329786
    
    Review URL: https://codereview.chromium.org/115713004
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243864 0039d316-1c4b-4281-b951-d872f2087c98
    93caf451
websharedworkerclient_proxy.h 2.45 KB