OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "base/file_path.h" | 11 #include "base/file_path.h" |
12 #include "base/platform_file.h" | 12 #include "base/platform_file.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "chrome/common/common_param_traits.h" | 14 #include "chrome/common/common_param_traits.h" |
15 #include "chrome/common/extensions/update_manifest.h" | 15 #include "chrome/common/extensions/update_manifest.h" |
16 #include "content/common/common_param_traits.h" | 16 #include "content/common/common_param_traits.h" |
17 #include "content/common/indexed_db_key.h" | 17 #include "content/common/indexed_db_key.h" |
18 #include "content/common/indexed_db_param_traits.h" | 18 #include "content/common/indexed_db_param_traits.h" |
19 #include "content/common/serialized_script_value.h" | 19 #include "content/common/serialized_script_value.h" |
20 #include "ipc/ipc_message_macros.h" | 20 #include "ipc/ipc_message_macros.h" |
21 #include "ipc/ipc_message_utils.h" | 21 #include "ipc/ipc_message_utils.h" |
22 #include "printing/backend/print_backend.h" | 22 #include "printing/backend/print_backend.h" |
23 #include "printing/page_range.h" | 23 #include "printing/page_range.h" |
24 #include "third_party/skia/include/core/SkBitmap.h" | 24 #include "third_party/skia/include/core/SkBitmap.h" |
25 #include "ui/gfx/rect.h" | 25 #include "ui/gfx/rect.h" |
26 | 26 |
27 #define IPC_MESSAGE_START UtilityMsgStart | 27 #define IPC_MESSAGE_START UtilityMsgStart |
28 | 28 |
| 29 // Singly-included secton, not yet converted |
| 30 #ifndef CHROME_COMMON_UTILITY_MESSAGES_H_ |
| 31 #define CHROME_COMMON_UTILITY_MESSAGES_H_ |
| 32 |
29 class FilePath; | 33 class FilePath; |
30 class IndexedDBKey; | 34 class IndexedDBKey; |
31 class SerializedScriptValue; | 35 class SerializedScriptValue; |
32 class SkBitmap; | 36 class SkBitmap; |
33 | 37 |
| 38 #endif // CHROME_COMMON_UTILITY_MESSAGES_H_ |
| 39 |
34 // Traits for UpdateManifest::Result. | 40 // Traits for UpdateManifest::Result. |
35 IPC_STRUCT_TRAITS_BEGIN(UpdateManifest::Result) | 41 IPC_STRUCT_TRAITS_BEGIN(UpdateManifest::Result) |
36 IPC_STRUCT_TRAITS_MEMBER(extension_id) | 42 IPC_STRUCT_TRAITS_MEMBER(extension_id) |
37 IPC_STRUCT_TRAITS_MEMBER(version) | 43 IPC_STRUCT_TRAITS_MEMBER(version) |
38 IPC_STRUCT_TRAITS_MEMBER(browser_min_version) | 44 IPC_STRUCT_TRAITS_MEMBER(browser_min_version) |
39 IPC_STRUCT_TRAITS_MEMBER(package_hash) | 45 IPC_STRUCT_TRAITS_MEMBER(package_hash) |
40 IPC_STRUCT_TRAITS_MEMBER(crx_url) | 46 IPC_STRUCT_TRAITS_MEMBER(crx_url) |
41 IPC_STRUCT_TRAITS_END() | 47 IPC_STRUCT_TRAITS_END() |
42 | 48 |
43 // Traits for UpdateManifest::Results | 49 // Traits for UpdateManifest::Results |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 // Tell the utility process to extract the given IDBKeyPath from the | 84 // Tell the utility process to extract the given IDBKeyPath from the |
79 // SerializedScriptValue vector and reply with the corresponding IDBKeys. | 85 // SerializedScriptValue vector and reply with the corresponding IDBKeys. |
80 IPC_MESSAGE_CONTROL3(UtilityMsg_IDBKeysFromValuesAndKeyPath, | 86 IPC_MESSAGE_CONTROL3(UtilityMsg_IDBKeysFromValuesAndKeyPath, |
81 int, // id | 87 int, // id |
82 std::vector<SerializedScriptValue>, | 88 std::vector<SerializedScriptValue>, |
83 string16) // IDBKeyPath | 89 string16) // IDBKeyPath |
84 | 90 |
85 IPC_MESSAGE_CONTROL3(UtilityMsg_InjectIDBKey, | 91 IPC_MESSAGE_CONTROL3(UtilityMsg_InjectIDBKey, |
86 IndexedDBKey /* key */, | 92 IndexedDBKey /* key */, |
87 SerializedScriptValue /* value */, | 93 SerializedScriptValue /* value */, |
88 string16 /* key path*/); | 94 string16 /* key path*/) |
89 | 95 |
90 // Tells the utility process that it's running in batch mode. | 96 // Tells the utility process that it's running in batch mode. |
91 IPC_MESSAGE_CONTROL0(UtilityMsg_BatchMode_Started) | 97 IPC_MESSAGE_CONTROL0(UtilityMsg_BatchMode_Started) |
92 | 98 |
93 // Tells the utility process that it can shutdown. | 99 // Tells the utility process that it can shutdown. |
94 IPC_MESSAGE_CONTROL0(UtilityMsg_BatchMode_Finished) | 100 IPC_MESSAGE_CONTROL0(UtilityMsg_BatchMode_Finished) |
95 | 101 |
96 // Tells the utility process to get capabilities and defaults for the specified | 102 // Tells the utility process to get capabilities and defaults for the specified |
97 // printer. Used on Windows to isolate the service process from printer driver | 103 // printer. Used on Windows to isolate the service process from printer driver |
98 // crashes by executing this in a separate process. This does not run in a | 104 // crashes by executing this in a separate process. This does not run in a |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 // capabilities and defaults. | 184 // capabilities and defaults. |
179 IPC_MESSAGE_CONTROL2(UtilityHostMsg_GetPrinterCapsAndDefaults_Succeeded, | 185 IPC_MESSAGE_CONTROL2(UtilityHostMsg_GetPrinterCapsAndDefaults_Succeeded, |
180 std::string /* printer name */, | 186 std::string /* printer name */, |
181 printing::PrinterCapsAndDefaults) | 187 printing::PrinterCapsAndDefaults) |
182 | 188 |
183 // Reply when the utility process has failed to obtain the printer | 189 // Reply when the utility process has failed to obtain the printer |
184 // capabilities and defaults. | 190 // capabilities and defaults. |
185 IPC_MESSAGE_CONTROL1(UtilityHostMsg_GetPrinterCapsAndDefaults_Failed, | 191 IPC_MESSAGE_CONTROL1(UtilityHostMsg_GetPrinterCapsAndDefaults_Failed, |
186 std::string /* printer name */) | 192 std::string /* printer name */) |
187 | 193 |
OLD | NEW |