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

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

Issue 2867063002: Stability instrumentation Crashpad integration (Closed)
Patch Set: Moar comments and fixups Created 3 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_RUN_AS_CRASHPAD_HANDLER_WIN_H_ 5 #ifndef COMPONENTS_CRASH_CONTENT_APP_RUN_AS_CRASHPAD_HANDLER_WIN_H_
6 #define COMPONENTS_CRASH_CONTENT_APP_RUN_AS_CRASHPAD_HANDLER_WIN_H_ 6 #define COMPONENTS_CRASH_CONTENT_APP_RUN_AS_CRASHPAD_HANDLER_WIN_H_
7 7
8 namespace base { 8 namespace base {
9 class CommandLine; 9 class CommandLine;
10 } 10 }
11 11
12 namespace crash_reporter { 12 namespace crash_reporter {
13 13
14 // Helper for running an embedded copy of crashpad_handler. Searches for and 14 // Helper for running an embedded copy of crashpad_handler. Searches for and
15 // removes --(process_type_switch)=xyz arguments in the command line, and all 15 // removes --(process_type_switch)=xyz arguments in the command line, and all
16 // options starting with '/' (for "/prefetch:N"), and then runs 16 // options starting with '/' (for "/prefetch:N"), and then runs
17 // crashpad::HandlerMain with the remaining arguments. 17 // crashpad::HandlerMain with the remaining arguments.
18 // 18 //
19 // Normally, pass switches::kProcessType for process_type_switch. It's accepted 19 // Normally, pass switches::kProcessType for process_type_switch. It's accepted
20 // as a parameter because this component does not have access to content/, where 20 // as a parameter because this component does not have access to content/, where
21 // that variable lives. 21 // that variable lives.
22 int RunAsCrashpadHandler(const base::CommandLine& command_line, 22 int RunAsCrashpadHandler(const base::CommandLine& command_line,
23 const char* process_type_switch); 23 const char* process_type_switch,
24 const char* user_data_dir_switch);
24 25
25 } // namespace crash_reporter 26 } // namespace crash_reporter
26 27
27 #endif // COMPONENTS_CRASH_CONTENT_APP_RUN_AS_CRASHPAD_HANDLER_WIN_H_ 28 #endif // COMPONENTS_CRASH_CONTENT_APP_RUN_AS_CRASHPAD_HANDLER_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698