OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "base/histogram.h" | 5 #include "base/histogram.h" |
6 #include "base/message_loop.h" | 6 #include "base/message_loop.h" |
7 #include "chrome/common/ipc_logging.h" | |
8 #include "chrome/common/render_messages.h" | 7 #include "chrome/common/render_messages.h" |
9 #include "chrome/renderer/audio_message_filter.h" | 8 #include "chrome/renderer/audio_message_filter.h" |
| 9 #include "ipc/ipc_logging.h" |
10 | 10 |
11 namespace { | 11 namespace { |
12 | 12 |
13 void RecordReceiveLatency(base::TimeDelta latency) { | 13 void RecordReceiveLatency(base::TimeDelta latency) { |
14 static ThreadSafeHistogram histogram("Audio.IPC_Renderer_ReceiveLatency", | 14 static ThreadSafeHistogram histogram("Audio.IPC_Renderer_ReceiveLatency", |
15 1, 500, 100); | 15 1, 500, 100); |
16 histogram.AddTime(latency); | 16 histogram.AddTime(latency); |
17 } | 17 } |
18 | 18 |
19 void RecordProcessTime(base::TimeDelta latency) { | 19 void RecordProcessTime(base::TimeDelta latency) { |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 delegate->OnVolume(left, right); | 138 delegate->OnVolume(left, right); |
139 } | 139 } |
140 | 140 |
141 int32 AudioMessageFilter::AddDelegate(Delegate* delegate) { | 141 int32 AudioMessageFilter::AddDelegate(Delegate* delegate) { |
142 return delegates_.Add(delegate); | 142 return delegates_.Add(delegate); |
143 } | 143 } |
144 | 144 |
145 void AudioMessageFilter::RemoveDelegate(int32 id) { | 145 void AudioMessageFilter::RemoveDelegate(int32 id) { |
146 delegates_.Remove(id); | 146 delegates_.Remove(id); |
147 } | 147 } |
OLD | NEW |