OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_AUDIO_CONFIG_H_ | 5 #ifndef NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_AUDIO_CONFIG_H_ |
6 #define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_AUDIO_CONFIG_H_ | 6 #define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_AUDIO_CONFIG_H_ |
7 | 7 |
8 #include "native_client/src/include/nacl_macros.h" | 8 #include "native_client/src/include/nacl_macros.h" |
9 #include "native_client/src/shared/ppapi_proxy/plugin_resource.h" | 9 #include "native_client/src/shared/ppapi_proxy/plugin_resource.h" |
10 #include "ppapi/c/ppb_audio_config.h" | 10 #include "ppapi/c/ppb_audio_config.h" |
11 | 11 |
12 namespace ppapi_proxy { | 12 namespace ppapi_proxy { |
13 | 13 |
14 // Implements the untrusted side of the PPB_AudioConfig interface. | 14 // Implements the untrusted side of the PPB_AudioConfig interface. |
15 class PluginAudioConfig : public PluginResource { | 15 class PluginAudioConfig : public PluginResource { |
16 public: | 16 public: |
17 static const PPB_AudioConfig* GetInterface(); | 17 static const PPB_AudioConfig* GetInterface(); |
18 // Returns the 1.0 interface to support backwards-compatibility. | 18 // Returns the 1.0 interface to support backwards-compatibility. |
19 static const PPB_AudioConfig_1_0* GetInterface1_0(); | 19 static const PPB_AudioConfig_1_0* GetInterface1_0(); |
20 | 20 |
| 21 protected: |
| 22 virtual ~PluginAudioConfig() {} |
| 23 |
21 private: | 24 private: |
22 NACL_DISALLOW_COPY_AND_ASSIGN(PluginAudioConfig); | 25 NACL_DISALLOW_COPY_AND_ASSIGN(PluginAudioConfig); |
23 }; | 26 }; |
24 | 27 |
25 } // namespace ppapi_proxy | 28 } // namespace ppapi_proxy |
26 | 29 |
27 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_AUDIO_CONFIG_H_ | 30 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_PLUGIN_AUDIO_CONFIG_H_ |
OLD | NEW |