diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-20 20:10:09 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-20 20:10:09 +0000 |
commit | 89a7a11369eeef93fad3153984da2eca432c82fb (patch) | |
tree | 735529b12671d735c02a108971cfccc44c855905 /ppapi/cpp | |
parent | dafab7597fe21cb8eb08e384a09636e7cd7c88dc (diff) | |
download | chromium_src-89a7a11369eeef93fad3153984da2eca432c82fb.zip chromium_src-89a7a11369eeef93fad3153984da2eca432c82fb.tar.gz chromium_src-89a7a11369eeef93fad3153984da2eca432c82fb.tar.bz2 |
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
Diffstat (limited to 'ppapi/cpp')
-rw-r--r-- | ppapi/cpp/file_system.cc | 3 | ||||
-rw-r--r-- | ppapi/cpp/file_system.h | 4 |
2 files changed, 7 insertions, 0 deletions
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<PPB_FileSystem>() { } // namespace +FileSystem::FileSystem() { +} + FileSystem::FileSystem(Instance* instance, PP_FileSystemType type) { if (!has_interface<PPB_FileSystem>()) 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. /// |