From 00d320a6e403c645dc00d47217028aef5f2792a0 Mon Sep 17 00:00:00 2001 From: "brettw@chromium.org" Date: Tue, 14 Feb 2012 00:27:04 +0000 Subject: Make a global enum to differentiate impl & proxy. Use this in resource constructors and remove all the old weird structs that we used to tell which one to call. This removes some extra code we had to deal with this. Review URL: http://codereview.chromium.org/9391013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121781 0039d316-1c4b-4281-b951-d872f2087c98 --- ppapi/shared_impl/ppb_file_ref_shared.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'ppapi/shared_impl/ppb_file_ref_shared.h') diff --git a/ppapi/shared_impl/ppb_file_ref_shared.h b/ppapi/shared_impl/ppb_file_ref_shared.h index 3d0a9f8..5decd7f 100644 --- a/ppapi/shared_impl/ppb_file_ref_shared.h +++ b/ppapi/shared_impl/ppb_file_ref_shared.h @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -33,11 +33,8 @@ class PPAPI_SHARED_EXPORT PPB_FileRef_Shared : public Resource, public thunk::PPB_FileRef_API { public: - struct InitAsImpl {}; - struct InitAsProxy {}; - - PPB_FileRef_Shared(const InitAsImpl&, const PPB_FileRef_CreateInfo& info); - PPB_FileRef_Shared(const InitAsProxy&, const PPB_FileRef_CreateInfo& info); + PPB_FileRef_Shared(ResourceObjectType type, + const PPB_FileRef_CreateInfo& info); virtual ~PPB_FileRef_Shared(); // Resource overrides. -- cgit v1.1