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

Side by Side Diff: components/browser_watcher/stability_paths.h

Issue 2910003002: Stability instrumentation: metrics for collection on crash (Closed)
Patch Set: Address comment 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_PATHS_H_ 5 #ifndef COMPONENTS_BROWSER_WATCHER_STABILITY_PATHS_H_
6 #define COMPONENTS_BROWSER_WATCHER_STABILITY_PATHS_H_ 6 #define COMPONENTS_BROWSER_WATCHER_STABILITY_PATHS_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/process/process.h" 9 #include "base/process/process.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 17 matching lines...) Expand all
28 28
29 // On success, returns true and |path| contains the path to the stability file. 29 // On success, returns true and |path| contains the path to the stability file.
30 // On failure, returns false. 30 // On failure, returns false.
31 bool GetStabilityFileForProcess(const base::Process& process, 31 bool GetStabilityFileForProcess(const base::Process& process,
32 const base::FilePath& user_data_dir, 32 const base::FilePath& user_data_dir,
33 base::FilePath* path); 33 base::FilePath* path);
34 34
35 // Returns a pattern that matches file names returned by GetFileForProcess. 35 // Returns a pattern that matches file names returned by GetFileForProcess.
36 base::FilePath::StringType GetStabilityFilePattern(); 36 base::FilePath::StringType GetStabilityFilePattern();
37 37
38 // Marks the stability file for deletion. 38 // Marks the current process's stability file for deletion.
39 void MarkStabilityFileForDeletion(const base::FilePath& user_data_dir); 39 void MarkOwnStabilityFileDeleted(const base::FilePath& user_data_dir);
40
41 // Marks a stability file for deletion. Returns true if the persistent
42 // allocator's state was set to deleted, false otherwise.
43 bool MarkStabilityFileDeleted(const base::FilePath& file_path);
bcwhite 2017/05/31 15:41:19 Under what conditions would it fail?
manzagop (departed) 2017/05/31 19:57:23 No longer can! I've renamed the function and moved
40 44
41 #endif // defined(OS_WIN) 45 #endif // defined(OS_WIN)
42 46
43 } // namespace browser_watcher 47 } // namespace browser_watcher
44 48
45 #endif // COMPONENTS_BROWSER_WATCHER_STABILITY_PATHS_H_ 49 #endif // COMPONENTS_BROWSER_WATCHER_STABILITY_PATHS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698