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