1a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)// Copyright (c) 2013 The Chromium Authors. All rights reserved.
2a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
3a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)// found in the LICENSE file.
4a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)
5a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)// Multiply-included message file, no include guard.
6a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)
7a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)#include "ipc/ipc_message_macros.h"
8a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)#include "ipc/ipc_param_traits.h"
9a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)#include "ipc/ipc_platform_file.h"
10a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)
11a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)#undef IPC_MESSAGE_EXPORT
12a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)#define IPC_MESSAGE_EXPORT CONTENT_EXPORT
13a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)#define IPC_MESSAGE_START PowerMonitorMsgStart
14a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)
15a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)// Messages sent from the browser to the renderer/gpu.
16a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)
17a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)// Notification of a change in power status of the computer, such
18a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)// as from switching between battery and A/C power.
19a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)IPC_MESSAGE_CONTROL1(PowerMonitorMsg_PowerStateChange,
20a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)    bool /* on_battery_power */)
21a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)
22a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)// Notification that the system is suspending.
23a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)IPC_MESSAGE_CONTROL0(PowerMonitorMsg_Suspend)
24a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)
25a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)// Notification that the system is resuming.
26a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)IPC_MESSAGE_CONTROL0(PowerMonitorMsg_Resume)
27