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

Unified Diff: src/shared/ppapi_proxy/plugin_audio.cc

Issue 4210003: Started on Resource class. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Resource->PluginResource Created 10 years, 1 month 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 | « src/shared/ppapi_proxy/plugin_audio.h ('k') | src/shared/ppapi_proxy/plugin_audio_config.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/shared/ppapi_proxy/plugin_audio.cc
diff --git a/src/shared/ppapi_proxy/plugin_audio.cc b/src/shared/ppapi_proxy/plugin_audio.cc
index dc27662bb818db506d90f7493f7d760882b6d064..4d8fc713d8f344686a204f25cecc2026d138cf6c 100644
--- a/src/shared/ppapi_proxy/plugin_audio.cc
+++ b/src/shared/ppapi_proxy/plugin_audio.cc
@@ -29,9 +29,9 @@ PP_Resource Create(PP_Instance instance,
return kInvalidResourceId;
}
-PP_Bool IsAudio(PP_Resource audio) {
- UNREFERENCED_PARAMETER(audio);
- return PP_FALSE;
+PP_Bool IsAudio(PP_Resource resource) {
+ return PluginResource::GetAs<PluginAudio>(resource).get()
+ ? PP_TRUE : PP_FALSE;
}
PP_Resource GetCurrentConfig(PP_Resource audio) {
« no previous file with comments | « src/shared/ppapi_proxy/plugin_audio.h ('k') | src/shared/ppapi_proxy/plugin_audio_config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698