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

Unified Diff: webkit/plugins/ppapi/audio_helper.h

Issue 20165002: Move webkit/plugins/ppapi to content/renderer/pepper. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: more more clang fun Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/plugins/ppapi/OWNERS ('k') | webkit/plugins/ppapi/audio_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/audio_helper.h
===================================================================
--- webkit/plugins/ppapi/audio_helper.h (revision 213561)
+++ webkit/plugins/ppapi/audio_helper.h (working copy)
@@ -1,63 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef WEBKIT_PLUGINS_PPAPI_AUDIO_HELPER_H_
-#define WEBKIT_PLUGINS_PPAPI_AUDIO_HELPER_H_
-
-#include "base/basictypes.h"
-#include "base/memory/scoped_ptr.h"
-#include "base/memory/shared_memory.h"
-#include "base/sync_socket.h"
-#include "ppapi/c/pp_completion_callback.h"
-#include "ppapi/shared_impl/resource.h"
-#include "ppapi/shared_impl/scoped_pp_resource.h"
-#include "ppapi/shared_impl/tracked_callback.h"
-#include "webkit/plugins/ppapi/plugin_delegate.h"
-
-namespace webkit {
-namespace ppapi {
-
-class AudioHelper : public PluginDelegate::PlatformAudioOutputClient {
- public:
- AudioHelper();
- virtual ~AudioHelper();
-
- // |PluginDelegate::PlatformAudioOutputClient| implementation.
- virtual void StreamCreated(base::SharedMemoryHandle shared_memory_handle,
- size_t shared_memory_size_,
- base::SyncSocket::Handle socket) OVERRIDE;
-
- void SetCreateCallback(
- scoped_refptr< ::ppapi::TrackedCallback> create_callback);
-
- protected:
- // TODO(viettrungluu): This is all very poorly thought out. Refactor.
-
- // To be called by implementations of |PPB_Audio_API|/|PPB_AudioInput_API|.
- int32_t GetSyncSocketImpl(int* sync_socket);
- int32_t GetSharedMemoryImpl(int* shm_handle, uint32_t* shm_size);
-
- // To be implemented by subclasses to call their |SetStreamInfo()|.
- virtual void OnSetStreamInfo(base::SharedMemoryHandle shared_memory_handle,
- size_t shared_memory_size,
- base::SyncSocket::Handle socket_handle) = 0;
-
- private:
- scoped_refptr< ::ppapi::TrackedCallback> create_callback_;
-
- // When a create callback is being issued, these will save the info for
- // querying from the callback. The proxy uses this to get the handles to the
- // other process instead of mapping them in the renderer. These will be
- // invalid all other times.
- scoped_ptr<base::SharedMemory> shared_memory_for_create_callback_;
- size_t shared_memory_size_for_create_callback_;
- scoped_ptr<base::SyncSocket> socket_for_create_callback_;
-
- DISALLOW_COPY_AND_ASSIGN(AudioHelper);
-};
-
-} // namespace ppapi
-} // namespace webkit
-
-#endif // WEBKIT_PLUGINS_PPAPI_AUDIO_HELPER_H_
« no previous file with comments | « webkit/plugins/ppapi/OWNERS ('k') | webkit/plugins/ppapi/audio_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698