summaryrefslogtreecommitdiffstats
path: root/ppapi
diff options
context:
space:
mode:
authorvictorhsieh@chromium.org <victorhsieh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-09 05:29:36 +0000
committervictorhsieh@chromium.org <victorhsieh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-09 05:29:36 +0000
commitdeac5e5cccab3475d718553aa2abd1e58d2ede1d (patch)
tree371b132ca419d5d3d724867f2382fcbcb5972017 /ppapi
parentb5c14759e92d605e8eb94b05783825c0e0085cfe (diff)
downloadchromium_src-deac5e5cccab3475d718553aa2abd1e58d2ede1d.zip
chromium_src-deac5e5cccab3475d718553aa2abd1e58d2ede1d.tar.gz
chromium_src-deac5e5cccab3475d718553aa2abd1e58d2ede1d.tar.bz2
pp::FileSystem: add copy constrctor
This will make the output callback of ExtCrxFileSystemPrivate.Open easier to use. BUG=223301 Review URL: https://chromiumcodereview.appspot.com/14576007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199121 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi')
-rw-r--r--ppapi/cpp/file_io.h2
-rw-r--r--ppapi/cpp/file_system.cc3
-rw-r--r--ppapi/cpp/file_system.h5
3 files changed, 9 insertions, 1 deletions
diff --git a/ppapi/cpp/file_io.h b/ppapi/cpp/file_io.h
index 9bbb5f7..99d8ce7 100644
--- a/ppapi/cpp/file_io.h
+++ b/ppapi/cpp/file_io.h
@@ -35,7 +35,7 @@ class FileIO : public Resource {
/// The copy constructor for <code>FileIO</code>.
///
- /// @param[in] other A pointer to a <code>FileIO</code>.
+ /// @param[in] other A reference to a <code>FileIO</code>.
FileIO(const FileIO& other);
/// Open() opens the specified regular file for I/O according to the given
diff --git a/ppapi/cpp/file_system.cc b/ppapi/cpp/file_system.cc
index de14c36..f993fda 100644
--- a/ppapi/cpp/file_system.cc
+++ b/ppapi/cpp/file_system.cc
@@ -25,6 +25,9 @@ template <> const char* interface_name<PPB_FileSystem_1_0>() {
FileSystem::FileSystem() {
}
+FileSystem::FileSystem(const FileSystem& other) : Resource(other) {
+}
+
FileSystem::FileSystem(PassRef, PP_Resource resource)
: Resource(PASS_REF, resource) {
}
diff --git a/ppapi/cpp/file_system.h b/ppapi/cpp/file_system.h
index 6b67ca3..9baa78e 100644
--- a/ppapi/cpp/file_system.h
+++ b/ppapi/cpp/file_system.h
@@ -28,6 +28,11 @@ class FileSystem : public Resource {
/// use it.
FileSystem();
+ /// The copy constructor for <code>FileSystem</code>.
+ ///
+ /// @param[in] other A reference to a <code>FileSystem</code>.
+ FileSystem(const FileSystem& other);
+
/// A constructor used when you have received a PP_Resource as a return
/// value that has already been reference counted.
///