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

Side by Side Diff: ppapi/thunk/ppb_file_io_api.h

Issue 13032002: Add RequestOSFileHandle as a private PPAPI (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: addressed comments Created 7 years, 8 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
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_THUNK_PPB_FILE_IO_API_H_ 5 #ifndef PPAPI_THUNK_PPB_FILE_IO_API_H_
6 #define PPAPI_THUNK_PPB_FILE_IO_API_H_ 6 #define PPAPI_THUNK_PPB_FILE_IO_API_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "ppapi/c/ppb_file_io.h" 9 #include "ppapi/c/ppb_file_io.h"
10 #include "ppapi/c/private/pp_file_handle.h"
10 #include "ppapi/thunk/ppapi_thunk_export.h" 11 #include "ppapi/thunk/ppapi_thunk_export.h"
11 12
12 namespace ppapi { 13 namespace ppapi {
13 14
14 class TrackedCallback; 15 class TrackedCallback;
15 16
16 namespace thunk { 17 namespace thunk {
17 18
18 class PPAPI_THUNK_EXPORT PPB_FileIO_API { 19 class PPAPI_THUNK_EXPORT PPB_FileIO_API {
19 public: 20 public:
(...skipping 24 matching lines...) Expand all
44 virtual int32_t Flush(scoped_refptr<TrackedCallback> callback) = 0; 45 virtual int32_t Flush(scoped_refptr<TrackedCallback> callback) = 0;
45 virtual void Close() = 0; 46 virtual void Close() = 0;
46 47
47 // Trusted API. 48 // Trusted API.
48 virtual int32_t GetOSFileDescriptor() = 0; 49 virtual int32_t GetOSFileDescriptor() = 0;
49 virtual int32_t WillWrite(int64_t offset, 50 virtual int32_t WillWrite(int64_t offset,
50 int32_t bytes_to_write, 51 int32_t bytes_to_write,
51 scoped_refptr<TrackedCallback> callback) = 0; 52 scoped_refptr<TrackedCallback> callback) = 0;
52 virtual int32_t WillSetLength(int64_t length, 53 virtual int32_t WillSetLength(int64_t length,
53 scoped_refptr<TrackedCallback> callback) = 0; 54 scoped_refptr<TrackedCallback> callback) = 0;
55
56 // Private API.
57 virtual int32_t GetOSFileHandle(
58 PP_FileHandle* handle,
59 scoped_refptr<TrackedCallback> callback) = 0;
54 }; 60 };
55 61
56 } // namespace thunk 62 } // namespace thunk
57 } // namespace ppapi 63 } // namespace ppapi
58 64
59 #endif // PPAPI_THUNK_PPB_FILE_IO_API_H_ 65 #endif // PPAPI_THUNK_PPB_FILE_IO_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698