blob: a76986ede7c3703c7bf919b16b9f8a3efd3cbb5b [file] [log] [blame]
[email protected]7de84042012-02-21 16:04:501// Copyright (c) 2012 The Chromium Authors. All rights reserved.
[email protected]373c1062011-06-09 21:11:512// 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
avia9aa7a82015-12-25 03:06:317#include <stdint.h>
8
[email protected]373c1062011-06-09 21:11:519#include <string>
10#include <vector>
11
avia9aa7a82015-12-25 03:06:3112#include "build/build_config.h"
[email protected]7de84042012-02-21 16:04:5013#include "content/common/content_export.h"
[email protected]19a5c7442011-10-21 20:00:4114#include "content/public/common/common_param_traits.h"
[email protected]d7bd3e52013-07-21 04:29:2015#include "content/public/common/webplugininfo.h"
[email protected]373c1062011-06-09 21:11:5116#include "ipc/ipc_message_macros.h"
17
[email protected]7de84042012-02-21 16:04:5018#undef IPC_MESSAGE_EXPORT
19#define IPC_MESSAGE_EXPORT CONTENT_EXPORT
[email protected]373c1062011-06-09 21:11:5120#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]373c1062011-06-09 21:11:5126// Tells the utility process that it's running in batch mode.
27IPC_MESSAGE_CONTROL0(UtilityMsg_BatchMode_Started)
28
29// Tells the utility process that it can shutdown.
30IPC_MESSAGE_CONTROL0(UtilityMsg_BatchMode_Finished)
31
thestigc4cac8f2014-09-04 21:17:5032#if defined(OS_POSIX) && defined(ENABLE_PLUGINS)
[email protected]d4af1e72011-10-21 17:45:4333// 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.
35IPC_MESSAGE_CONTROL1(UtilityMsg_LoadPlugins,
[email protected]a7329162013-02-07 19:21:4836 std::vector<base::FilePath> /* plugin paths */)
[email protected]49125952011-09-27 18:05:1537#endif
[email protected]373c1062011-06-09 21:11:5138
39//------------------------------------------------------------------------------
40// Utility process host messages:
41// These are messages from the utility process to the browser.
42
thestigc4cac8f2014-09-04 21:17:5043#if defined(OS_POSIX) && defined(ENABLE_PLUGINS)
[email protected]d4af1e72011-10-21 17:45:4344// Notifies the browser when a plugin failed to load so the two processes can
45// keep the canonical list in sync.
[email protected]893e2812011-11-02 16:40:1646IPC_SYNC_MESSAGE_CONTROL2_0(UtilityHostMsg_LoadPluginFailed,
47 uint32_t /* index in the vector */,
[email protected]a7329162013-02-07 19:21:4848 base::FilePath /* path of plugin */)
[email protected]d4af1e72011-10-21 17:45:4349
50// Notifies the browser that a plugin in the vector sent by it has been loaded.
[email protected]893e2812011-11-02 16:40:1651IPC_SYNC_MESSAGE_CONTROL2_0(UtilityHostMsg_LoadedPlugin,
52 uint32_t /* index in the vector */,
[email protected]d7bd3e52013-07-21 04:29:2053 content::WebPluginInfo /* plugin info */)
thestigc4cac8f2014-09-04 21:17:5054#endif