| 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/webworkerclient_proxy.h" | 5 #include "chrome/worker/webworkerclient_proxy.h" |
| 6 | 6 |
| 7 #include "chrome/common/ipc_logging.h" | 7 #include "chrome/common/ipc_logging.h" |
| 8 #include "chrome/common/worker_messages.h" | 8 #include "chrome/common/worker_messages.h" |
| 9 #include "chrome/worker/worker_process.h" | 9 #include "chrome/worker/worker_process.h" |
| 10 #include "chrome/worker/worker_thread.h" | 10 #include "chrome/worker/worker_thread.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 int destination, | 40 int destination, |
| 41 int source, | 41 int source, |
| 42 int level, | 42 int level, |
| 43 const string16& message, | 43 const string16& message, |
| 44 int line_number, | 44 int line_number, |
| 45 const string16& source_url) { | 45 const string16& source_url) { |
| 46 Send(new WorkerHostMsg_PostConsoleMessageToWorkerObject( | 46 Send(new WorkerHostMsg_PostConsoleMessageToWorkerObject( |
| 47 route_id_, destination, source, level,message, line_number, source_url)); | 47 route_id_, destination, source, level,message, line_number, source_url)); |
| 48 } | 48 } |
| 49 | 49 |
| 50 void WebWorkerClientProxy::ConfirmMessageFromWorkerObject(bool has_pending_activ
ity) { | 50 void WebWorkerClientProxy::ConfirmMessageFromWorkerObject( |
| 51 bool has_pending_activity) { |
| 51 Send(new WorkerHostMsg_ConfirmMessageFromWorkerObject( | 52 Send(new WorkerHostMsg_ConfirmMessageFromWorkerObject( |
| 52 route_id_, has_pending_activity)); | 53 route_id_, has_pending_activity)); |
| 53 } | 54 } |
| 54 | 55 |
| 55 void WebWorkerClientProxy::ReportPendingActivity(bool has_pending_activity) { | 56 void WebWorkerClientProxy::ReportPendingActivity(bool has_pending_activity) { |
| 56 Send(new WorkerHostMsg_ReportPendingActivity( | 57 Send(new WorkerHostMsg_ReportPendingActivity( |
| 57 route_id_, has_pending_activity)); | 58 route_id_, has_pending_activity)); |
| 58 } | 59 } |
| 59 | 60 |
| 60 void WebWorkerClientProxy::WorkerContextDestroyed() { | 61 void WebWorkerClientProxy::WorkerContextDestroyed() { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 71 IPC_MESSAGE_FORWARD(WorkerMsg_StartWorkerContext, worker, | 72 IPC_MESSAGE_FORWARD(WorkerMsg_StartWorkerContext, worker, |
| 72 WebWorker::StartWorkerContext) | 73 WebWorker::StartWorkerContext) |
| 73 IPC_MESSAGE_FORWARD(WorkerMsg_TerminateWorkerContext, worker, | 74 IPC_MESSAGE_FORWARD(WorkerMsg_TerminateWorkerContext, worker, |
| 74 WebWorker::TerminateWorkerContext) | 75 WebWorker::TerminateWorkerContext) |
| 75 IPC_MESSAGE_FORWARD(WorkerMsg_PostMessageToWorkerContext, worker, | 76 IPC_MESSAGE_FORWARD(WorkerMsg_PostMessageToWorkerContext, worker, |
| 76 WebWorker::PostMessageToWorkerContext) | 77 WebWorker::PostMessageToWorkerContext) |
| 77 IPC_MESSAGE_FORWARD(WorkerMsg_WorkerObjectDestroyed, worker, | 78 IPC_MESSAGE_FORWARD(WorkerMsg_WorkerObjectDestroyed, worker, |
| 78 WebWorker::WorkerObjectDestroyed) | 79 WebWorker::WorkerObjectDestroyed) |
| 79 IPC_END_MESSAGE_MAP() | 80 IPC_END_MESSAGE_MAP() |
| 80 } | 81 } |
| OLD | NEW |