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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 // increase. This is called on the UI thread. | 48 // increase. This is called on the UI thread. |
49 void OnPendingProcesses(int sequence_number, int pending_processes, bool end); | 49 void OnPendingProcesses(int sequence_number, int pending_processes, bool end); |
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 base::DefaultSingletonTraits<HistogramController>; |
59 | 59 |
60 // Contact PLUGIN and GPU 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 | 61 // TODO(rtenneti): Enable getting histogram data for other processes like |
62 // PPAPI and NACL. | 62 // PPAPI and NACL. |
63 void GetHistogramDataFromChildProcesses(int sequence_number); | 63 void GetHistogramDataFromChildProcesses(int sequence_number); |
64 | 64 |
65 HistogramSubscriber* subscriber_; | 65 HistogramSubscriber* subscriber_; |
66 | 66 |
67 DISALLOW_COPY_AND_ASSIGN(HistogramController); | 67 DISALLOW_COPY_AND_ASSIGN(HistogramController); |
68 }; | 68 }; |
69 | 69 |
70 } // namespace content | 70 } // namespace content |
71 | 71 |
72 #endif // CONTENT_BROWSER_HISTOGRAM_CONTROLLER_H_ | 72 #endif // CONTENT_BROWSER_HISTOGRAM_CONTROLLER_H_ |
OLD | NEW |