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

Unified Diff: tools/tool_support.h

Issue 1119783005: win: get tools/crashpad_database_util mostly working (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: fixes 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
« no previous file with comments | « tools/crashpad_database_util.cc ('k') | tools/tool_support.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/tool_support.h
diff --git a/tools/tool_support.h b/tools/tool_support.h
index 37881e3861106b52d0473f91a197e04bb0c9daa2..47976bc9692c7f3ddb3f26ec0ef4f0c0c6db57bf 100644
--- a/tools/tool_support.h
+++ b/tools/tool_support.h
@@ -18,6 +18,8 @@
#include <string>
#include "base/basictypes.h"
+#include "base/files/file_path.h"
+#include "build/build_config.h"
namespace crashpad {
@@ -27,18 +29,29 @@ class ToolSupport {
//! \brief Handles `--version`.
//!
//! \param[in] me The tool’s name, the basename of `argv[0]`.
- static void Version(const std::string& me);
+ static void Version(const base::FilePath& me);
//! \brief Prints the footer for `--help`.
//!
//! \param[in] me The tool’s name, the basename of `argv[0]`.
- static void UsageTail(const std::string& me);
+ static void UsageTail(const base::FilePath& me);
//! \brief Suggests using `--help` when a command line tool can’t make sense
//! of its arguments.
//!
//! \param[in] me The tool’s name, the basename of `argv[0]`.
+ static void UsageHint(const base::FilePath& me, const char* hint);
+
+#if defined(OS_POSIX) || DOXYGEN
+ //! \copydoc Version
+ static void Version(const std::string& me);
+
+ //! \copydoc UsageTail
+ static void UsageTail(const std::string& me);
+
+ //! \copydoc UsageHint
static void UsageHint(const std::string& me, const char* hint);
+#endif // OS_POSIX
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(ToolSupport);
« no previous file with comments | « tools/crashpad_database_util.cc ('k') | tools/tool_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698