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 #ifndef CONTENT_BROWSER_HISTOGRAM_CONTROLLER_H_ | 5 #ifndef CONTENT_BROWSER_HISTOGRAM_CONTROLLER_H_ |
6 #define CONTENT_BROWSER_HISTOGRAM_CONTROLLER_H_ | 6 #define CONTENT_BROWSER_HISTOGRAM_CONTROLLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 | 50 |
51 // Send the |histogram| back to the |subscriber_|. | 51 // Send the |histogram| back to the |subscriber_|. |
52 // This can be called from any thread. | 52 // This can be called from any thread. |
53 void OnHistogramDataCollected( | 53 void OnHistogramDataCollected( |
54 int sequence_number, | 54 int sequence_number, |
55 const std::vector<std::string>& pickled_histograms); | 55 const std::vector<std::string>& pickled_histograms); |
56 | 56 |
57 private: | 57 private: |
58 friend struct DefaultSingletonTraits<HistogramController>; | 58 friend struct DefaultSingletonTraits<HistogramController>; |
59 | 59 |
60 // Contact child processes and get their histogram data. | 60 // Contact PLUGIN and GPU child processes and get their histogram data. |
| 61 // TODO(rtenneti): Enable getting histogram data for other processes like |
| 62 // PPAPI and NACL. |
61 void GetHistogramDataFromChildProcesses(int sequence_number); | 63 void GetHistogramDataFromChildProcesses(int sequence_number); |
62 | 64 |
63 HistogramSubscriber* subscriber_; | 65 HistogramSubscriber* subscriber_; |
64 | 66 |
65 DISALLOW_COPY_AND_ASSIGN(HistogramController); | 67 DISALLOW_COPY_AND_ASSIGN(HistogramController); |
66 }; | 68 }; |
67 | 69 |
68 } // namespace content | 70 } // namespace content |
69 | 71 |
70 #endif // CONTENT_BROWSER_HISTOGRAM_CONTROLLER_H_ | 72 #endif // CONTENT_BROWSER_HISTOGRAM_CONTROLLER_H_ |
OLD | NEW |