diff options
author | bulach@chromium.org <bulach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-18 13:54:59 +0000 |
---|---|---|
committer | bulach@chromium.org <bulach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-18 13:54:59 +0000 |
commit | 67a7851692243892bb2d7253d2f1974833e57432 (patch) | |
tree | 98bdc05f9af985cbcc8b9cc6ea0ccf472a85b588 /chrome/common/utility_messages_internal.h | |
parent | e40cc399bd7e438579d6fcfa208103c12caf9052 (diff) | |
download | chromium_src-67a7851692243892bb2d7253d2f1974833e57432.zip chromium_src-67a7851692243892bb2d7253d2f1974833e57432.tar.gz chromium_src-67a7851692243892bb2d7253d2f1974833e57432.tar.bz2 |
Adds IDBKeyPath parser / extractor, and provides a mechanism to call it sandboxed.
TEST=idbkeypathextractor_browsertests.cc
Review URL: http://codereview.chromium.org/3043037
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56524 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/utility_messages_internal.h')
-rw-r--r-- | chrome/common/utility_messages_internal.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/chrome/common/utility_messages_internal.h b/chrome/common/utility_messages_internal.h index 9231501..08dd347 100644 --- a/chrome/common/utility_messages_internal.h +++ b/chrome/common/utility_messages_internal.h @@ -48,6 +48,20 @@ IPC_BEGIN_MESSAGES(Utility) gfx::Rect, // Render Area int, // DPI std::vector<printing::PageRange>) + + // Tell the utility process to extract the given IDBKeyPath from the + // SerializedScriptValue vector and reply with the corresponding IDBKeys. + IPC_MESSAGE_CONTROL3(UtilityMsg_IDBKeysFromValuesAndKeyPath, + int, // id + std::vector<SerializedScriptValue>, + string16) // IDBKeyPath + + // Tells the utility process that it's running in batch mode. + IPC_MESSAGE_CONTROL0(UtilityMsg_BatchMode_Started) + + // Tells the utility process that it can shutdown. + IPC_MESSAGE_CONTROL0(UtilityMsg_BatchMode_Finished) + IPC_END_MESSAGES(Utility) //------------------------------------------------------------------------------ @@ -111,4 +125,15 @@ IPC_BEGIN_MESSAGES(UtilityHost) LOGFONT /* font data */) #endif // defined(OS_WIN) + // Reply when the utility process has succeeded in obtaining the value for + // IDBKeyPath. + IPC_MESSAGE_CONTROL2(UtilityHostMsg_IDBKeysFromValuesAndKeyPath_Succeeded, + int /* id */, + std::vector<IndexedDBKey> /* value */) + + // Reply when the utility process has failed in obtaining the value for + // IDBKeyPath. + IPC_MESSAGE_CONTROL1(UtilityHostMsg_IDBKeysFromValuesAndKeyPath_Failed, + int /* id */) + IPC_END_MESSAGES(UtilityHost) |