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

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

Issue 113263003: Pepper: More interface_list cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | « no previous file | ppapi/proxy/interface_list.cc » ('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) 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 PPAPI_PROXY_INTERFACE_LIST_H_ 5 #ifndef PPAPI_PROXY_INTERFACE_LIST_H_
6 #define PPAPI_PROXY_INTERFACE_LIST_H_ 6 #define PPAPI_PROXY_INTERFACE_LIST_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 typedef std::map<std::string, InterfaceInfo> NameToInterfaceInfoMap; 69 typedef std::map<std::string, InterfaceInfo> NameToInterfaceInfoMap;
70 70
71 void AddProxy(ApiID id, InterfaceProxy::Factory factory); 71 void AddProxy(ApiID id, InterfaceProxy::Factory factory);
72 72
73 // Permissions is the type of permission required to access the corresponding 73 // Permissions is the type of permission required to access the corresponding
74 // interface. Currently this must be just one unique permission (rather than 74 // interface. Currently this must be just one unique permission (rather than
75 // a bitfield). 75 // a bitfield).
76 void AddPPB(const char* name, const void* iface, Permission permission); 76 void AddPPB(const char* name, const void* iface, Permission permission);
77 void AddPPP(const char* name, const void* iface); 77 void AddPPP(const char* name, const void* iface);
78 78
79 // Old-style add functions. These should be removed when the rest of the
80 // proxies are converted over to using the new system.
81 void AddPPP(const InterfaceProxy::Info* info);
82
83 PpapiPermissions permissions_; 79 PpapiPermissions permissions_;
84 80
85 NameToInterfaceInfoMap name_to_browser_info_; 81 NameToInterfaceInfoMap name_to_browser_info_;
86 NameToInterfaceInfoMap name_to_plugin_info_; 82 NameToInterfaceInfoMap name_to_plugin_info_;
87 83
88 InterfaceProxy::Factory id_to_factory_[API_ID_COUNT]; 84 InterfaceProxy::Factory id_to_factory_[API_ID_COUNT];
89 85
90 DISALLOW_COPY_AND_ASSIGN(InterfaceList); 86 DISALLOW_COPY_AND_ASSIGN(InterfaceList);
91 }; 87 };
92 88
93 } // namespace proxy 89 } // namespace proxy
94 } // namespace ppapi 90 } // namespace ppapi
95 91
96 #endif // PPAPI_PROXY_INTERFACE_LIST_H_ 92 #endif // PPAPI_PROXY_INTERFACE_LIST_H_
97 93
OLDNEW
« no previous file with comments | « no previous file | ppapi/proxy/interface_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698