OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Multiply-included message file, so no include guard. | 5 // Multiply-included message file, so no include guard. |
6 | 6 |
7 #include <stdint.h> | |
8 | |
9 #include <string> | |
10 #include <vector> | |
11 | |
12 #include "build/build_config.h" | |
13 #include "content/common/content_export.h" | 7 #include "content/common/content_export.h" |
14 #include "content/public/common/common_param_traits.h" | |
15 #include "content/public/common/webplugininfo.h" | |
16 #include "ipc/ipc_message_macros.h" | 8 #include "ipc/ipc_message_macros.h" |
17 | 9 |
18 #undef IPC_MESSAGE_EXPORT | 10 #undef IPC_MESSAGE_EXPORT |
19 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 11 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
20 #define IPC_MESSAGE_START UtilityMsgStart | 12 #define IPC_MESSAGE_START UtilityMsgStart |
21 | 13 |
22 //------------------------------------------------------------------------------ | 14 //------------------------------------------------------------------------------ |
23 // Utility process messages: | 15 // Utility process messages: |
24 // These are messages from the browser to the utility process. | 16 // These are messages from the browser to the utility process. |
25 | 17 |
26 // Tells the utility process that it's running in batch mode. | 18 // Tells the utility process that it's running in batch mode. |
27 IPC_MESSAGE_CONTROL0(UtilityMsg_BatchMode_Started) | 19 IPC_MESSAGE_CONTROL0(UtilityMsg_BatchMode_Started) |
28 | 20 |
29 // Tells the utility process that it can shutdown. | 21 // Tells the utility process that it can shutdown. |
30 IPC_MESSAGE_CONTROL0(UtilityMsg_BatchMode_Finished) | 22 IPC_MESSAGE_CONTROL0(UtilityMsg_BatchMode_Finished) |
31 | |
32 #if defined(OS_POSIX) && defined(ENABLE_PLUGINS) | |
33 // Tells the utility process to load each plugin in the order specified by the | |
34 // vector. It will respond after each load with the WebPluginInfo. | |
35 IPC_MESSAGE_CONTROL1(UtilityMsg_LoadPlugins, | |
36 std::vector<base::FilePath> /* plugin paths */) | |
37 #endif | |
38 | |
39 //------------------------------------------------------------------------------ | |
40 // Utility process host messages: | |
41 // These are messages from the utility process to the browser. | |
42 | |
43 #if defined(OS_POSIX) && defined(ENABLE_PLUGINS) | |
44 // Notifies the browser when a plugin failed to load so the two processes can | |
45 // keep the canonical list in sync. | |
46 IPC_SYNC_MESSAGE_CONTROL2_0(UtilityHostMsg_LoadPluginFailed, | |
47 uint32_t /* index in the vector */, | |
48 base::FilePath /* path of plugin */) | |
49 | |
50 // Notifies the browser that a plugin in the vector sent by it has been loaded. | |
51 IPC_SYNC_MESSAGE_CONTROL2_0(UtilityHostMsg_LoadedPlugin, | |
52 uint32_t /* index in the vector */, | |
53 content::WebPluginInfo /* plugin info */) | |
54 #endif | |
OLD | NEW |