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

Unified Diff: ppapi/cpp/audio.h

Issue 9381010: Convert resources to take an instance key instead of an Instance*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: USELESS PATCH TITLE Created 8 years, 10 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 | « no previous file | ppapi/cpp/audio.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/audio.h
diff --git a/ppapi/cpp/audio.h b/ppapi/cpp/audio.h
index 8df9f37d83764e3399ec422b2cb0c7f720310659..a07fcf58067d0470de2131213bc2f86710401a35 100644
--- a/ppapi/cpp/audio.h
+++ b/ppapi/cpp/audio.h
@@ -8,7 +8,6 @@
#include "ppapi/c/pp_stdint.h"
#include "ppapi/c/ppb_audio.h"
#include "ppapi/cpp/audio_config.h"
-#include "ppapi/cpp/instance.h"
#include "ppapi/cpp/resource.h"
/// @file
@@ -17,6 +16,8 @@
namespace pp {
+class InstanceHandle;
+
/// An audio resource. Refer to the
/// <a href="/native-client/devguide/coding/audio">Audio</a>
/// chapter in the Developer's Guide for information on using this interface.
@@ -38,14 +39,17 @@ class Audio : public Resource {
/// the device configuration and is specified in the <code>AudioConfig</code>
/// documentation.
///
- /// @param[in] instance A pointer to an <code>Instance</code> identifying one
- /// instance of a module.
+ /// @param[in] instance The instance with which this resource will be
+ /// associated.
+ //
/// @param[in] config An <code>AudioConfig</code> containing the audio config
/// resource.
+ //
/// @param[in] callback A <code>PPB_Audio_Callback</code> callback function
/// that the browser calls when it needs more samples to play.
+ //
/// @param[in] user_data A pointer to user data used in the callback function.
- Audio(Instance* instance,
+ Audio(const InstanceHandle& instance,
const AudioConfig& config,
PPB_Audio_Callback callback,
void* user_data);
« no previous file with comments | « no previous file | ppapi/cpp/audio.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698