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

Unified Diff: ppapi/shared_impl/ppb_resource_array_shared.h

Issue 9391013: Make a global enum to differentiate impl & proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 months 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
Index: ppapi/shared_impl/ppb_resource_array_shared.h
diff --git a/ppapi/shared_impl/ppb_resource_array_shared.h b/ppapi/shared_impl/ppb_resource_array_shared.h
index 55342e00a164d82c6ab6a956a2d49f6d07e00920..e3d6750d13179886e0badb6d651781f054619ab4 100644
--- a/ppapi/shared_impl/ppb_resource_array_shared.h
+++ b/ppapi/shared_impl/ppb_resource_array_shared.h
@@ -18,20 +18,10 @@ class PPAPI_SHARED_EXPORT PPB_ResourceArray_Shared
: public Resource,
public thunk::PPB_ResourceArray_API {
public:
- struct InitAsImpl {};
- struct InitAsProxy {};
-
- // The dummy arguments control which version of Resource's constructor is
- // called for this base class.
- PPB_ResourceArray_Shared(const InitAsImpl&,
- PP_Instance instance,
- const PP_Resource elements[],
- uint32_t size);
- PPB_ResourceArray_Shared(const InitAsProxy&,
+ PPB_ResourceArray_Shared(ResourceObjectType type,
PP_Instance instance,
const PP_Resource elements[],
uint32_t size);
-
virtual ~PPB_ResourceArray_Shared();
// Resource overrides.
@@ -42,8 +32,6 @@ class PPAPI_SHARED_EXPORT PPB_ResourceArray_Shared
virtual PP_Resource GetAt(uint32_t index) OVERRIDE;
private:
- void Initialize(const PP_Resource elements[], uint32_t size);
-
std::vector<PP_Resource> resources_;
DISALLOW_IMPLICIT_CONSTRUCTORS(PPB_ResourceArray_Shared);

Powered by Google App Engine
This is Rietveld 408576698