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

Side by Side Diff: ppapi/cpp/file_io.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 | « no previous file | ppapi/cpp/file_system.h » ('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_IO_H_ 5 #ifndef PPAPI_CPP_FILE_IO_H_
6 #define PPAPI_CPP_FILE_IO_H_ 6 #define PPAPI_CPP_FILE_IO_H_
7 7
8 #include "ppapi/c/pp_time.h" 8 #include "ppapi/c/pp_time.h"
9 #include "ppapi/cpp/completion_callback.h" 9 #include "ppapi/cpp/completion_callback.h"
10 #include "ppapi/cpp/resource.h" 10 #include "ppapi/cpp/resource.h"
(...skipping 17 matching lines...) Expand all
28 28
29 /// A constructor used to create a <code>FileIO</code> and associate it with 29 /// A constructor used to create a <code>FileIO</code> and associate it with
30 /// the provided <code>Instance</code>. 30 /// the provided <code>Instance</code>.
31 /// 31 ///
32 /// @param[in] instance The instance with which this resource will be 32 /// @param[in] instance The instance with which this resource will be
33 /// associated. 33 /// associated.
34 explicit FileIO(const InstanceHandle& instance); 34 explicit FileIO(const InstanceHandle& instance);
35 35
36 /// The copy constructor for <code>FileIO</code>. 36 /// The copy constructor for <code>FileIO</code>.
37 /// 37 ///
38 /// @param[in] other A pointer to a <code>FileIO</code>. 38 /// @param[in] other A reference to a <code>FileIO</code>.
39 FileIO(const FileIO& other); 39 FileIO(const FileIO& other);
40 40
41 /// Open() opens the specified regular file for I/O according to the given 41 /// Open() opens the specified regular file for I/O according to the given
42 /// open flags, which is a bit-mask of the PP_FileOpenFlags values. Upon 42 /// open flags, which is a bit-mask of the PP_FileOpenFlags values. Upon
43 /// success, the corresponding file is classified as "in use" by this FileIO 43 /// success, the corresponding file is classified as "in use" by this FileIO
44 /// object until such time as the FileIO object is closed or destroyed. 44 /// object until such time as the FileIO object is closed or destroyed.
45 /// 45 ///
46 /// @param[in] file_ref A <code>PP_Resource</code> corresponding to a file 46 /// @param[in] file_ref A <code>PP_Resource</code> corresponding to a file
47 /// reference. 47 /// reference.
48 /// 48 ///
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 // interface in 1.1. 234 // interface in 1.1.
235 // 235 //
236 // This takes a heap-allocated CallbackData1_0 struct passed as the user data 236 // This takes a heap-allocated CallbackData1_0 struct passed as the user data
237 // and deletes it when the call completes. 237 // and deletes it when the call completes.
238 static void CallbackConverter(void* user_data, int32_t result); 238 static void CallbackConverter(void* user_data, int32_t result);
239 }; 239 };
240 240
241 } // namespace pp 241 } // namespace pp
242 242
243 #endif // PPAPI_CPP_FILE_IO_H_ 243 #endif // PPAPI_CPP_FILE_IO_H_
OLDNEW
« no previous file with comments | « no previous file | ppapi/cpp/file_system.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698