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

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

Issue 10834350: Remove all the indexeddb-related utility process code (Closed) Base URL: http://git.chromium.org/chromium/src.git@opencursor-cleanup
Patch Set: Rebase, attempt to reland Created 8 years, 3 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
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"
15 #include "content/public/common/common_param_traits.h" 12 #include "content/public/common/common_param_traits.h"
16 #include "content/public/common/serialized_script_value.h" 13 #include "content/public/common/serialized_script_value.h"
17 #include "ipc/ipc_message_macros.h" 14 #include "ipc/ipc_message_macros.h"
18 #include "webkit/plugins/webplugininfo.h" 15 #include "webkit/plugins/webplugininfo.h"
19 16
20 #undef IPC_MESSAGE_EXPORT 17 #undef IPC_MESSAGE_EXPORT
21 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 18 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
22 #define IPC_MESSAGE_START UtilityMsgStart 19 #define IPC_MESSAGE_START UtilityMsgStart
23 20
24 //------------------------------------------------------------------------------ 21 //------------------------------------------------------------------------------
25 // Utility process messages: 22 // Utility process messages:
26 // These are messages from the browser to the utility process. 23 // These are messages from the browser to the utility process.
27 24
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
40 // Tells the utility process that it's running in batch mode. 25 // Tells the utility process that it's running in batch mode.
41 IPC_MESSAGE_CONTROL0(UtilityMsg_BatchMode_Started) 26 IPC_MESSAGE_CONTROL0(UtilityMsg_BatchMode_Started)
42 27
43 // Tells the utility process that it can shutdown. 28 // Tells the utility process that it can shutdown.
44 IPC_MESSAGE_CONTROL0(UtilityMsg_BatchMode_Finished) 29 IPC_MESSAGE_CONTROL0(UtilityMsg_BatchMode_Finished)
45 30
46 #if defined(OS_POSIX) 31 #if defined(OS_POSIX)
47 // Tells the utility process to load each plugin in the order specified by the 32 // Tells the utility process to load each plugin in the order specified by the
48 // vector. It will respond after each load with the WebPluginInfo. 33 // vector. It will respond after each load with the WebPluginInfo.
49 IPC_MESSAGE_CONTROL1(UtilityMsg_LoadPlugins, 34 IPC_MESSAGE_CONTROL1(UtilityMsg_LoadPlugins,
50 std::vector<FilePath> /* plugin paths */) 35 std::vector<FilePath> /* plugin paths */)
51 #endif 36 #endif
52 37
53 //------------------------------------------------------------------------------ 38 //------------------------------------------------------------------------------
54 // Utility process host messages: 39 // Utility process host messages:
55 // These are messages from the utility process to the browser. 40 // These are messages from the utility process to the browser.
56 41
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
68 #if defined(OS_POSIX) 42 #if defined(OS_POSIX)
69 // Notifies the browser when a plugin failed to load so the two processes can 43 // Notifies the browser when a plugin failed to load so the two processes can
70 // keep the canonical list in sync. 44 // keep the canonical list in sync.
71 IPC_SYNC_MESSAGE_CONTROL2_0(UtilityHostMsg_LoadPluginFailed, 45 IPC_SYNC_MESSAGE_CONTROL2_0(UtilityHostMsg_LoadPluginFailed,
72 uint32_t /* index in the vector */, 46 uint32_t /* index in the vector */,
73 FilePath /* path of plugin */) 47 FilePath /* path of plugin */)
74 48
75 // Notifies the browser that a plugin in the vector sent by it has been loaded. 49 // Notifies the browser that a plugin in the vector sent by it has been loaded.
76 IPC_SYNC_MESSAGE_CONTROL2_0(UtilityHostMsg_LoadedPlugin, 50 IPC_SYNC_MESSAGE_CONTROL2_0(UtilityHostMsg_LoadedPlugin,
77 uint32_t /* index in the vector */, 51 uint32_t /* index in the vector */,
78 webkit::WebPluginInfo /* plugin info */) 52 webkit::WebPluginInfo /* plugin info */)
79 #endif // OS_POSIX 53 #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