Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Side by Side Diff: chrome/worker/worker_thread.cc

Issue 155015: Make workers functional on OSX and Linux. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« chrome/browser/worker_host/worker_process_host.cc ('K') | « chrome/worker/worker_main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698