| 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 // Defines messages between the browser and worker process, as well as between | 5 // Defines messages between the browser and worker process, as well as between |
| 6 // the renderer and worker process. | 6 // the renderer and worker process. |
| 7 | 7 |
| 8 #ifndef CHROME_COMMON_WORKER_MESSAGES_H_ | 8 #ifndef CHROME_COMMON_WORKER_MESSAGES_H_ |
| 9 #define CHROME_COMMON_WORKER_MESSAGES_H_ | 9 #define CHROME_COMMON_WORKER_MESSAGES_H_ |
| 10 | 10 |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
| 14 #include "chrome/common/ipc_message_utils.h" | 14 #include "chrome/common/common_param_traits.h" |
| 15 #include "ipc/ipc_message_utils.h" |
| 15 | 16 |
| 16 // Parameters structure for WorkerHostMsg_PostConsoleMessageToWorkerObject, | 17 // Parameters structure for WorkerHostMsg_PostConsoleMessageToWorkerObject, |
| 17 // which has too many data parameters to be reasonably put in a predefined | 18 // which has too many data parameters to be reasonably put in a predefined |
| 18 // IPC message. The data members directly correspond to parameters of | 19 // IPC message. The data members directly correspond to parameters of |
| 19 // WebWorkerClient::postConsoleMessageToWorkerObject() | 20 // WebWorkerClient::postConsoleMessageToWorkerObject() |
| 20 struct WorkerHostMsg_PostConsoleMessageToWorkerObject_Params { | 21 struct WorkerHostMsg_PostConsoleMessageToWorkerObject_Params { |
| 21 int destination_identifier; | 22 int destination_identifier; |
| 22 int source_identifier; | 23 int source_identifier; |
| 23 int message_type; | 24 int message_type; |
| 24 int message_level; | 25 int message_level; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 LogParam(p.line_number, l); | 69 LogParam(p.line_number, l); |
| 69 l->append(L", "); | 70 l->append(L", "); |
| 70 LogParam(p.source_url, l); | 71 LogParam(p.source_url, l); |
| 71 l->append(L")"); | 72 l->append(L")"); |
| 72 } | 73 } |
| 73 }; | 74 }; |
| 74 | 75 |
| 75 } // namespace IPC | 76 } // namespace IPC |
| 76 | 77 |
| 77 #define MESSAGES_INTERNAL_FILE "chrome/common/worker_messages_internal.h" | 78 #define MESSAGES_INTERNAL_FILE "chrome/common/worker_messages_internal.h" |
| 78 #include "chrome/common/ipc_message_macros.h" | 79 #include "ipc/ipc_message_macros.h" |
| 79 | 80 |
| 80 #endif // CHROME_COMMON_WORKER_MESSAGES_H_ | 81 #endif // CHROME_COMMON_WORKER_MESSAGES_H_ |
| OLD | NEW |