From 89a7a11369eeef93fad3153984da2eca432c82fb Mon Sep 17 00:00:00 2001 From: "brettw@chromium.org" Date: Tue, 20 Sep 2011 20:10:09 +0000 Subject: Add a default contrustor to the FileSystem wrapper. This is for consistency with the other resource wrappers and to support certain patterns of use. TEST=none BUG=none Review URL: http://codereview.chromium.org/7945002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102000 0039d316-1c4b-4281-b951-d872f2087c98 --- ppapi/cpp/file_system.cc | 3 +++ ppapi/cpp/file_system.h | 4 ++++ 2 files changed, 7 insertions(+) (limited to 'ppapi/cpp') diff --git a/ppapi/cpp/file_system.cc b/ppapi/cpp/file_system.cc index b5ee1f3..8499dfd 100644 --- a/ppapi/cpp/file_system.cc +++ b/ppapi/cpp/file_system.cc @@ -21,6 +21,9 @@ template <> const char* interface_name() { } // namespace +FileSystem::FileSystem() { +} + FileSystem::FileSystem(Instance* instance, PP_FileSystemType type) { if (!has_interface()) diff --git a/ppapi/cpp/file_system.h b/ppapi/cpp/file_system.h index 1c213d6..fc789359 100644 --- a/ppapi/cpp/file_system.h +++ b/ppapi/cpp/file_system.h @@ -26,6 +26,10 @@ class FileRef; /// associated with a file. class FileSystem : public Resource { public: + /// Constructs an is_null() filesystem resource. If you use this constructor, + /// you will have to assign it to a "real" FileSystem object before you can + /// use it. + FileSystem(); /// This constructor creates a file system object of the given type. /// -- cgit v1.1