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

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

Issue 7210027: Part I of many. Moving FileIO, FileRef, and FileSystem out of Dev. For now, just copying over s... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/c/trusted/ppb_file_io_trusted.h ('k') | ppapi/cpp/file_io.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) 2011 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_IO_DEV_H_ 5 #ifndef PPAPI_CPP_FILE_IO_H_
6 #define PPAPI_CPP_DEV_FILE_IO_DEV_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/resource.h" 9 #include "ppapi/cpp/resource.h"
10 10
11 struct PP_FileInfo_Dev; 11 struct PP_FileInfo;
12 12
13 namespace pp { 13 namespace pp {
14 14
15 class CompletionCallback; 15 class CompletionCallback;
16 class FileRef_Dev; 16 class FileRef;
17 class Instance; 17 class Instance;
18 18
19 class FileIO_Dev : public Resource { 19 class FileIO: public Resource {
20 public: 20 public:
21 // Constructs an is_null resource. 21 // Constructs an is_null resource.
22 FileIO_Dev(); 22 FileIO();
23 23
24 FileIO_Dev(Instance* instance); 24 FileIO(Instance* instance);
25 FileIO_Dev(const FileIO_Dev& other); 25 FileIO(const FileIO& other);
26 26
27 // PPB_FileIO methods: 27 // PPB_FileIO methods:
28 int32_t Open(const FileRef_Dev& file_ref, 28 int32_t Open(const FileRef& file_ref,
29 int32_t open_flags, 29 int32_t open_flags,
30 const CompletionCallback& cc); 30 const CompletionCallback& cc);
31 int32_t Query(PP_FileInfo_Dev* result_buf, 31 int32_t Query(PP_FileInfo* result_buf,
32 const CompletionCallback& cc); 32 const CompletionCallback& cc);
33 int32_t Touch(PP_Time last_access_time, 33 int32_t Touch(PP_Time last_access_time,
34 PP_Time last_modified_time, 34 PP_Time last_modified_time,
35 const CompletionCallback& cc); 35 const CompletionCallback& cc);
36 int32_t Read(int64_t offset, 36 int32_t Read(int64_t offset,
37 char* buffer, 37 char* buffer,
38 int32_t bytes_to_read, 38 int32_t bytes_to_read,
39 const CompletionCallback& cc); 39 const CompletionCallback& cc);
40 int32_t Write(int64_t offset, 40 int32_t Write(int64_t offset,
41 const char* buffer, 41 const char* buffer,
42 int32_t bytes_to_write, 42 int32_t bytes_to_write,
43 const CompletionCallback& cc); 43 const CompletionCallback& cc);
44 int32_t SetLength(int64_t length, 44 int32_t SetLength(int64_t length,
45 const CompletionCallback& cc); 45 const CompletionCallback& cc);
46 int32_t Flush(const CompletionCallback& cc); 46 int32_t Flush(const CompletionCallback& cc);
47 void Close(); 47 void Close();
48 }; 48 };
49 49
50 } // namespace pp 50 } // namespace pp
51 51
52 #endif // PPAPI_CPP_DEV_FILE_IO_DEV_H_ 52 #endif // PPAPI_CPP_FILE_IO_H_
OLDNEW
« no previous file with comments | « ppapi/c/trusted/ppb_file_io_trusted.h ('k') | ppapi/cpp/file_io.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698