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

Side by Side Diff: chrome/browser/chromeos/external_metrics.h

Issue 9114020: Remove task.h and finish base::Bind() migration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo Created 8 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_BROWSER_CHROMEOS_EXTERNAL_METRICS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTERNAL_METRICS_H_
6 #define CHROME_BROWSER_CHROMEOS_EXTERNAL_METRICS_H_ 6 #define CHROME_BROWSER_CHROMEOS_EXTERNAL_METRICS_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/file_path.h" 11 #include "base/file_path.h"
12 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
13 #include "base/hash_tables.h" 13 #include "base/hash_tables.h"
14 #include "base/task.h" 14 #include "base/memory/ref_counted.h"
15 15
16 namespace chromeos { 16 namespace chromeos {
17 17
18 // ExternalMetrics is a service that Chrome offers to Chrome OS to upload 18 // ExternalMetrics is a service that Chrome offers to Chrome OS to upload
19 // metrics to the UMA server on its behalf. Chrome periodically reads the 19 // metrics to the UMA server on its behalf. Chrome periodically reads the
20 // content of a well-know file, and parses it into name-value pairs, each 20 // content of a well-know file, and parses it into name-value pairs, each
21 // representing a Chrome OS metrics event. The events are logged using the 21 // representing a Chrome OS metrics event. The events are logged using the
22 // normal UMA mechanism. The file is then truncated to zero size. Chrome uses 22 // normal UMA mechanism. The file is then truncated to zero size. Chrome uses
23 // flock() to synchronize accesses to the file. 23 // flock() to synchronize accesses to the file.
24 class ExternalMetrics : public base::RefCountedThreadSafe<ExternalMetrics> { 24 class ExternalMetrics : public base::RefCountedThreadSafe<ExternalMetrics> {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 // Used for testing only. 84 // Used for testing only.
85 RecorderType test_recorder_; 85 RecorderType test_recorder_;
86 FilePath test_path_; 86 FilePath test_path_;
87 DISALLOW_COPY_AND_ASSIGN(ExternalMetrics); 87 DISALLOW_COPY_AND_ASSIGN(ExternalMetrics);
88 }; 88 };
89 89
90 } // namespace chromeos 90 } // namespace chromeos
91 91
92 #endif // CHROME_BROWSER_CHROMEOS_EXTERNAL_METRICS_H_ 92 #endif // CHROME_BROWSER_CHROMEOS_EXTERNAL_METRICS_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/disks/disk_mount_manager.cc ('k') | chrome/browser/chromeos/login/existing_user_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698