| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // nacl_histogram provides an enum and defines a macro that uses definitions | 5 // nacl_histogram provides an enum and defines a macro that uses definitions |
| 6 // from histogram.h. Note that a histogram is an object that aggregates | 6 // from histogram.h. Note that a histogram is an object that aggregates |
| 7 // statistics, and can summarize them in various forms, including ASCII | 7 // statistics, and can summarize them in various forms, including ASCII |
| 8 // graphical, HTML, and numerically. | 8 // graphical, HTML, and numerically. |
| 9 // nacl_histogram information is used to compare how many times a native | 9 // nacl_histogram information is used to compare how many times a native |
| 10 // client module has been loaded, compared to the number of chrome starts | 10 // client module has been loaded, compared to the number of chrome starts |
| 11 // and number of new tabs created. | 11 // and number of new tabs created. |
| 12 | 12 |
| 13 #ifndef BASE_METRICS_NACL_HISTOGRAM_H_ | 13 #ifndef BASE_METRICS_NACL_HISTOGRAM_H_ |
| 14 #define BASE_METRICS_NACL_HISTOGRAM_H_ | 14 #define BASE_METRICS_NACL_HISTOGRAM_H_ |
| 15 #pragma once | 15 #pragma once |
| 16 | 16 |
| 17 #include "base/base_api.h" |
| 18 |
| 17 enum NaClHistogramValue { | 19 enum NaClHistogramValue { |
| 18 FIRST_TAB_NACL_BASELINE, // First tab created - a baseline for NaCl starts. | 20 FIRST_TAB_NACL_BASELINE, // First tab created - a baseline for NaCl starts. |
| 19 NEW_TAB_NACL_BASELINE, // New tab created -- a baseline for NaCl starts. | 21 NEW_TAB_NACL_BASELINE, // New tab created -- a baseline for NaCl starts. |
| 20 NACL_STARTED, // NaCl process started | 22 NACL_STARTED, // NaCl process started |
| 21 NACL_MAX_HISTOGRAM // DO NOT USE -- used by histogram for max bound. | 23 NACL_MAX_HISTOGRAM // DO NOT USE -- used by histogram for max bound. |
| 22 }; | 24 }; |
| 23 | 25 |
| 24 // To log histogram data about NaCl.Startups, call this macro with | 26 // To log histogram data about NaCl.Startups, call this macro with |
| 25 // a NaClHistogramValue passed in as |histogram_value| | 27 // a NaClHistogramValue passed in as |histogram_value| |
| 26 void UmaNaclHistogramEnumeration(NaClHistogramValue histogram_value); | 28 BASE_API void UmaNaclHistogramEnumeration(NaClHistogramValue histogram_value); |
| 27 | 29 |
| 28 #endif // BASE_METRICS_NACL_HISTOGRAM_H_ | 30 #endif // BASE_METRICS_NACL_HISTOGRAM_H_ |
| 29 | 31 |
| OLD | NEW |