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

Unified Diff: ppapi/cpp/audio.cc

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 | « ppapi/cpp/audio.h ('k') | ppapi/cpp/audio_config.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/audio.cc
diff --git a/ppapi/cpp/audio.cc b/ppapi/cpp/audio.cc
index 00478c57364ea6caca3c519fb0b4467bb9037957..fc7c55a756243eecb56c602f84e8dec8f7ccc4a2 100644
--- a/ppapi/cpp/audio.cc
+++ b/ppapi/cpp/audio.cc
@@ -4,6 +4,7 @@
#include "ppapi/cpp/audio.h"
+#include "ppapi/cpp/instance_handle.h"
#include "ppapi/cpp/module_impl.h"
namespace pp {
@@ -16,14 +17,14 @@ template <> const char* interface_name<PPB_Audio>() {
} // namespace
-Audio::Audio(Instance* instance,
+Audio::Audio(const InstanceHandle& instance,
const AudioConfig& config,
PPB_Audio_Callback callback,
void* user_data)
: config_(config) {
if (has_interface<PPB_Audio>()) {
PassRefFromConstructor(get_interface<PPB_Audio>()->Create(
- instance->pp_instance(), config.pp_resource(), callback, user_data));
+ instance.pp_instance(), config.pp_resource(), callback, user_data));
}
}
« no previous file with comments | « ppapi/cpp/audio.h ('k') | ppapi/cpp/audio_config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698