Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef COMPONENTS_CRONET_ANDROID_CRONET_HISTOGRAM_MANAGER_H_ | |
| 6 #define COMPONENTS_CRONET_ANDROID_CRONET_HISTOGRAM_MANAGER_H_ | |
| 7 | |
| 8 #include <jni.h> | |
| 9 #include <vector> | |
| 10 | |
| 11 #include "base/basictypes.h" | |
| 12 #include "base/macros.h" | |
| 13 | |
| 14 namespace cronet { | |
| 15 | |
| 16 bool HistogramManagerRegisterJni(JNIEnv* env); | |
| 17 | |
| 18 // A HistogramManager instance is created by Android. It is the central | |
| 19 // controller for the acquisition of log data, and the automatic transmission of | |
| 20 // that log data to an external server. | |
| 21 class HistogramManager { | |
|
Alexei Svitkine (slow)
2014/12/11 20:09:09
Remove? Since its in the metrics component now?
ramant (doing other things)
2014/12/11 20:23:53
Haven't tested this code on cronet. Added GetHist
| |
| 22 public: | |
| 23 HistogramManager(); | |
| 24 ~HistogramManager(); | |
| 25 | |
| 26 // Snapshot all histograms to record the delta into |uma_proto_| and then | |
| 27 // returns the serialized protobuf representation of the record. | |
| 28 std::vector<uint8> GetDeltas(); | |
| 29 | |
| 30 private: | |
| 31 DISALLOW_COPY_AND_ASSIGN(HistogramManager); | |
| 32 }; | |
| 33 | |
| 34 } // namespace cronet | |
| 35 | |
| 36 #endif // COMPONENTS_CRONET_ANDROID_CRONET_HISTOGRAM_MANAGER_H_ | |
| OLD | NEW |