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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2010 The Native Client Authors. All rights reserved. 2 * Copyright 2010 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can 3 * Use of this source code is governed by a BSD-style license that can
4 * be found in the LICENSE file. 4 * be found in the LICENSE file.
5 */ 5 */
6 6
7 #include "native_client/src/shared/ppapi_proxy/plugin_audio.h" 7 #include "native_client/src/shared/ppapi_proxy/plugin_audio.h"
8 8
9 #include <stdio.h> 9 #include <stdio.h>
10 #include <string.h> 10 #include <string.h>
(...skipping 11 matching lines...) Expand all
22 PP_Resource config, 22 PP_Resource config,
23 PPB_Audio_Callback audio_callback, 23 PPB_Audio_Callback audio_callback,
24 void* user_data) { 24 void* user_data) {
25 UNREFERENCED_PARAMETER(instance); 25 UNREFERENCED_PARAMETER(instance);
26 UNREFERENCED_PARAMETER(config); 26 UNREFERENCED_PARAMETER(config);
27 UNREFERENCED_PARAMETER(audio_callback); 27 UNREFERENCED_PARAMETER(audio_callback);
28 UNREFERENCED_PARAMETER(user_data); 28 UNREFERENCED_PARAMETER(user_data);
29 return kInvalidResourceId; 29 return kInvalidResourceId;
30 } 30 }
31 31
32 PP_Bool IsAudio(PP_Resource audio) { 32 PP_Bool IsAudio(PP_Resource resource) {
33 UNREFERENCED_PARAMETER(audio); 33 return PluginResource::GetAs<PluginAudio>(resource).get()
34 return PP_FALSE; 34 ? PP_TRUE : PP_FALSE;
35 } 35 }
36 36
37 PP_Resource GetCurrentConfig(PP_Resource audio) { 37 PP_Resource GetCurrentConfig(PP_Resource audio) {
38 UNREFERENCED_PARAMETER(audio); 38 UNREFERENCED_PARAMETER(audio);
39 return kInvalidResourceId; 39 return kInvalidResourceId;
40 } 40 }
41 41
42 PP_Bool StartPlayback(PP_Resource audio) { 42 PP_Bool StartPlayback(PP_Resource audio) {
43 UNREFERENCED_PARAMETER(audio); 43 UNREFERENCED_PARAMETER(audio);
44 return PP_FALSE; 44 return PP_FALSE;
(...skipping 10 matching lines...) Expand all
55 Create, 55 Create,
56 IsAudio, 56 IsAudio,
57 GetCurrentConfig, 57 GetCurrentConfig,
58 StartPlayback, 58 StartPlayback,
59 StopPlayback, 59 StopPlayback,
60 }; 60 };
61 return &intf; 61 return &intf;
62 } 62 }
63 63
64 } // namespace ppapi_proxy 64 } // namespace ppapi_proxy
OLDNEW
« 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