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

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

Issue 2856923002: Rejig stability intstrumentation filenames and targets (Closed)
Patch Set: Missing include Created 3 years, 7 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 2016 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_DEBUGGING_H_ 5 #ifndef COMPONENTS_BROWSER_WATCHER_STABILITY_PATHS_H_
6 #define COMPONENTS_BROWSER_WATCHER_STABILITY_DEBUGGING_H_ 6 #define COMPONENTS_BROWSER_WATCHER_STABILITY_PATHS_H_
7
8 #include <stdint.h>
9 7
10 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
11 #include "base/gtest_prod_util.h"
12 #include "base/process/process.h" 9 #include "base/process/process.h"
13 #include "base/strings/string_piece.h"
14 10
15 namespace browser_watcher { 11 namespace browser_watcher {
16 12
17 #if defined(OS_WIN) 13 #if defined(OS_WIN)
18 14
19 // Returns the the stability debugging directory. 15 // Returns the the stability debugging directory.
20 base::FilePath GetStabilityDir(const base::FilePath& user_data_dir); 16 base::FilePath GetStabilityDir(const base::FilePath& user_data_dir);
21 17
22 // On success, |path| contains the path to the stability debugging information 18 // On success, |path| contains the path to the stability debugging information
23 // file for |process|. 19 // file for |process|.
24 bool GetStabilityFileForProcess(const base::Process& process, 20 bool GetStabilityFileForProcess(const base::Process& process,
25 const base::FilePath& user_data_dir, 21 const base::FilePath& user_data_dir,
26 base::FilePath* path); 22 base::FilePath* path);
27 23
28 // Returns a pattern that matches file names returned by GetFileForProcess. 24 // Returns a pattern that matches file names returned by GetFileForProcess.
29 base::FilePath::StringType GetStabilityFilePattern(); 25 base::FilePath::StringType GetStabilityFilePattern();
30 26
31 // Marks the stability file for deletion. 27 // Marks the stability file for deletion.
32 void MarkStabilityFileForDeletion(const base::FilePath& user_data_dir); 28 void MarkStabilityFileForDeletion(const base::FilePath& user_data_dir);
33 29
34 #endif // defined(OS_WIN) 30 #endif // defined(OS_WIN)
35 31
36 // Adds or updates the global stability user data.
37 void SetStabilityDataInt(base::StringPiece name, int64_t value);
38
39 } // namespace browser_watcher 32 } // namespace browser_watcher
40 33
41 #endif // COMPONENTS_BROWSER_WATCHER_STABILITY_DEBUGGING_H_ 34 #endif // COMPONENTS_BROWSER_WATCHER_STABILITY_PATHS_H_
OLDNEW
« no previous file with comments | « components/browser_watcher/stability_debugging_win_unittest.cc ('k') | components/browser_watcher/stability_paths.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698