| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/worker/worker_thread.h" | 5 #include "chrome/worker/worker_thread.h" |
| 6 | 6 |
| 7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
| 8 #include "base/thread_local.h" | 8 #include "base/thread_local.h" |
| 9 #include "chrome/common/worker_messages.h" | 9 #include "chrome/common/worker_messages.h" |
| 10 #include "chrome/worker/webworkerclient_proxy.h" | 10 #include "chrome/worker/webworkerclient_proxy.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 } | 47 } |
| 48 | 48 |
| 49 void WorkerThread::OnControlMessageReceived(const IPC::Message& msg) { | 49 void WorkerThread::OnControlMessageReceived(const IPC::Message& msg) { |
| 50 IPC_BEGIN_MESSAGE_MAP(WorkerThread, msg) | 50 IPC_BEGIN_MESSAGE_MAP(WorkerThread, msg) |
| 51 IPC_MESSAGE_HANDLER(WorkerProcessMsg_CreateWorker, OnCreateWorker) | 51 IPC_MESSAGE_HANDLER(WorkerProcessMsg_CreateWorker, OnCreateWorker) |
| 52 IPC_END_MESSAGE_MAP() | 52 IPC_END_MESSAGE_MAP() |
| 53 } | 53 } |
| 54 | 54 |
| 55 void WorkerThread::OnCreateWorker(const GURL& url, int route_id) { | 55 void WorkerThread::OnCreateWorker(const GURL& url, int route_id) { |
| 56 // WebWorkerClientProxy owns itself. | 56 // WebWorkerClientProxy owns itself. |
| 57 WebWorkerClientProxy* worker = new WebWorkerClientProxy(url, route_id); | 57 new WebWorkerClientProxy(url, route_id); |
| 58 } | 58 } |
| OLD | NEW |