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

Unified Diff: tools/tool_support.h

Issue 1120383003: Get generate_dump compiling on Windows (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@tools
Patch Set: . Created 5 years, 7 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: tools/tool_support.h
diff --git a/tools/tool_support.h b/tools/tool_support.h
index 47976bc9692c7f3ddb3f26ec0ef4f0c0c6db57bf..ae4d10dd4d83dc658bf7386b63700a1de7fa5ff9 100644
--- a/tools/tool_support.h
+++ b/tools/tool_support.h
@@ -53,6 +53,19 @@ class ToolSupport {
static void UsageHint(const std::string& me, const char* hint);
#endif // OS_POSIX
+#if defined(OS_WIN) || DOXYGEN
+ //! \brief Converts \a argv wchar_t UTF16 to UTF8, and passes onwards to a
Mark Mentovai 2015/05/05 22:41:36 `wchar_t`, UTF-16 (dash), UTF-8. Also in the next
scottmg 2015/05/05 23:23:53 Done.
+ //! UTF8 entry point.
+ //!
+ //! \return The return values of \a entry.
+ static int Wmain(int argc, wchar_t* argv[], int (*entry)(int, char*[]));
+#endif // OS_WIN
+
+ //! \brief Convert a UTF8 string (typically a path) to the string type
+ //! suitable for base::FilePath. On POSIX, this is a no-op, on Windows it
+ //! converts from UTF8 to UTF16.
+ static base::FilePath::StringType UTF8ToFilePathStringType(const char* path);
Mark Mentovai 2015/05/05 22:41:36 path might not be UTF-8. It is on Windows because
scottmg 2015/05/05 23:23:52 I went with CommandLineArgumentToFilePathStringTyp
+
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(ToolSupport);
};

Powered by Google App Engine
This is Rietveld 408576698