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

Side by Side Diff: content/browser/renderer_host/media/audio_sync_reader.cc

Issue 19495006: Update include paths in content/browser for base/process changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
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 "content/browser/renderer_host/media/audio_sync_reader.h" 5 #include "content/browser/renderer_host/media/audio_sync_reader.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/memory/shared_memory.h" 9 #include "base/memory/shared_memory.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
11 #include "base/process_util.h"
12 #include "media/audio/audio_buffers_state.h" 11 #include "media/audio/audio_buffers_state.h"
13 #include "media/audio/audio_parameters.h" 12 #include "media/audio/audio_parameters.h"
14 #include "media/audio/shared_memory_util.h" 13 #include "media/audio/shared_memory_util.h"
15 14
16 using media::AudioBus; 15 using media::AudioBus;
17 16
18 namespace content { 17 namespace content {
19 18
20 AudioSyncReader::AudioSyncReader(base::SharedMemory* shared_memory, 19 AudioSyncReader::AudioSyncReader(base::SharedMemory* shared_memory,
21 const media::AudioParameters& params, 20 const media::AudioParameters& params,
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 time_since_start = base::TimeTicks::Now() - start; 183 time_since_start = base::TimeTicks::Now() - start;
185 } while (!DataReady() && time_since_start < kMaxWait); 184 } while (!DataReady() && time_since_start < kMaxWait);
186 UMA_HISTOGRAM_CUSTOM_TIMES("Media.AudioOutputControllerDataNotReady", 185 UMA_HISTOGRAM_CUSTOM_TIMES("Media.AudioOutputControllerDataNotReady",
187 time_since_start, 186 time_since_start,
188 base::TimeDelta::FromMilliseconds(1), 187 base::TimeDelta::FromMilliseconds(1),
189 base::TimeDelta::FromMilliseconds(1000), 188 base::TimeDelta::FromMilliseconds(1000),
190 50); 189 50);
191 } 190 }
192 191
193 } // namespace content 192 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/media/audio_sync_reader.h ('k') | content/browser/renderer_host/media/midi_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698