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

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

Issue 98603007: Launches a privileged utility process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleans up ChildProcessLauncher implementations. Created 6 years, 10 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/public/common/common_param_traits.h" 12 #include "content/public/common/common_param_traits.h"
13 #include "content/public/common/webplugininfo.h" 13 #include "content/public/common/webplugininfo.h"
14 #include "ipc/ipc_message_macros.h" 14 #include "ipc/ipc_message_macros.h"
15 15
16 #undef IPC_MESSAGE_EXPORT 16 #undef IPC_MESSAGE_EXPORT
17 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 17 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
18 #define IPC_MESSAGE_START UtilityMsgStart 18 #define IPC_MESSAGE_START UtilityMsgStart
19 19
20 //------------------------------------------------------------------------------ 20 //------------------------------------------------------------------------------
21 // Utility process messages: 21 // Utility process messages:
22 // These are messages from the browser to the utility process. 22 // These are messages from the browser to the utility process.
23 23
24 // Tells the utility process that it's running in batch mode. 24 // Tells the utility process that it's running in batch mode.
25 IPC_MESSAGE_CONTROL0(UtilityMsg_BatchMode_Started) 25 IPC_MESSAGE_CONTROL0(UtilityMsg_BatchMode_Started)
26 26
27 // Tells the utility process that it can shutdown. 27 // Tells the utility process that it can shutdown.
28 IPC_MESSAGE_CONTROL0(UtilityMsg_BatchMode_Finished) 28 IPC_MESSAGE_CONTROL0(UtilityMsg_BatchMode_Finished)
29 29
30 // Checks whether the utility process is running elevated.
jam 2014/01/30 21:41:03 hmm, we shouldn't be putting testing IPCs here. es
Drew Haven 2014/01/31 20:00:12 Ah, in order to create the test I needed the utili
31 IPC_MESSAGE_CONTROL0(UtilityMsg_IsElevated)
32
30 #if defined(OS_POSIX) 33 #if defined(OS_POSIX)
31 // Tells the utility process to load each plugin in the order specified by the 34 // Tells the utility process to load each plugin in the order specified by the
32 // vector. It will respond after each load with the WebPluginInfo. 35 // vector. It will respond after each load with the WebPluginInfo.
33 IPC_MESSAGE_CONTROL1(UtilityMsg_LoadPlugins, 36 IPC_MESSAGE_CONTROL1(UtilityMsg_LoadPlugins,
34 std::vector<base::FilePath> /* plugin paths */) 37 std::vector<base::FilePath> /* plugin paths */)
35 #endif 38 #endif
36 39
37 //------------------------------------------------------------------------------ 40 //------------------------------------------------------------------------------
38 // Utility process host messages: 41 // Utility process host messages:
39 // These are messages from the utility process to the browser. 42 // These are messages from the utility process to the browser.
40 43
41 #if defined(OS_POSIX) 44 #if defined(OS_POSIX)
42 // Notifies the browser when a plugin failed to load so the two processes can 45 // Notifies the browser when a plugin failed to load so the two processes can
43 // keep the canonical list in sync. 46 // keep the canonical list in sync.
44 IPC_SYNC_MESSAGE_CONTROL2_0(UtilityHostMsg_LoadPluginFailed, 47 IPC_SYNC_MESSAGE_CONTROL2_0(UtilityHostMsg_LoadPluginFailed,
45 uint32_t /* index in the vector */, 48 uint32_t /* index in the vector */,
46 base::FilePath /* path of plugin */) 49 base::FilePath /* path of plugin */)
47 50
48 // Notifies the browser that a plugin in the vector sent by it has been loaded. 51 // Notifies the browser that a plugin in the vector sent by it has been loaded.
49 IPC_SYNC_MESSAGE_CONTROL2_0(UtilityHostMsg_LoadedPlugin, 52 IPC_SYNC_MESSAGE_CONTROL2_0(UtilityHostMsg_LoadedPlugin,
50 uint32_t /* index in the vector */, 53 uint32_t /* index in the vector */,
51 content::WebPluginInfo /* plugin info */) 54 content::WebPluginInfo /* plugin info */)
52 #endif // OS_POSIX 55 #endif // OS_POSIX
56
57 // Response to tell the browser whether the Utility process is actually
58 // elevated.
59 IPC_MESSAGE_CONTROL1(UtilityHostMsg_IsElevated,
60 bool /* true if elevated */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698