OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "chrome/browser/chromeos/boot_times_loader.h" | 5 #include "chrome/browser/chromeos/boot_times_loader.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 static const base::FilePath::CharType kLogPath[] = FPL("/tmp"); | 79 static const base::FilePath::CharType kLogPath[] = FPL("/tmp"); |
80 // Dir log{in,out} logs are located in. | 80 // Dir log{in,out} logs are located in. |
81 static const base::FilePath::CharType kLoginLogPath[] = | 81 static const base::FilePath::CharType kLoginLogPath[] = |
82 FPL("/home/chronos/user"); | 82 FPL("/home/chronos/user"); |
83 // Prefix for the time measurement files. | 83 // Prefix for the time measurement files. |
84 static const base::FilePath::CharType kUptimePrefix[] = FPL("uptime-"); | 84 static const base::FilePath::CharType kUptimePrefix[] = FPL("uptime-"); |
85 // Prefix for the disk usage files. | 85 // Prefix for the disk usage files. |
86 static const base::FilePath::CharType kDiskPrefix[] = FPL("disk-"); | 86 static const base::FilePath::CharType kDiskPrefix[] = FPL("disk-"); |
87 // Name of the time that Chrome's main() is called. | 87 // Name of the time that Chrome's main() is called. |
88 static const base::FilePath::CharType kChromeMain[] = FPL("chrome-main"); | 88 static const base::FilePath::CharType kChromeMain[] = FPL("chrome-main"); |
89 // Delay in milliseconds between file read attempts. | |
90 static const int64 kReadAttemptDelayMs = 250; | |
91 // Delay in milliseconds before writing the login times to disk. | 89 // Delay in milliseconds before writing the login times to disk. |
92 static const int64 kLoginTimeWriteDelayMs = 3000; | 90 static const int64 kLoginTimeWriteDelayMs = 3000; |
93 | 91 |
94 // Names of login stats files. | 92 // Names of login stats files. |
95 static const base::FilePath::CharType kLoginSuccess[] = FPL("login-success"); | 93 static const base::FilePath::CharType kLoginSuccess[] = FPL("login-success"); |
96 static const base::FilePath::CharType kChromeFirstRender[] = | 94 static const base::FilePath::CharType kChromeFirstRender[] = |
97 FPL("chrome-first-render"); | 95 FPL("chrome-first-render"); |
98 | 96 |
99 // Names of login UMA values. | 97 // Names of login UMA values. |
100 static const char kUmaLogin[] = "BootTime.Login"; | 98 static const char kUmaLogin[] = "BootTime.Login"; |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 GetRenderWidgetHost(&web_contents->GetController()); | 378 GetRenderWidgetHost(&web_contents->GetController()); |
381 render_widget_hosts_loading_.erase(render_widget_host); | 379 render_widget_hosts_loading_.erase(render_widget_host); |
382 break; | 380 break; |
383 } | 381 } |
384 default: | 382 default: |
385 break; | 383 break; |
386 } | 384 } |
387 } | 385 } |
388 | 386 |
389 } // namespace chromeos | 387 } // namespace chromeos |
OLD | NEW |