Index: content/common/wake_lock_messages.h |
diff --git a/content/common/wake_lock_messages.h b/content/common/wake_lock_messages.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f324bf4f1901deddf5f5baa08ddaf56418ecdf92 |
--- /dev/null |
+++ b/content/common/wake_lock_messages.h |
@@ -0,0 +1,27 @@ |
+// Copyright (c) 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CONTENT_COMMON_WAKE_LOCK_MESSAGES_H_ |
+#define CONTENT_COMMON_WAKE_LOCK_MESSAGES_H_ |
+ |
+// IPC messages for wake lock. |
+ |
+#include "ipc/ipc_message_macros.h" |
+ |
+#define IPC_MESSAGE_START WakeLockMsgStart |
+ |
+// Asks the browser process to create wake lock if necessary. |
+IPC_MESSAGE_ROUTED0(WakeLockScreenViewHostMsg_RequestLock) |
+ |
+IPC_MESSAGE_ROUTED0(WakeLockScreenViewHostMsg_RequestUnlock) |
+ |
+// Answer from browser to renderer about created wakeLock |
+IPC_MESSAGE_ROUTED0(WakeLockScreenViewMsg_LockedSuccessful) |
+IPC_MESSAGE_ROUTED0(WakeLockScreenViewMsg_LockedFailed) |
+ |
+// Answer from browser to renderer about unlocked wakeLock |
+IPC_MESSAGE_ROUTED0(WakeLockScreenViewMsg_UnlockedSuccessful) |
+IPC_MESSAGE_ROUTED0(WakeLockScreenViewMsg_UnlockedFailed) |
+ |
+#endif // CONTENT_COMMON_WAKE_LOCK_MESSAGES_H_ |