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

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

Issue 8318028: Gracefully handle child process death in out-of-process plugin loading. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Do not send the index Created 9 years, 2 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
« no previous file with comments | « content/browser/plugin_service.cc ('k') | content/content_tests.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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"
(...skipping 22 matching lines...) Expand all
33 SerializedScriptValue /* value */, 33 SerializedScriptValue /* value */,
34 string16 /* key path*/) 34 string16 /* key path*/)
35 35
36 // Tells the utility process that it's running in batch mode. 36 // Tells the utility process that it's running in batch mode.
37 IPC_MESSAGE_CONTROL0(UtilityMsg_BatchMode_Started) 37 IPC_MESSAGE_CONTROL0(UtilityMsg_BatchMode_Started)
38 38
39 // Tells the utility process that it can shutdown. 39 // Tells the utility process that it can shutdown.
40 IPC_MESSAGE_CONTROL0(UtilityMsg_BatchMode_Finished) 40 IPC_MESSAGE_CONTROL0(UtilityMsg_BatchMode_Finished)
41 41
42 #if defined(OS_POSIX) 42 #if defined(OS_POSIX)
43 // Tells the utility process to load the plugins from disk and send a list of 43 // Tells the utility process to load each plugin in the order specified by the
44 // WebPluginInfo objects back. 44 // vector. It will respond after each load with the WebPluginInfo.
45 IPC_MESSAGE_CONTROL3(UtilityMsg_LoadPlugins, 45 IPC_MESSAGE_CONTROL1(UtilityMsg_LoadPlugins,
46 std::vector<FilePath>, /* extra plugin paths */ 46 std::vector<FilePath> /* plugin paths */)
47 std::vector<FilePath>, /* extra plugin dirs */
48 std::vector<webkit::WebPluginInfo> /* internal plugins */)
49 #endif 47 #endif
50 48
51 //------------------------------------------------------------------------------ 49 //------------------------------------------------------------------------------
52 // Utility process host messages: 50 // Utility process host messages:
53 // These are messages from the utility process to the browser. 51 // These are messages from the utility process to the browser.
54 52
55 // Reply when the utility process has succeeded in obtaining the value for 53 // Reply when the utility process has succeeded in obtaining the value for
56 // IDBKeyPath. 54 // IDBKeyPath.
57 IPC_MESSAGE_CONTROL2(UtilityHostMsg_IDBKeysFromValuesAndKeyPath_Succeeded, 55 IPC_MESSAGE_CONTROL2(UtilityHostMsg_IDBKeysFromValuesAndKeyPath_Succeeded,
58 int /* id */, 56 int /* id */,
59 std::vector<IndexedDBKey> /* value */) 57 std::vector<IndexedDBKey> /* value */)
60 58
61 // Reply when the utility process has failed in obtaining the value for 59 // Reply when the utility process has failed in obtaining the value for
62 // IDBKeyPath. 60 // IDBKeyPath.
63 IPC_MESSAGE_CONTROL1(UtilityHostMsg_IDBKeysFromValuesAndKeyPath_Failed, 61 IPC_MESSAGE_CONTROL1(UtilityHostMsg_IDBKeysFromValuesAndKeyPath_Failed,
64 int /* id */) 62 int /* id */)
65 63
66 // Reply when the utility process has finished injecting an IDBKey into 64 // Reply when the utility process has finished injecting an IDBKey into
67 // a SerializedScriptValue. 65 // a SerializedScriptValue.
68 IPC_MESSAGE_CONTROL1(UtilityHostMsg_InjectIDBKey_Finished, 66 IPC_MESSAGE_CONTROL1(UtilityHostMsg_InjectIDBKey_Finished,
69 SerializedScriptValue /* new value */) 67 SerializedScriptValue /* new value */)
70 68
71 #if defined(OS_POSIX) 69 #if defined(OS_POSIX)
72 // After loading plugins from disk and querying each for MIME information, this 70 // Notifies the browser when a plugin failed to load so the two processes can
73 // sends the resulting WebPluginInfo back to the browser process. 71 // keep the canonical list in sync.
74 IPC_MESSAGE_CONTROL1(UtilityHostMsg_LoadedPlugins, 72 IPC_SYNC_MESSAGE_CONTROL1_0(UtilityHostMsg_LoadPluginFailed,
75 std::vector<webkit::WebPluginInfo> /* plugin infos */) 73 FilePath /* path of plugin */)
74
75 // Notifies the browser that a plugin in the vector sent by it has been loaded.
76 IPC_SYNC_MESSAGE_CONTROL1_0(UtilityHostMsg_LoadedPlugin,
77 webkit::WebPluginInfo /* plugin info */)
76 #endif // OS_POSIX 78 #endif // OS_POSIX
OLDNEW
« no previous file with comments | « content/browser/plugin_service.cc ('k') | content/content_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698