[email protected] | 7de8404 | 2012-02-21 16:04:50 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
[email protected] | 373c106 | 2011-06-09 21:11:51 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
4 | |||||
5 | // Multiply-included message file, so no include guard. | ||||
6 | |||||
avi | a9aa7a8 | 2015-12-25 03:06:31 | [diff] [blame] | 7 | #include <stdint.h> |
8 | |||||
[email protected] | 373c106 | 2011-06-09 21:11:51 | [diff] [blame] | 9 | #include <string> |
10 | #include <vector> | ||||
11 | |||||
avi | a9aa7a8 | 2015-12-25 03:06:31 | [diff] [blame] | 12 | #include "build/build_config.h" |
[email protected] | 7de8404 | 2012-02-21 16:04:50 | [diff] [blame] | 13 | #include "content/common/content_export.h" |
[email protected] | 19a5c744 | 2011-10-21 20:00:41 | [diff] [blame] | 14 | #include "content/public/common/common_param_traits.h" |
[email protected] | d7bd3e5 | 2013-07-21 04:29:20 | [diff] [blame] | 15 | #include "content/public/common/webplugininfo.h" |
[email protected] | 373c106 | 2011-06-09 21:11:51 | [diff] [blame] | 16 | #include "ipc/ipc_message_macros.h" |
17 | |||||
[email protected] | 7de8404 | 2012-02-21 16:04:50 | [diff] [blame] | 18 | #undef IPC_MESSAGE_EXPORT |
19 | #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | ||||
[email protected] | 373c106 | 2011-06-09 21:11:51 | [diff] [blame] | 20 | #define IPC_MESSAGE_START UtilityMsgStart |
21 | |||||
22 | //------------------------------------------------------------------------------ | ||||
23 | // Utility process messages: | ||||
24 | // These are messages from the browser to the utility process. | ||||
25 | |||||
[email protected] | 373c106 | 2011-06-09 21:11:51 | [diff] [blame] | 26 | // Tells the utility process that it's running in batch mode. |
27 | IPC_MESSAGE_CONTROL0(UtilityMsg_BatchMode_Started) | ||||
28 | |||||
29 | // Tells the utility process that it can shutdown. | ||||
30 | IPC_MESSAGE_CONTROL0(UtilityMsg_BatchMode_Finished) | ||||
31 | |||||
thestig | c4cac8f | 2014-09-04 21:17:50 | [diff] [blame] | 32 | #if defined(OS_POSIX) && defined(ENABLE_PLUGINS) |
[email protected] | d4af1e7 | 2011-10-21 17:45:43 | [diff] [blame] | 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, | ||||
[email protected] | a732916 | 2013-02-07 19:21:48 | [diff] [blame] | 36 | std::vector<base::FilePath> /* plugin paths */) |
[email protected] | 4912595 | 2011-09-27 18:05:15 | [diff] [blame] | 37 | #endif |
[email protected] | 373c106 | 2011-06-09 21:11:51 | [diff] [blame] | 38 | |
39 | //------------------------------------------------------------------------------ | ||||
40 | // Utility process host messages: | ||||
41 | // These are messages from the utility process to the browser. | ||||
42 | |||||
thestig | c4cac8f | 2014-09-04 21:17:50 | [diff] [blame] | 43 | #if defined(OS_POSIX) && defined(ENABLE_PLUGINS) |
[email protected] | d4af1e7 | 2011-10-21 17:45:43 | [diff] [blame] | 44 | // Notifies the browser when a plugin failed to load so the two processes can |
45 | // keep the canonical list in sync. | ||||
[email protected] | 893e281 | 2011-11-02 16:40:16 | [diff] [blame] | 46 | IPC_SYNC_MESSAGE_CONTROL2_0(UtilityHostMsg_LoadPluginFailed, |
47 | uint32_t /* index in the vector */, | ||||
[email protected] | a732916 | 2013-02-07 19:21:48 | [diff] [blame] | 48 | base::FilePath /* path of plugin */) |
[email protected] | d4af1e7 | 2011-10-21 17:45:43 | [diff] [blame] | 49 | |
50 | // Notifies the browser that a plugin in the vector sent by it has been loaded. | ||||
[email protected] | 893e281 | 2011-11-02 16:40:16 | [diff] [blame] | 51 | IPC_SYNC_MESSAGE_CONTROL2_0(UtilityHostMsg_LoadedPlugin, |
52 | uint32_t /* index in the vector */, | ||||
[email protected] | d7bd3e5 | 2013-07-21 04:29:20 | [diff] [blame] | 53 | content::WebPluginInfo /* plugin info */) |
thestig | c4cac8f | 2014-09-04 21:17:50 | [diff] [blame] | 54 | #endif |