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

Side by Side Diff: media/audio/audio_output_device.cc

Issue 2716583003: Rename Origin.unique() to opaque().
Patch Set: Update new uses post-rebase Created 3 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
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 "media/audio/audio_output_device.h" 5 #include "media/audio/audio_output_device.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <cmath> 10 #include <cmath>
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 void AudioOutputDevice::CreateStreamOnIOThread(const AudioParameters& params) { 199 void AudioOutputDevice::CreateStreamOnIOThread(const AudioParameters& params) {
200 DCHECK(task_runner()->BelongsToCurrentThread()); 200 DCHECK(task_runner()->BelongsToCurrentThread());
201 switch (state_) { 201 switch (state_) {
202 case IPC_CLOSED: 202 case IPC_CLOSED:
203 if (callback_) 203 if (callback_)
204 callback_->OnRenderError(); 204 callback_->OnRenderError();
205 break; 205 break;
206 206
207 case IDLE: 207 case IDLE:
208 if (did_receive_auth_.IsSignaled() && device_id_.empty() && 208 if (did_receive_auth_.IsSignaled() && device_id_.empty() &&
209 security_origin_.unique()) { 209 security_origin_.opaque()) {
210 state_ = CREATING_STREAM; 210 state_ = CREATING_STREAM;
211 ipc_->CreateStream(this, params); 211 ipc_->CreateStream(this, params);
212 } else { 212 } else {
213 RequestDeviceAuthorizationOnIOThread(); 213 RequestDeviceAuthorizationOnIOThread();
214 start_on_authorized_ = true; 214 start_on_authorized_ = true;
215 } 215 }
216 break; 216 break;
217 217
218 case AUTHORIZING: 218 case AUTHORIZING:
219 start_on_authorized_ = true; 219 start_on_authorized_ = true;
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 render_callback_->Render(delay, delay_timestamp, frames_skipped, 501 render_callback_->Render(delay, delay_timestamp, frames_skipped,
502 output_bus_.get()); 502 output_bus_.get());
503 } 503 }
504 504
505 bool AudioOutputDevice::AudioThreadCallback:: 505 bool AudioOutputDevice::AudioThreadCallback::
506 CurrentThreadIsAudioDeviceThread() { 506 CurrentThreadIsAudioDeviceThread() {
507 return thread_checker_.CalledOnValidThread(); 507 return thread_checker_.CalledOnValidThread();
508 } 508 }
509 509
510 } // namespace media 510 } // namespace media
OLDNEW
« no previous file with comments | « extensions/browser/extension_web_contents_observer.cc ('k') | net/url_request/url_fetcher_core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698