summaryrefslogtreecommitdiffstats
path: root/ppapi/shared_impl/file_ref_impl.h
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-06 23:42:21 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-06 23:42:21 +0000
commit65165551604da0f53f5f17fbe8e97363b9436cf5 (patch)
tree897e2b8202f24f08b939e30e60a094649fd6d0d3 /ppapi/shared_impl/file_ref_impl.h
parent5d80114534c28f69de8abf0d45507f0ec8fda217 (diff)
downloadchromium_src-65165551604da0f53f5f17fbe8e97363b9436cf5.zip
chromium_src-65165551604da0f53f5f17fbe8e97363b9436cf5.tar.gz
chromium_src-65165551604da0f53f5f17fbe8e97363b9436cf5.tar.bz2
Rename the shared_impl resource files to give them more regular names.
I keep getting confused between things like AudioImpl and PPB_Audio_Impl. This uses _shared for the names, so now we have _impl, _proxy, and _shared which makes more sense. I also removed the ppb_opengles2_impl file since it was just a forward to the shared version. BUG= TEST= Review URL: http://codereview.chromium.org/8790004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113290 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/shared_impl/file_ref_impl.h')
-rw-r--r--ppapi/shared_impl/file_ref_impl.h65
1 files changed, 0 insertions, 65 deletions
diff --git a/ppapi/shared_impl/file_ref_impl.h b/ppapi/shared_impl/file_ref_impl.h
deleted file mode 100644
index 58ee0fe..0000000
--- a/ppapi/shared_impl/file_ref_impl.h
+++ /dev/null
@@ -1,65 +0,0 @@
-// Copyright (c) 2011 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.
-
-#ifndef PPAPI_SHARED_IMPL_FILE_REF_IMPL_H_
-#define PPAPI_SHARED_IMPL_FILE_REF_IMPL_H_
-
-#include <string>
-
-#include "base/compiler_specific.h"
-#include "ppapi/shared_impl/resource.h"
-#include "ppapi/thunk/ppb_file_ref_api.h"
-
-namespace ppapi {
-
-class StringVar;
-
-// FileRefs are created in a number of places and they include a number of
-// return values. This struct encapsulates everything in one place.
-struct PPB_FileRef_CreateInfo {
- PPB_FileRef_CreateInfo() : file_system_type(PP_FILESYSTEMTYPE_EXTERNAL) {}
-
- ppapi::HostResource resource;
- int file_system_type; // One of PP_FileSystemType values.
- std::string path;
- std::string name;
-};
-
-// This class provides the shared implementation of a FileRef. The functions
-// that actually "do stuff" like Touch and MakeDirectory are implemented
-// differently for the proxied and non-proxied derived classes.
-class PPAPI_SHARED_EXPORT FileRefImpl : public Resource,
- public thunk::PPB_FileRef_API {
- public:
- struct InitAsImpl {};
- struct InitAsProxy {};
-
- FileRefImpl(const InitAsImpl&, const PPB_FileRef_CreateInfo& info);
- FileRefImpl(const InitAsProxy&, const PPB_FileRef_CreateInfo& info);
- virtual ~FileRefImpl();
-
- // Resource overrides.
- virtual thunk::PPB_FileRef_API* AsPPB_FileRef_API() OVERRIDE;
-
- // PPB_FileRef_API implementation (partial).
- virtual PP_FileSystemType GetFileSystemType() const OVERRIDE;
- virtual PP_Var GetName() const OVERRIDE;
- virtual PP_Var GetPath() const OVERRIDE;
- virtual const PPB_FileRef_CreateInfo& GetCreateInfo() const OVERRIDE;
- virtual PP_Var GetAbsolutePath() = 0;
-
- private:
- PPB_FileRef_CreateInfo create_info_;
-
- // Lazily initialized vars created from the create_info_. This is so we can
- // return the identical string object every time they're requested.
- mutable scoped_refptr<StringVar> name_var_;
- mutable scoped_refptr<StringVar> path_var_;
-
- DISALLOW_IMPLICIT_CONSTRUCTORS(FileRefImpl);
-};
-
-} // namespace ppapi
-
-#endif // PPAPI_SHARED_IMPL_FILE_REF_IMPL_H_