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

Unified Diff: chrome/common/chrome_utility_messages.h

Issue 419523006: Experimentally isolate GetOpenFileName in a utility process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
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)

Powered by Google App Engine
This is Rietveld 408576698