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

Side by Side Diff: ppapi/shared_impl/audio_impl.h

Issue 6279003: Move ppapi audio interface out of dev, but... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/ppb_audio_proxy.cc ('k') | webkit/plugins/ppapi/plugin_module.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #ifndef PPAPI_SHARED_IMPL_AUDIO_IMPL_H_ 5 #ifndef PPAPI_SHARED_IMPL_AUDIO_IMPL_H_
6 #define PPAPI_SHARED_IMPL_AUDIO_IMPL_H_ 6 #define PPAPI_SHARED_IMPL_AUDIO_IMPL_H_
7 7
8 #include "base/scoped_ptr.h" 8 #include "base/scoped_ptr.h"
9 #include "base/shared_memory.h" 9 #include "base/shared_memory.h"
10 #include "base/sync_socket.h" 10 #include "base/sync_socket.h"
11 #include "base/threading/simple_thread.h" 11 #include "base/threading/simple_thread.h"
12 #include "ppapi/c/dev/ppb_audio_dev.h" 12 #include "ppapi/c/ppb_audio.h"
13 13
14 namespace pp { 14 namespace pp {
15 namespace shared_impl { 15 namespace shared_impl {
16 16
17 // Implements the logic to map shared memory and run the audio thread signaled 17 // Implements the logic to map shared memory and run the audio thread signaled
18 // from the sync socket. Both the proxy and the renderer implementation use 18 // from the sync socket. Both the proxy and the renderer implementation use
19 // this code. 19 // this code.
20 class AudioImpl : public base::DelegateSimpleThread::Delegate { 20 class AudioImpl : public base::DelegateSimpleThread::Delegate {
21 public: 21 public:
22 AudioImpl(); 22 AudioImpl();
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 PPB_Audio_Callback callback_; 76 PPB_Audio_Callback callback_;
77 77
78 // User data pointer passed verbatim to the callback function. 78 // User data pointer passed verbatim to the callback function.
79 void* user_data_; 79 void* user_data_;
80 }; 80 };
81 81
82 } // namespace shared_impl 82 } // namespace shared_impl
83 } // namespace pp 83 } // namespace pp
84 84
85 #endif // PPAPI_SHARED_IMPL_AUDIO_IMPL_H_ 85 #endif // PPAPI_SHARED_IMPL_AUDIO_IMPL_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_audio_proxy.cc ('k') | webkit/plugins/ppapi/plugin_module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698