OLD | NEW |
---|---|
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 #if defined(OS_WIN) | |
8 #include <Windows.h> | |
9 #endif // defined(OS_WIN) | |
10 | |
7 #include <string> | 11 #include <string> |
8 #include <vector> | 12 #include <vector> |
9 | 13 |
10 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
11 #include "base/strings/string16.h" | 15 #include "base/strings/string16.h" |
12 #include "base/tuple.h" | 16 #include "base/tuple.h" |
13 #include "base/values.h" | 17 #include "base/values.h" |
14 #include "chrome/common/safe_browsing/zip_analyzer.h" | 18 #include "chrome/common/safe_browsing/zip_analyzer.h" |
15 #include "ipc/ipc_message_macros.h" | 19 #include "ipc/ipc_message_macros.h" |
16 #include "ipc/ipc_platform_file.h" | 20 #include "ipc/ipc_platform_file.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
79 // be used if the host process needs a handle to the running utility process. | 83 // be used if the host process needs a handle to the running utility process. |
80 IPC_MESSAGE_CONTROL0(ChromeUtilityMsg_StartupPing) | 84 IPC_MESSAGE_CONTROL0(ChromeUtilityMsg_StartupPing) |
81 | 85 |
82 #if defined(FULL_SAFE_BROWSING) | 86 #if defined(FULL_SAFE_BROWSING) |
83 // Tells the utility process to analyze a zip file for malicious download | 87 // Tells the utility process to analyze a zip file for malicious download |
84 // protection. | 88 // protection. |
85 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_AnalyzeZipFileForDownloadProtection, | 89 IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_AnalyzeZipFileForDownloadProtection, |
86 IPC::PlatformFileForTransit /* zip_file */) | 90 IPC::PlatformFileForTransit /* zip_file */) |
87 #endif | 91 #endif |
88 | 92 |
93 #if defined(OS_WIN) | |
94 typedef std::vector<Tuple2<base::string16, base::string16> > | |
95 GetOpenFileNameFilter; | |
96 | |
97 IPC_MESSAGE_CONTROL5(ChromeUtilityMsg_GetOpenFileName, | |
98 HWND /* owner */, | |
99 DWORD /* flags */, | |
sky
2014/07/31 20:47:46
Better document what these correspond to.
erikwright (departed)
2014/08/01 13:53:15
Done.
| |
100 GetOpenFileNameFilter /* filter */, | |
101 base::FilePath /* initial_directory */, | |
102 base::FilePath /* filename */) | |
103 #endif // defined(OS_WIN) | |
104 | |
89 //------------------------------------------------------------------------------ | 105 //------------------------------------------------------------------------------ |
90 // Utility process host messages: | 106 // Utility process host messages: |
91 // These are messages from the utility process to the browser. | 107 // These are messages from the utility process to the browser. |
92 | 108 |
93 // Reply when the utility process is done unpacking and parsing JSON data | 109 // Reply when the utility process is done unpacking and parsing JSON data |
94 // from a web resource. | 110 // from a web resource. |
95 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnpackWebResource_Succeeded, | 111 IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_UnpackWebResource_Succeeded, |
96 base::DictionaryValue /* json data */) | 112 base::DictionaryValue /* json data */) |
97 | 113 |
98 // Reply when the utility process has failed while unpacking and parsing a | 114 // Reply when the utility process has failed while unpacking and parsing a |
(...skipping 26 matching lines...) Expand all Loading... | |
125 | 141 |
126 // Reply when the utility process has started. | 142 // Reply when the utility process has started. |
127 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_ProcessStarted) | 143 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_ProcessStarted) |
128 | 144 |
129 #if defined(FULL_SAFE_BROWSING) | 145 #if defined(FULL_SAFE_BROWSING) |
130 // Reply when a zip file has been analyzed for malicious download protection. | 146 // Reply when a zip file has been analyzed for malicious download protection. |
131 IPC_MESSAGE_CONTROL1( | 147 IPC_MESSAGE_CONTROL1( |
132 ChromeUtilityHostMsg_AnalyzeZipFileForDownloadProtection_Finished, | 148 ChromeUtilityHostMsg_AnalyzeZipFileForDownloadProtection_Finished, |
133 safe_browsing::zip_analyzer::Results) | 149 safe_browsing::zip_analyzer::Results) |
134 #endif | 150 #endif |
151 | |
152 #if defined(OS_WIN) | |
153 IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_GetOpenFileName_Failed) | |
154 IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetOpenFileName_Result, | |
155 base::FilePath /* directory */, | |
156 std::vector<base::FilePath> /* filenames */) | |
157 #endif // defined(OS_WIN) | |
OLD | NEW |