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

Side by Side Diff: ppapi/cpp/dev/file_ref_dev.h

Issue 5539001: Remove all the swap() stuff in the PPAPI C++ wrappers.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/cpp/dev/file_io_dev.cc ('k') | ppapi/cpp/dev/file_ref_dev.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_DEV_FILE_REF_DEV_H_ 5 #ifndef PPAPI_CPP_DEV_FILE_REF_DEV_H_
6 #define PPAPI_CPP_DEV_FILE_REF_DEV_H_ 6 #define PPAPI_CPP_DEV_FILE_REF_DEV_H_
7 7
8 #include "ppapi/c/dev/ppb_file_ref_dev.h" 8 #include "ppapi/c/dev/ppb_file_ref_dev.h"
9 #include "ppapi/c/pp_stdint.h" 9 #include "ppapi/c/pp_stdint.h"
10 #include "ppapi/cpp/resource.h" 10 #include "ppapi/cpp/resource.h"
(...skipping 17 matching lines...) Expand all
28 // that has already been addref'ed for us. 28 // that has already been addref'ed for us.
29 struct PassRef {}; 29 struct PassRef {};
30 FileRef_Dev(PassRef, PP_Resource resource); 30 FileRef_Dev(PassRef, PP_Resource resource);
31 31
32 // Creates a FileRef pointing to a path in the given filesystem. 32 // Creates a FileRef pointing to a path in the given filesystem.
33 FileRef_Dev(const FileSystem_Dev& file_system, const char* path); 33 FileRef_Dev(const FileSystem_Dev& file_system, const char* path);
34 34
35 FileRef_Dev(const FileRef_Dev& other); 35 FileRef_Dev(const FileRef_Dev& other);
36 36
37 FileRef_Dev& operator=(const FileRef_Dev& other); 37 FileRef_Dev& operator=(const FileRef_Dev& other);
38 void swap(FileRef_Dev& other);
39 38
40 // Returns the file system type. 39 // Returns the file system type.
41 PP_FileSystemType_Dev GetFileSystemType() const; 40 PP_FileSystemType_Dev GetFileSystemType() const;
42 41
43 // Returns the name of the file. 42 // Returns the name of the file.
44 Var GetName() const; 43 Var GetName() const;
45 44
46 // Returns the absolute path of the file. See PPB_FileRef::GetPath for more 45 // Returns the absolute path of the file. See PPB_FileRef::GetPath for more
47 // details. 46 // details.
48 Var GetPath() const; 47 Var GetPath() const;
(...skipping 13 matching lines...) Expand all
62 const CompletionCallback& cc); 61 const CompletionCallback& cc);
63 62
64 int32_t Delete(const CompletionCallback& cc); 63 int32_t Delete(const CompletionCallback& cc);
65 64
66 int32_t Rename(const FileRef_Dev& new_file_ref, const CompletionCallback& cc); 65 int32_t Rename(const FileRef_Dev& new_file_ref, const CompletionCallback& cc);
67 }; 66 };
68 67
69 } // namespace pp 68 } // namespace pp
70 69
71 #endif // PPAPI_CPP_FILE_REF_H_ 70 #endif // PPAPI_CPP_FILE_REF_H_
OLDNEW
« no previous file with comments | « ppapi/cpp/dev/file_io_dev.cc ('k') | ppapi/cpp/dev/file_ref_dev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698