OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 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 |
| 7 #include <string> |
| 8 #include <vector> |
| 9 |
| 10 #include "base/basictypes.h" |
| 11 #include "content/common/common_param_traits.h" |
| 12 #include "content/common/indexed_db_key.h" |
| 13 #include "content/common/indexed_db_param_traits.h" |
| 14 #include "content/common/serialized_script_value.h" |
| 15 #include "ipc/ipc_message_macros.h" |
| 16 |
| 17 #define IPC_MESSAGE_START UtilityMsgStart |
| 18 |
| 19 //------------------------------------------------------------------------------ |
| 20 // Utility process messages: |
| 21 // These are messages from the browser to the utility process. |
| 22 |
| 23 // Tell the utility process to extract the given IDBKeyPath from the |
| 24 // SerializedScriptValue vector and reply with the corresponding IDBKeys. |
| 25 IPC_MESSAGE_CONTROL3(UtilityMsg_IDBKeysFromValuesAndKeyPath, |
| 26 int, // id |
| 27 std::vector<SerializedScriptValue>, |
| 28 string16) // IDBKeyPath |
| 29 |
| 30 IPC_MESSAGE_CONTROL3(UtilityMsg_InjectIDBKey, |
| 31 IndexedDBKey /* key */, |
| 32 SerializedScriptValue /* value */, |
| 33 string16 /* key path*/) |
| 34 |
| 35 // Tells the utility process that it's running in batch mode. |
| 36 IPC_MESSAGE_CONTROL0(UtilityMsg_BatchMode_Started) |
| 37 |
| 38 // Tells the utility process that it can shutdown. |
| 39 IPC_MESSAGE_CONTROL0(UtilityMsg_BatchMode_Finished) |
| 40 |
| 41 |
| 42 //------------------------------------------------------------------------------ |
| 43 // Utility process host messages: |
| 44 // These are messages from the utility process to the browser. |
| 45 |
| 46 // Reply when the utility process has succeeded in obtaining the value for |
| 47 // IDBKeyPath. |
| 48 IPC_MESSAGE_CONTROL2(UtilityHostMsg_IDBKeysFromValuesAndKeyPath_Succeeded, |
| 49 int /* id */, |
| 50 std::vector<IndexedDBKey> /* value */) |
| 51 |
| 52 // Reply when the utility process has failed in obtaining the value for |
| 53 // IDBKeyPath. |
| 54 IPC_MESSAGE_CONTROL1(UtilityHostMsg_IDBKeysFromValuesAndKeyPath_Failed, |
| 55 int /* id */) |
| 56 |
| 57 // Reply when the utility process has finished injecting an IDBKey into |
| 58 // a SerializedScriptValue. |
| 59 IPC_MESSAGE_CONTROL1(UtilityHostMsg_InjectIDBKey_Finished, |
| 60 SerializedScriptValue /* new value */) |
OLD | NEW |