| OLD | NEW | 
|---|
| 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/renderer/pepper/pepper_platform_audio_output.h" | 5 #include "content/renderer/pepper/pepper_platform_audio_output.h" | 
| 6 | 6 | 
| 7 #include "base/bind.h" | 7 #include "base/bind.h" | 
| 8 #include "base/logging.h" | 8 #include "base/logging.h" | 
| 9 #include "base/message_loop/message_loop_proxy.h" | 9 #include "base/message_loop/message_loop_proxy.h" | 
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" | 
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 159   DCHECK(io_message_loop_proxy_->BelongsToCurrentThread()); | 159   DCHECK(io_message_loop_proxy_->BelongsToCurrentThread()); | 
| 160 | 160 | 
| 161   // Make sure we don't call shutdown more than once. | 161   // Make sure we don't call shutdown more than once. | 
| 162   if (!ipc_) | 162   if (!ipc_) | 
| 163     return; | 163     return; | 
| 164 | 164 | 
| 165   ipc_->CloseStream(); | 165   ipc_->CloseStream(); | 
| 166   ipc_.reset(); | 166   ipc_.reset(); | 
| 167 | 167 | 
| 168   Release();  // Release for the delegate, balances out the reference taken in | 168   Release();  // Release for the delegate, balances out the reference taken in | 
| 169               // PepperPluginDelegateImpl::CreateAudio. | 169               // PepperHelperImpl::CreateAudio. | 
| 170 } | 170 } | 
| 171 | 171 | 
| 172 }  // namespace content | 172 }  // namespace content | 
| OLD | NEW | 
|---|