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

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

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

Powered by Google App Engine
This is Rietveld 408576698