Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(596)

Side by Side Diff: content/common/utility_messages.h

Issue 10873028: Revert 152873 - Remove all the indexeddb-related utility process code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Multiply-included message file, so no include guard. 5 // Multiply-included message file, so no include guard.
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
12 #include "content/common/indexed_db/indexed_db_key.h"
13 #include "content/common/indexed_db/indexed_db_key_path.h"
14 #include "content/common/indexed_db/indexed_db_param_traits.h"
12 #include "content/public/common/common_param_traits.h" 15 #include "content/public/common/common_param_traits.h"
13 #include "content/public/common/serialized_script_value.h" 16 #include "content/public/common/serialized_script_value.h"
14 #include "ipc/ipc_message_macros.h" 17 #include "ipc/ipc_message_macros.h"
15 #include "webkit/plugins/webplugininfo.h" 18 #include "webkit/plugins/webplugininfo.h"
16 19
17 #undef IPC_MESSAGE_EXPORT 20 #undef IPC_MESSAGE_EXPORT
18 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 21 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
19 #define IPC_MESSAGE_START UtilityMsgStart 22 #define IPC_MESSAGE_START UtilityMsgStart
20 23
21 //------------------------------------------------------------------------------ 24 //------------------------------------------------------------------------------
22 // Utility process messages: 25 // Utility process messages:
23 // These are messages from the browser to the utility process. 26 // These are messages from the browser to the utility process.
24 27
28 // Tell the utility process to extract the given IDBKeyPath from the
29 // SerializedScriptValue vector and reply with the corresponding IDBKeys.
30 IPC_MESSAGE_CONTROL3(UtilityMsg_IDBKeysFromValuesAndKeyPath,
31 int, // id
32 std::vector<content::SerializedScriptValue>,
33 content::IndexedDBKeyPath)
34
35 IPC_MESSAGE_CONTROL3(UtilityMsg_InjectIDBKey,
36 content::IndexedDBKey /* key */,
37 content::SerializedScriptValue /* value */,
38 content::IndexedDBKeyPath)
39
25 // Tells the utility process that it's running in batch mode. 40 // Tells the utility process that it's running in batch mode.
26 IPC_MESSAGE_CONTROL0(UtilityMsg_BatchMode_Started) 41 IPC_MESSAGE_CONTROL0(UtilityMsg_BatchMode_Started)
27 42
28 // Tells the utility process that it can shutdown. 43 // Tells the utility process that it can shutdown.
29 IPC_MESSAGE_CONTROL0(UtilityMsg_BatchMode_Finished) 44 IPC_MESSAGE_CONTROL0(UtilityMsg_BatchMode_Finished)
30 45
31 #if defined(OS_POSIX) 46 #if defined(OS_POSIX)
32 // Tells the utility process to load each plugin in the order specified by the 47 // Tells the utility process to load each plugin in the order specified by the
33 // vector. It will respond after each load with the WebPluginInfo. 48 // vector. It will respond after each load with the WebPluginInfo.
34 IPC_MESSAGE_CONTROL1(UtilityMsg_LoadPlugins, 49 IPC_MESSAGE_CONTROL1(UtilityMsg_LoadPlugins,
35 std::vector<FilePath> /* plugin paths */) 50 std::vector<FilePath> /* plugin paths */)
36 #endif 51 #endif
37 52
38 //------------------------------------------------------------------------------ 53 //------------------------------------------------------------------------------
39 // Utility process host messages: 54 // Utility process host messages:
40 // These are messages from the utility process to the browser. 55 // These are messages from the utility process to the browser.
41 56
57 // Reply when the utility process has succeeded in obtaining the value for
58 // IDBKeyPath.
59 IPC_MESSAGE_CONTROL2(UtilityHostMsg_IDBKeysFromValuesAndKeyPath_Succeeded,
60 int /* id */,
61 std::vector<content::IndexedDBKey> /* value */)
62
63 // Reply when the utility process has finished injecting an IDBKey into
64 // a SerializedScriptValue.
65 IPC_MESSAGE_CONTROL1(UtilityHostMsg_InjectIDBKey_Finished,
66 content::SerializedScriptValue /* new value */)
67
42 #if defined(OS_POSIX) 68 #if defined(OS_POSIX)
43 // Notifies the browser when a plugin failed to load so the two processes can 69 // Notifies the browser when a plugin failed to load so the two processes can
44 // keep the canonical list in sync. 70 // keep the canonical list in sync.
45 IPC_SYNC_MESSAGE_CONTROL2_0(UtilityHostMsg_LoadPluginFailed, 71 IPC_SYNC_MESSAGE_CONTROL2_0(UtilityHostMsg_LoadPluginFailed,
46 uint32_t /* index in the vector */, 72 uint32_t /* index in the vector */,
47 FilePath /* path of plugin */) 73 FilePath /* path of plugin */)
48 74
49 // Notifies the browser that a plugin in the vector sent by it has been loaded. 75 // Notifies the browser that a plugin in the vector sent by it has been loaded.
50 IPC_SYNC_MESSAGE_CONTROL2_0(UtilityHostMsg_LoadedPlugin, 76 IPC_SYNC_MESSAGE_CONTROL2_0(UtilityHostMsg_LoadedPlugin,
51 uint32_t /* index in the vector */, 77 uint32_t /* index in the vector */,
52 webkit::WebPluginInfo /* plugin info */) 78 webkit::WebPluginInfo /* plugin info */)
53 #endif // OS_POSIX 79 #endif // OS_POSIX
OLDNEW
« no previous file with comments | « content/browser/indexed_db/idbbindingutilities_browsertest.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698