Index: chrome/common/chrome_utility_messages.h |
diff --git a/chrome/common/chrome_utility_messages.h b/chrome/common/chrome_utility_messages.h |
index e1710996a8623ab5605525e0620391b93a95aef9..16d06a2b41dbd04c7ab29de808a9266535a4d690 100644 |
--- a/chrome/common/chrome_utility_messages.h |
+++ b/chrome/common/chrome_utility_messages.h |
@@ -4,6 +4,10 @@ |
// Multiply-included message file, so no include guard. |
+#if defined(OS_WIN) |
+#include <Windows.h> |
+#endif // defined(OS_WIN) |
+ |
#include <string> |
#include <vector> |
@@ -86,6 +90,18 @@ IPC_MESSAGE_CONTROL1(ChromeUtilityMsg_AnalyzeZipFileForDownloadProtection, |
IPC::PlatformFileForTransit /* zip_file */) |
#endif |
+#if defined(OS_WIN) |
+typedef std::vector<Tuple2<base::string16, base::string16> > |
+ GetOpenFileNameFilter; |
+ |
+IPC_MESSAGE_CONTROL5(ChromeUtilityMsg_GetOpenFileName, |
+ HWND /* owner */, |
+ DWORD /* flags */, |
sky
2014/07/31 20:47:46
Better document what these correspond to.
erikwright (departed)
2014/08/01 13:53:15
Done.
|
+ GetOpenFileNameFilter /* filter */, |
+ base::FilePath /* initial_directory */, |
+ base::FilePath /* filename */) |
+#endif // defined(OS_WIN) |
+ |
//------------------------------------------------------------------------------ |
// Utility process host messages: |
// These are messages from the utility process to the browser. |
@@ -132,3 +148,10 @@ IPC_MESSAGE_CONTROL1( |
ChromeUtilityHostMsg_AnalyzeZipFileForDownloadProtection_Finished, |
safe_browsing::zip_analyzer::Results) |
#endif |
+ |
+#if defined(OS_WIN) |
+IPC_MESSAGE_CONTROL0(ChromeUtilityHostMsg_GetOpenFileName_Failed) |
+IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_GetOpenFileName_Result, |
+ base::FilePath /* directory */, |
+ std::vector<base::FilePath> /* filenames */) |
+#endif // defined(OS_WIN) |