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

Side by Side Diff: chrome/common/worker_messages.h

Issue 173193: Updating Worker.postMessage(), DOMWindow.postMessage(), and... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 4 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
« no previous file with comments | « chrome/common/webmessageportchannel_impl.cc ('k') | chrome/common/worker_messages_internal.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // 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 #include <vector>
12 13
13 #include "base/basictypes.h" 14 #include "base/basictypes.h"
14 #include "chrome/common/common_param_traits.h" 15 #include "chrome/common/common_param_traits.h"
15 #include "ipc/ipc_message_utils.h" 16 #include "ipc/ipc_message_utils.h"
16 17
17 typedef std::pair<string16, int> QueuedMessage; 18 typedef std::pair<string16, std::vector<int> > QueuedMessage;
18 19
19 // Parameters structure for WorkerHostMsg_PostConsoleMessageToWorkerObject, 20 // Parameters structure for WorkerHostMsg_PostConsoleMessageToWorkerObject,
20 // which has too many data parameters to be reasonably put in a predefined 21 // which has too many data parameters to be reasonably put in a predefined
21 // IPC message. The data members directly correspond to parameters of 22 // IPC message. The data members directly correspond to parameters of
22 // WebWorkerClient::postConsoleMessageToWorkerObject() 23 // WebWorkerClient::postConsoleMessageToWorkerObject()
23 struct WorkerHostMsg_PostConsoleMessageToWorkerObject_Params { 24 struct WorkerHostMsg_PostConsoleMessageToWorkerObject_Params {
24 int destination_identifier; 25 int destination_identifier;
25 int source_identifier; 26 int source_identifier;
26 int message_type; 27 int message_type;
27 int message_level; 28 int message_level;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 l->append(L")"); 75 l->append(L")");
75 } 76 }
76 }; 77 };
77 78
78 } // namespace IPC 79 } // namespace IPC
79 80
80 #define MESSAGES_INTERNAL_FILE "chrome/common/worker_messages_internal.h" 81 #define MESSAGES_INTERNAL_FILE "chrome/common/worker_messages_internal.h"
81 #include "ipc/ipc_message_macros.h" 82 #include "ipc/ipc_message_macros.h"
82 83
83 #endif // CHROME_COMMON_WORKER_MESSAGES_H_ 84 #endif // CHROME_COMMON_WORKER_MESSAGES_H_
OLDNEW
« no previous file with comments | « chrome/common/webmessageportchannel_impl.cc ('k') | chrome/common/worker_messages_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698