| 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/audio_helper.h" | 5 #include "content/renderer/pepper/audio_helper.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "content/renderer/pepper/common.h" | 8 #include "content/renderer/pepper/common.h" |
| 9 #include "content/renderer/pepper/resource_helper.h" | |
| 10 #include "ppapi/c/pp_completion_callback.h" | 9 #include "ppapi/c/pp_completion_callback.h" |
| 11 #include "ppapi/c/pp_errors.h" | 10 #include "ppapi/c/pp_errors.h" |
| 12 | 11 |
| 13 using ppapi::TrackedCallback; | 12 using ppapi::TrackedCallback; |
| 14 | 13 |
| 15 namespace content { | 14 namespace content { |
| 16 | 15 |
| 17 // AudioHelper ----------------------------------------------------------------- | 16 // AudioHelper ----------------------------------------------------------------- |
| 18 | 17 |
| 19 AudioHelper::AudioHelper() : shared_memory_size_for_create_callback_(0) { | 18 AudioHelper::AudioHelper() : shared_memory_size_for_create_callback_(0) { |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 } | 78 } |
| 80 } | 79 } |
| 81 | 80 |
| 82 void AudioHelper::SetCreateCallback( | 81 void AudioHelper::SetCreateCallback( |
| 83 scoped_refptr< ::ppapi::TrackedCallback> create_callback) { | 82 scoped_refptr< ::ppapi::TrackedCallback> create_callback) { |
| 84 DCHECK(!TrackedCallback::IsPending(create_callback_)); | 83 DCHECK(!TrackedCallback::IsPending(create_callback_)); |
| 85 create_callback_ = create_callback; | 84 create_callback_ = create_callback; |
| 86 } | 85 } |
| 87 | 86 |
| 88 } // namespace content | 87 } // namespace content |
| OLD | NEW |