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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Crashpad Authors. All rights reserved. 1 // Copyright 2014 The Crashpad Authors. All rights reserved.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License. 4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at 5 // You may obtain a copy of the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, 10 // distributed under the License is distributed on an "AS IS" BASIS,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 //! \copydoc Version 46 //! \copydoc Version
47 static void Version(const std::string& me); 47 static void Version(const std::string& me);
48 48
49 //! \copydoc UsageTail 49 //! \copydoc UsageTail
50 static void UsageTail(const std::string& me); 50 static void UsageTail(const std::string& me);
51 51
52 //! \copydoc UsageHint 52 //! \copydoc UsageHint
53 static void UsageHint(const std::string& me, const char* hint); 53 static void UsageHint(const std::string& me, const char* hint);
54 #endif // OS_POSIX 54 #endif // OS_POSIX
55 55
56 #if defined(OS_WIN) || DOXYGEN
57 //! \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.
58 //! UTF8 entry point.
59 //!
60 //! \return The return values of \a entry.
61 static int Wmain(int argc, wchar_t* argv[], int (*entry)(int, char*[]));
62 #endif // OS_WIN
63
64 //! \brief Convert a UTF8 string (typically a path) to the string type
65 //! suitable for base::FilePath. On POSIX, this is a no-op, on Windows it
66 //! converts from UTF8 to UTF16.
67 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
68
56 private: 69 private:
57 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolSupport); 70 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolSupport);
58 }; 71 };
59 72
60 } // namespace crashpad 73 } // namespace crashpad
61 74
62 #endif // CRASHPAD_TOOLS_TOOL_SUPPORT_H_ 75 #endif // CRASHPAD_TOOLS_TOOL_SUPPORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698