OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/worker/worker_thread.h" |
| 6 |
| 7 #include "chrome/common/worker_messages.h" |
| 8 #include "chrome/worker/webworkerclient_proxy.h" |
| 9 #include "chrome/worker/worker_process.h" |
| 10 |
| 11 WorkerThread::WorkerThread() |
| 12 : ChildThread(base::Thread::Options(MessageLoop::TYPE_DEFAULT, kV8StackSize)
) { |
| 13 } |
| 14 |
| 15 WorkerThread::~WorkerThread() { |
| 16 } |
| 17 |
| 18 void WorkerThread::OnControlMessageReceived(const IPC::Message& msg) { |
| 19 IPC_BEGIN_MESSAGE_MAP(WorkerThread, msg) |
| 20 IPC_MESSAGE_HANDLER(WorkerProcessMsg_CreateWorker, OnCreateWorker) |
| 21 IPC_END_MESSAGE_MAP() |
| 22 } |
| 23 |
| 24 void WorkerThread::OnCreateWorker(const GURL& url, int route_id) { |
| 25 WebWorkerClientProxy* worker = new WebWorkerClientProxy(url, route_id); |
| 26 } |
OLD | NEW |