| OLD | NEW |
| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 // Obtains a list of reports uploaded to the collection server. This function | 102 // Obtains a list of reports uploaded to the collection server. This function |
| 103 // only operates when called in the browser process. All reports in the Crashpad | 103 // only operates when called in the browser process. All reports in the Crashpad |
| 104 // database that have been successfully uploaded will be included in this list. | 104 // database that have been successfully uploaded will be included in this list. |
| 105 // The list will be sorted in descending order by report creation time (newest | 105 // The list will be sorted in descending order by report creation time (newest |
| 106 // reports first). | 106 // reports first). |
| 107 void GetReports(std::vector<Report>* reports); | 107 void GetReports(std::vector<Report>* reports); |
| 108 | 108 |
| 109 // Requests a user triggered upload for a crash report with a given id. | 109 // Requests a user triggered upload for a crash report with a given id. |
| 110 void RequestSingleCrashUpload(const std::string& local_id); | 110 void RequestSingleCrashUpload(const std::string& local_id); |
| 111 | 111 |
| 112 void DumpWithoutCrashing(); |
| 113 |
| 112 namespace internal { | 114 namespace internal { |
| 113 | 115 |
| 114 #if defined(OS_WIN) | 116 #if defined(OS_WIN) |
| 115 // Returns platform specific annotations. This is broken out on Windows only so | 117 // Returns platform specific annotations. This is broken out on Windows only so |
| 116 // that it may be reused by GetCrashKeysForKasko. | 118 // that it may be reused by GetCrashKeysForKasko. |
| 117 void GetPlatformCrashpadAnnotations( | 119 void GetPlatformCrashpadAnnotations( |
| 118 std::map<std::string, std::string>* annotations); | 120 std::map<std::string, std::string>* annotations); |
| 119 #endif // defined(OS_WIN) | 121 #endif // defined(OS_WIN) |
| 120 | 122 |
| 121 // The platform-specific portion of InitializeCrashpad(). On windows, if | 123 // The platform-specific portion of InitializeCrashpad(). On windows, if |
| 122 // user_data_dir is non-empty, the user data directory will be passed to the | 124 // user_data_dir is non-empty, the user data directory will be passed to the |
| 123 // handler process for use by Chrome Crashpad extensions. | 125 // handler process for use by Chrome Crashpad extensions. |
| 124 // Returns the database path, if initializing in the browser process. | 126 // Returns the database path, if initializing in the browser process. |
| 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_ |
| OLD | NEW |