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

Unified Diff: snapshot/win/cpu_context_win.h

Issue 1126413008: win: Implement exception snapshot (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
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: snapshot/win/cpu_context_win.h
diff --git a/test/paths_win.cc b/snapshot/win/cpu_context_win.h
similarity index 55%
copy from test/paths_win.cc
copy to snapshot/win/cpu_context_win.h
index 95d0264ed82ab36cf0e541315528d44585f4bbb8..387a5f950a67846c8c7db6c8fd0e39bf433c9994 100644
--- a/test/paths_win.cc
+++ b/snapshot/win/cpu_context_win.h
@@ -12,19 +12,24 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#include "test/paths.h"
+#ifndef CRASHPAD_SNAPSHOT_WIN_CPU_CONTEXT_WIN_H_
+#define CRASHPAD_SNAPSHOT_WIN_CPU_CONTEXT_WIN_H_
#include <windows.h>
namespace crashpad {
-namespace test {
-// static
-base::FilePath Paths::Executable() {
- wchar_t executable_path[_MAX_PATH];
- GetModuleFileName(nullptr, executable_path, sizeof(executable_path));
- return base::FilePath(executable_path);
-}
+struct CPUContextX86;
+struct CPUContextX86_64;
+
+//! \brief Initializes a CPUContextX86 structure from native context structures
+//! on Windows.
+void InitializeX86Context(const CONTEXT& context, CPUContextX86* out);
+
+//! \brief Initializes a CPUContextX86_64 structure from native context
+//! structures on Windows.
+void InitializeX64Context(const CONTEXT& context, CPUContextX86_64* out);
-} // namespace test
} // namespace crashpad
+
+#endif // CRASHPAD_SNAPSHOT_WIN_CPU_CONTEXT_WIN_H_

Powered by Google App Engine
This is Rietveld 408576698