diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-14 00:27:04 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-14 00:27:04 +0000 |
commit | 00d320a6e403c645dc00d47217028aef5f2792a0 (patch) | |
tree | 4cb1feea9a8c9819c95d1520db3ebd2dff69a3c6 /ppapi/shared_impl/ppb_file_ref_shared.h | |
parent | 2354c0fa1003d87661d20255211306ae4c9cf622 (diff) | |
download | chromium_src-00d320a6e403c645dc00d47217028aef5f2792a0.zip chromium_src-00d320a6e403c645dc00d47217028aef5f2792a0.tar.gz chromium_src-00d320a6e403c645dc00d47217028aef5f2792a0.tar.bz2 |
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
Diffstat (limited to 'ppapi/shared_impl/ppb_file_ref_shared.h')
-rw-r--r-- | ppapi/shared_impl/ppb_file_ref_shared.h | 9 |
1 files changed, 3 insertions, 6 deletions
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. |