Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(360)

Side by Side Diff: ppapi/cpp/file_system.h

Issue 14576007: pp::FileSystem: add copy constrctor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ppapi/cpp/file_io.h ('k') | ppapi/cpp/file_system.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PPAPI_CPP_FILE_SYSTEM_H_ 5 #ifndef PPAPI_CPP_FILE_SYSTEM_H_
6 #define PPAPI_CPP_FILE_SYSTEM_H_ 6 #define PPAPI_CPP_FILE_SYSTEM_H_
7 7
8 #include "ppapi/c/pp_file_info.h" 8 #include "ppapi/c/pp_file_info.h"
9 #include "ppapi/c/pp_instance.h" 9 #include "ppapi/c/pp_instance.h"
10 #include "ppapi/c/pp_stdint.h" 10 #include "ppapi/c/pp_stdint.h"
(...skipping 10 matching lines...) Expand all
21 21
22 /// The <code>FileSystem</code> class identifies the file system type 22 /// The <code>FileSystem</code> class identifies the file system type
23 /// associated with a file. 23 /// associated with a file.
24 class FileSystem : public Resource { 24 class FileSystem : public Resource {
25 public: 25 public:
26 /// Constructs an is_null() filesystem resource. If you use this constructor, 26 /// Constructs an is_null() filesystem resource. If you use this constructor,
27 /// you will have to assign it to a "real" FileSystem object before you can 27 /// you will have to assign it to a "real" FileSystem object before you can
28 /// use it. 28 /// use it.
29 FileSystem(); 29 FileSystem();
30 30
31 /// The copy constructor for <code>FileSystem</code>.
32 ///
33 /// @param[in] other A reference to a <code>FileSystem</code>.
34 FileSystem(const FileSystem& other);
35
31 /// A constructor used when you have received a PP_Resource as a return 36 /// A constructor used when you have received a PP_Resource as a return
32 /// value that has already been reference counted. 37 /// value that has already been reference counted.
33 /// 38 ///
34 /// @param[in] resource A PP_Resource corresponding to a PPB_FileSystem. 39 /// @param[in] resource A PP_Resource corresponding to a PPB_FileSystem.
35 FileSystem(PassRef, PP_Resource resource); 40 FileSystem(PassRef, PP_Resource resource);
36 41
37 /// This constructor creates a file system object of the given type. 42 /// This constructor creates a file system object of the given type.
38 /// 43 ///
39 /// @param[in] instance The instance with which this resource will be 44 /// @param[in] instance The instance with which this resource will be
40 /// associated. 45 /// associated.
(...skipping 15 matching lines...) Expand all
56 /// @param[in] cc A <code>PP_CompletionCallback</code> to be called upon 61 /// @param[in] cc A <code>PP_CompletionCallback</code> to be called upon
57 /// completion of Open(). 62 /// completion of Open().
58 /// 63 ///
59 /// @return An int32_t containing an error code from <code>pp_errors.h</code>. 64 /// @return An int32_t containing an error code from <code>pp_errors.h</code>.
60 int32_t Open(int64_t expected_size, const CompletionCallback& cc); 65 int32_t Open(int64_t expected_size, const CompletionCallback& cc);
61 }; 66 };
62 67
63 } // namespace pp 68 } // namespace pp
64 69
65 #endif // PPAPI_CPP_FILE_SYSTEM_H_ 70 #endif // PPAPI_CPP_FILE_SYSTEM_H_
OLDNEW
« no previous file with comments | « ppapi/cpp/file_io.h ('k') | ppapi/cpp/file_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698