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

Unified Diff: components/browser_watcher/stability_paths.h

Issue 2923523002: Decouple stability instrumentation recording and collection (Closed)
Patch Set: PostmortemDeleter unittest 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 side-by-side diff with in-line comments
Download patch
Index: components/browser_watcher/stability_paths.h
diff --git a/components/browser_watcher/stability_paths.h b/components/browser_watcher/stability_paths.h
index 7941c3782d6375a0c95ef7e28ec2b1f74d982b06..717b80428b4308bf35deb9d711c3396053b82b61 100644
--- a/components/browser_watcher/stability_paths.h
+++ b/components/browser_watcher/stability_paths.h
@@ -5,6 +5,9 @@
#ifndef COMPONENTS_BROWSER_WATCHER_STABILITY_PATHS_H_
#define COMPONENTS_BROWSER_WATCHER_STABILITY_PATHS_H_
+#include <set>
+#include <vector>
+
#include "base/files/file_path.h"
#include "base/process/process.h"
#include "build/build_config.h"
@@ -35,6 +38,13 @@ bool GetStabilityFileForProcess(const base::Process& process,
// Returns a pattern that matches file names returned by GetFileForProcess.
base::FilePath::StringType GetStabilityFilePattern();
+// Returns files in |stability_dir| that match |stability_file_pattern|,
+// excluding those in |excluded_stability_files.
Sigurður Ásgeirsson 2017/06/05 15:39:39 nit: closing bar missing.
manzagop (departed) 2017/06/05 18:02:16 Done.
+std::vector<base::FilePath> GetStabilityFiles(
+ const base::FilePath& stability_dir,
+ const base::FilePath::StringType& stability_file_pattern,
+ const std::set<base::FilePath>& excluded_stability_files);
+
// Sets the current process's stability file's state to deleted (via the
// GlobalActivityTracker) and opens the file for deletion. Metrics pertaining to
// stability recording are logged.

Powered by Google App Engine
This is Rietveld 408576698