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

Side by Side Diff: components/crash/content/app/fallback_crash_handler_win.h

Issue 2638433002: Integrate fallback crash handling in chrome (Closed)
Patch Set: Fix signedness comparison goof. Created 3 years, 11 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_CRASH_CONTENT_APP_FALLBACK_CRASH_HANDLER_WIN_H_ 5 #ifndef COMPONENTS_CRASH_CONTENT_APP_FALLBACK_CRASH_HANDLER_WIN_H_
6 #define COMPONENTS_CRASH_CONTENT_APP_FALLBACK_CRASH_HANDLER_WIN_H_ 6 #define COMPONENTS_CRASH_CONTENT_APP_FALLBACK_CRASH_HANDLER_WIN_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 27 matching lines...) Expand all
38 // prod: |product| 38 // prod: |product|
39 // ver: |version| 39 // ver: |version|
40 // channel: |cannel| 40 // channel: |cannel|
41 // plat: "Win32" or "Win64", depending on bitness. 41 // plat: "Win32" or "Win64", depending on bitness.
42 // ptype: |process_type|. 42 // ptype: |process_type|.
43 bool GenerateCrashDump(const std::string& product, 43 bool GenerateCrashDump(const std::string& product,
44 const std::string& version, 44 const std::string& version,
45 const std::string& channel, 45 const std::string& channel,
46 const std::string& process_type); 46 const std::string& process_type);
47 47
48 const base::Process& process() const { return process_; }
49
48 private: 50 private:
49 base::Process process_; 51 base::Process process_;
50 base::PlatformThreadId thread_id_; 52 base::PlatformThreadId thread_id_;
51 // This is a pointer in process_, which is hopefully not this process. 53 // This is a pointer in process_, which is hopefully not this process.
52 uintptr_t exception_ptrs_; 54 uintptr_t exception_ptrs_;
53 base::FilePath database_dir_; 55 base::FilePath database_dir_;
54 56
55 DISALLOW_COPY_AND_ASSIGN(FallbackCrashHandler); 57 DISALLOW_COPY_AND_ASSIGN(FallbackCrashHandler);
56 }; 58 };
57 59
58 } // namespace crash_reporter 60 } // namespace crash_reporter
59 61
60 #endif // COMPONENTS_CRASH_CONTENT_APP_FALLBACK_CRASH_HANDLER_WIN_H_ 62 #endif // COMPONENTS_CRASH_CONTENT_APP_FALLBACK_CRASH_HANDLER_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698