Index: components/browser_watcher/stability_debugging.h |
diff --git a/components/browser_watcher/stability_debugging_win.h b/components/browser_watcher/stability_debugging.h |
similarity index 71% |
rename from components/browser_watcher/stability_debugging_win.h |
rename to components/browser_watcher/stability_debugging.h |
index 3ac14be048bbcb1decd34205859f3615e3b60777..e8569417482c1c29443ceda4725fe09a3a8ac66d 100644 |
--- a/components/browser_watcher/stability_debugging_win.h |
+++ b/components/browser_watcher/stability_debugging.h |
@@ -2,15 +2,20 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef COMPONENTS_BROWSER_WATCHER_STABILITY_DEBUGGING_WIN_H_ |
-#define COMPONENTS_BROWSER_WATCHER_STABILITY_DEBUGGING_WIN_H_ |
+#ifndef COMPONENTS_BROWSER_WATCHER_STABILITY_DEBUGGING_H_ |
+#define COMPONENTS_BROWSER_WATCHER_STABILITY_DEBUGGING_H_ |
+ |
+#include <stdint.h> |
#include "base/files/file_path.h" |
#include "base/gtest_prod_util.h" |
#include "base/process/process.h" |
+#include "base/strings/string_piece.h" |
namespace browser_watcher { |
+#if defined(OS_WIN) |
+ |
// Returns the the stability debugging directory. |
base::FilePath GetStabilityDir(const base::FilePath& user_data_dir); |
@@ -26,6 +31,11 @@ base::FilePath::StringType GetStabilityFilePattern(); |
// Marks the stability file for deletion. |
void MarkStabilityFileForDeletion(const base::FilePath& user_data_dir); |
+#endif // defined(OS_WIN) |
+ |
+// Adds or updates the global stability user data. |
+void SetStabilityDataInt(base::StringPiece name, int64_t value); |
+ |
} // namespace browser_watcher |
-#endif // COMPONENTS_BROWSER_WATCHER_STABILITY_DEBUGGING_WIN_H_ |
+#endif // COMPONENTS_BROWSER_WATCHER_STABILITY_DEBUGGING_H_ |