Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: chrome/renderer/audio_message_filter.cc

Issue 155905: Separates ipc code from common (http://crbug.com/16829) (Closed)
Patch Set: Fixes reference to 'common_message_traits' it's actually 'common_param_traits' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/renderer/audio_message_filter.h ('k') | chrome/renderer/automation/dom_automation_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698