| OLD | NEW |
| 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_BROWSER_WATCHER_STABILITY_DEBUGGING_WIN_H_ | 5 #ifndef COMPONENTS_BROWSER_WATCHER_STABILITY_DEBUGGING_WIN_H_ |
| 6 #define COMPONENTS_BROWSER_WATCHER_STABILITY_DEBUGGING_WIN_H_ | 6 #define COMPONENTS_BROWSER_WATCHER_STABILITY_DEBUGGING_WIN_H_ |
| 7 | 7 |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
| 10 #include "base/process/process.h" | 10 #include "base/process/process.h" |
| 11 | 11 |
| 12 namespace browser_watcher { | 12 namespace browser_watcher { |
| 13 | 13 |
| 14 // Returns the the stability debugging directory. | 14 // Returns the the stability debugging directory. |
| 15 base::FilePath GetStabilityDir(const base::FilePath& user_data_dir); | 15 base::FilePath GetStabilityDir(const base::FilePath& user_data_dir); |
| 16 | 16 |
| 17 // On success, |path| contains the path to the stability debugging information | 17 // On success, |path| contains the path to the stability debugging information |
| 18 // file for |process|. | 18 // file for |process|. |
| 19 bool GetStabilityFileForProcess(const base::Process& process, | 19 bool GetStabilityFileForProcess(const base::Process& process, |
| 20 const base::FilePath& user_data_dir, | 20 const base::FilePath& user_data_dir, |
| 21 base::FilePath* path); | 21 base::FilePath* path); |
| 22 | 22 |
| 23 // Returns a pattern that matches file names returned by GetFileForProcess. | 23 // Returns a pattern that matches file names returned by GetFileForProcess. |
| 24 base::FilePath::StringType GetStabilityFilePattern(); | 24 base::FilePath::StringType GetStabilityFilePattern(); |
| 25 | 25 |
| 26 // Marks the stability file for deletion. |
| 27 void MarkStabilityFileForDeletion(const base::FilePath& user_data_dir); |
| 28 |
| 26 } // namespace browser_watcher | 29 } // namespace browser_watcher |
| 27 | 30 |
| 28 #endif // COMPONENTS_BROWSER_WATCHER_STABILITY_DEBUGGING_WIN_H_ | 31 #endif // COMPONENTS_BROWSER_WATCHER_STABILITY_DEBUGGING_WIN_H_ |
| OLD | NEW |