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

Side by Side Diff: ppapi/proxy/plugin_resource.h

Issue 4985001: Initial audio implementation. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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 | « ppapi/proxy/plugin_dispatcher.cc ('k') | ppapi/proxy/ppapi_messages.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 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 PPAPI_PROXY_PLUGIN_RESOURCE_H_ 5 #ifndef PPAPI_PROXY_PLUGIN_RESOURCE_H_
6 #define PPAPI_PROXY_PLUGIN_RESOURCE_H_ 6 #define PPAPI_PROXY_PLUGIN_RESOURCE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "ppapi/proxy/plugin_dispatcher.h" 9 #include "ppapi/proxy/plugin_dispatcher.h"
10 #include "ppapi/proxy/plugin_resource_tracker.h" 10 #include "ppapi/proxy/plugin_resource_tracker.h"
11 11
12 // If you inherit from resource, make sure you add the class name here. 12 // If you inherit from resource, make sure you add the class name here.
13 #define FOR_ALL_RESOURCES(F) \ 13 #define FOR_ALL_RESOURCES(F) \
14 F(Audio) \
15 F(AudioConfig) \
14 F(Buffer) \ 16 F(Buffer) \
15 F(Font) \ 17 F(Font) \
16 F(Graphics2D) \ 18 F(Graphics2D) \
17 F(ImageData) \ 19 F(ImageData) \
18 F(PrivateFontFile) \ 20 F(PrivateFontFile) \
19 F(URLLoader) \ 21 F(URLLoader) \
20 F(URLRequestInfo)\ 22 F(URLRequestInfo)\
21 F(URLResponseInfo) 23 F(URLResponseInfo)
22 24
23 namespace pp { 25 namespace pp {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 template <> inline Type* PluginResource::Cast<Type>() { \ 62 template <> inline Type* PluginResource::Cast<Type>() { \
61 return As##Type(); \ 63 return As##Type(); \
62 } 64 }
63 FOR_ALL_RESOURCES(DEFINE_RESOURCE_CAST) 65 FOR_ALL_RESOURCES(DEFINE_RESOURCE_CAST)
64 #undef DEFINE_RESOURCE_CAST 66 #undef DEFINE_RESOURCE_CAST
65 67
66 } // namespace proxy 68 } // namespace proxy
67 } // namespace pp 69 } // namespace pp
68 70
69 #endif // PPAPI_PROXY_PLUGIN_RESOURCE_H_ 71 #endif // PPAPI_PROXY_PLUGIN_RESOURCE_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/plugin_dispatcher.cc ('k') | ppapi/proxy/ppapi_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698