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" | |
9 #include "ppapi/c/pp_completion_callback.h" | 8 #include "ppapi/c/pp_completion_callback.h" |
10 #include "ppapi/c/pp_errors.h" | 9 #include "ppapi/c/pp_errors.h" |
11 | 10 |
12 using ppapi::TrackedCallback; | 11 using ppapi::TrackedCallback; |
13 | 12 |
14 namespace content { | 13 namespace content { |
15 | 14 |
16 // AudioHelper ----------------------------------------------------------------- | 15 // AudioHelper ----------------------------------------------------------------- |
17 | 16 |
18 AudioHelper::AudioHelper() : shared_memory_size_for_create_callback_(0) {} | 17 AudioHelper::AudioHelper() : shared_memory_size_for_create_callback_(0) {} |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 } | 74 } |
76 } | 75 } |
77 | 76 |
78 void AudioHelper::SetCreateCallback( | 77 void AudioHelper::SetCreateCallback( |
79 scoped_refptr<ppapi::TrackedCallback> create_callback) { | 78 scoped_refptr<ppapi::TrackedCallback> create_callback) { |
80 DCHECK(!TrackedCallback::IsPending(create_callback_)); | 79 DCHECK(!TrackedCallback::IsPending(create_callback_)); |
81 create_callback_ = create_callback; | 80 create_callback_ = create_callback; |
82 } | 81 } |
83 | 82 |
84 } // namespace content | 83 } // namespace content |
OLD | NEW |