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 #include "chrome/service/service_ipc_server.h" | 5 #include "chrome/service/service_ipc_server.h" |
6 | 6 |
7 #include "base/metrics/histogram_delta_serialization.h" | 7 #include "base/metrics/histogram_delta_serialization.h" |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 #include "chrome/common/service_messages.h" | 9 #include "chrome/common/service_messages.h" |
10 #include "ipc/ipc_logging.h" | 10 #include "ipc/ipc_logging.h" |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 | 116 |
117 return handled; | 117 return handled; |
118 } | 118 } |
119 | 119 |
120 void ServiceIPCServer::OnGetHistograms() { | 120 void ServiceIPCServer::OnGetHistograms() { |
121 if (!histogram_delta_serializer_) { | 121 if (!histogram_delta_serializer_) { |
122 histogram_delta_serializer_.reset( | 122 histogram_delta_serializer_.reset( |
123 new base::HistogramDeltaSerialization("ServiceProcess")); | 123 new base::HistogramDeltaSerialization("ServiceProcess")); |
124 } | 124 } |
125 std::vector<std::string> deltas; | 125 std::vector<std::string> deltas; |
126 histogram_delta_serializer_->PrepareAndSerializeDeltas(&deltas); | 126 histogram_delta_serializer_->PrepareAndSerializeDeltas(&deltas, false); |
127 channel_->Send(new ServiceHostMsg_Histograms(deltas)); | 127 channel_->Send(new ServiceHostMsg_Histograms(deltas)); |
128 } | 128 } |
129 | 129 |
130 void ServiceIPCServer::OnShutdown() { | 130 void ServiceIPCServer::OnShutdown() { |
131 client_->OnShutdown(); | 131 client_->OnShutdown(); |
132 } | 132 } |
133 | 133 |
134 void ServiceIPCServer::OnUpdateAvailable() { | 134 void ServiceIPCServer::OnUpdateAvailable() { |
135 client_->OnUpdateAvailable(); | 135 client_->OnUpdateAvailable(); |
136 } | 136 } |
OLD | NEW |