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

Side by Side Diff: content/renderer/media/webaudiosourceprovider_impl.cc

Issue 18123002: Migrate webkit/renderer/media/ to content/renderer/media/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "webkit/renderer/media/webaudiosourceprovider_impl.h" 5 #include "content/renderer/media/webaudiosourceprovider_impl.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "third_party/WebKit/public/web/WebAudioSourceProviderClient.h" 10 #include "third_party/WebKit/public/web/WebAudioSourceProviderClient.h"
11 11
12 using WebKit::WebVector; 12 using WebKit::WebVector;
13 13
14 namespace webkit_media { 14 namespace content {
15 15
16 namespace { 16 namespace {
17 17
18 // Simple helper class for Try() locks. Lock is Try()'d on construction and 18 // Simple helper class for Try() locks. Lock is Try()'d on construction and
19 // must be checked via the locked() attribute. If acquisition was successful 19 // must be checked via the locked() attribute. If acquisition was successful
20 // the lock will be released upon destruction. 20 // the lock will be released upon destruction.
21 // TODO(dalecurtis): This should probably move to base/ if others start using 21 // TODO(dalecurtis): This should probably move to base/ if others start using
22 // this pattern. 22 // this pattern.
23 class AutoTryLock { 23 class AutoTryLock {
24 public: 24 public:
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 // Keep track of the format in case the client hasn't yet been set. 164 // Keep track of the format in case the client hasn't yet been set.
165 channels_ = params.channels(); 165 channels_ = params.channels();
166 sample_rate_ = params.sample_rate(); 166 sample_rate_ = params.sample_rate();
167 167
168 if (client_) { 168 if (client_) {
169 // Inform WebKit about the audio stream format. 169 // Inform WebKit about the audio stream format.
170 client_->setFormat(channels_, sample_rate_); 170 client_->setFormat(channels_, sample_rate_);
171 } 171 }
172 } 172 }
173 173
174 } // namespace webkit_media 174 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698