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

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

Issue 2909623002: Change DumpProcessWithoutCrash to use load-time dynamic linking (Closed)
Patch Set: rebase Created 3 years, 6 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_CRASHPAD_H_ 5 #ifndef COMPONENTS_CRASH_CONTENT_APP_CRASHPAD_H_
6 #define COMPONENTS_CRASH_CONTENT_APP_CRASHPAD_H_ 6 #define COMPONENTS_CRASH_CONTENT_APP_CRASHPAD_H_
7 7
8 #include <time.h> 8 #include <time.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 #if defined(OS_WIN) 59 #if defined(OS_WIN)
60 // This is the same as InitializeCrashpad(), but rather than launching a 60 // This is the same as InitializeCrashpad(), but rather than launching a
61 // crashpad_handler executable, relaunches the current executable with a command 61 // crashpad_handler executable, relaunches the current executable with a command
62 // line argument of --type=crashpad-handler. If user_data_dir is non-empty, it 62 // line argument of --type=crashpad-handler. If user_data_dir is non-empty, it
63 // is added to the handler's command line for use by Chrome Crashpad extensions. 63 // is added to the handler's command line for use by Chrome Crashpad extensions.
64 void InitializeCrashpadWithEmbeddedHandler(bool initial_client, 64 void InitializeCrashpadWithEmbeddedHandler(bool initial_client,
65 const std::string& process_type, 65 const std::string& process_type,
66 const std::string& user_data_dir); 66 const std::string& user_data_dir);
67 #endif // OS_WIN 67 #endif // OS_WIN
68 68
69 void (*GetDumpWithoutCrashingFunction())();
70
69 // Returns the CrashpadClient for this process. This will lazily create it if 71 // Returns the CrashpadClient for this process. This will lazily create it if
70 // it does not already exist. This is called as part of InitializeCrashpad. 72 // it does not already exist. This is called as part of InitializeCrashpad.
71 crashpad::CrashpadClient& GetCrashpadClient(); 73 crashpad::CrashpadClient& GetCrashpadClient();
72 74
73 // Enables or disables crash report upload, taking the given consent to upload 75 // Enables or disables crash report upload, taking the given consent to upload
74 // into account. Consent may be ignored, uploads may not be enabled even with 76 // into account. Consent may be ignored, uploads may not be enabled even with
75 // consent, but will only be enabled without consent when policy enforces crash 77 // consent, but will only be enabled without consent when policy enforces crash
76 // reporting. Whether reports upload is a property of the Crashpad database. In 78 // reporting. Whether reports upload is a property of the Crashpad database. In
77 // a newly-created database, uploads will be disabled. This function only has an 79 // a newly-created database, uploads will be disabled. This function only has an
78 // effect when called in the browser process. Its effect is immediate and 80 // effect when called in the browser process. Its effect is immediate and
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 base::FilePath PlatformCrashpadInitialization(bool initial_client, 127 base::FilePath PlatformCrashpadInitialization(bool initial_client,
126 bool browser_process, 128 bool browser_process,
127 bool embedded_handler, 129 bool embedded_handler,
128 const std::string& user_data_dir); 130 const std::string& user_data_dir);
129 131
130 } // namespace internal 132 } // namespace internal
131 133
132 } // namespace crash_reporter 134 } // namespace crash_reporter
133 135
134 #endif // COMPONENTS_CRASH_CONTENT_APP_CRASHPAD_H_ 136 #endif // COMPONENTS_CRASH_CONTENT_APP_CRASHPAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698