OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // This file defines a set of user experience metrics data recorded by | 5 // This file defines a set of user experience metrics data recorded by |
6 // the MetricsService. This is the unit of data that is sent to the server. | 6 // the MetricsService. This is the unit of data that is sent to the server. |
7 | 7 |
8 #ifndef CHROME_BROWSER_METRICS_LOG_H__ | 8 #ifndef CHROME_BROWSER_METRICS_LOG_H__ |
9 #define CHROME_BROWSER_METRICS_LOG_H__ | 9 #define CHROME_BROWSER_METRICS_LOG_H__ |
10 | 10 |
11 #include <libxml/xmlwriter.h> | 11 #include <libxml/xmlwriter.h> |
12 | 12 |
13 #include <string> | 13 #include <string> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "base/basictypes.h" | 16 #include "base/basictypes.h" |
17 #include "base/histogram.h" | 17 #include "base/histogram.h" |
18 #include "base/time.h" | 18 #include "base/time.h" |
19 #include "chrome/common/page_transition_types.h" | 19 #include "chrome/common/page_transition_types.h" |
20 #include "webkit/glue/webplugin.h" | 20 #include "webkit/glue/webplugininfo.h" |
21 | 21 |
22 struct AutocompleteLog; | 22 struct AutocompleteLog; |
23 class DictionaryValue; | 23 class DictionaryValue; |
24 class GURL; | 24 class GURL; |
25 class PrefService; | 25 class PrefService; |
26 | 26 |
27 class MetricsLog { | 27 class MetricsLog { |
28 public: | 28 public: |
29 // Creates a new metrics log | 29 // Creates a new metrics log |
30 // client_id is the identifier for this profile on this installation | 30 // client_id is the identifier for this profile on this installation |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 bool locked_; | 196 bool locked_; |
197 | 197 |
198 xmlBufferPtr buffer_; | 198 xmlBufferPtr buffer_; |
199 xmlTextWriterPtr writer_; | 199 xmlTextWriterPtr writer_; |
200 int num_events_; // the number of events recorded in this log | 200 int num_events_; // the number of events recorded in this log |
201 | 201 |
202 DISALLOW_EVIL_CONSTRUCTORS(MetricsLog); | 202 DISALLOW_EVIL_CONSTRUCTORS(MetricsLog); |
203 }; | 203 }; |
204 | 204 |
205 #endif // CHROME_BROWSER_METRICS_LOG_H__ | 205 #endif // CHROME_BROWSER_METRICS_LOG_H__ |
OLD | NEW |