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

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

Issue 10081020: PPAPI: Make blocking completion callbacks work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: export AssertLockHeld Created 8 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/thunk/ppb_file_io_trusted_thunk.cc ('k') | ppapi/thunk/ppb_file_ref_thunk.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) 2011 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_REF_API_H_ 5 #ifndef PPAPI_THUNK_PPB_FILE_REF_API_H_
6 #define PPAPI_THUNK_PPB_FILE_REF_API_H_ 6 #define PPAPI_THUNK_PPB_FILE_REF_API_H_
7 7
8 #include "base/memory/ref_counted.h"
8 #include "ppapi/c/ppb_file_ref.h" 9 #include "ppapi/c/ppb_file_ref.h"
9 #include "ppapi/thunk/ppapi_thunk_export.h" 10 #include "ppapi/thunk/ppapi_thunk_export.h"
10 11
11 namespace ppapi { 12 namespace ppapi {
12 13
13 struct PPB_FileRef_CreateInfo; 14 struct PPB_FileRef_CreateInfo;
15 class TrackedCallback;
14 16
15 namespace thunk { 17 namespace thunk {
16 18
17 class PPAPI_THUNK_EXPORT PPB_FileRef_API { 19 class PPAPI_THUNK_EXPORT PPB_FileRef_API {
18 public: 20 public:
19 virtual ~PPB_FileRef_API() {} 21 virtual ~PPB_FileRef_API() {}
20 22
21 virtual PP_FileSystemType GetFileSystemType() const = 0; 23 virtual PP_FileSystemType GetFileSystemType() const = 0;
22 virtual PP_Var GetName() const = 0; 24 virtual PP_Var GetName() const = 0;
23 virtual PP_Var GetPath() const = 0; 25 virtual PP_Var GetPath() const = 0;
24 virtual PP_Resource GetParent() = 0; 26 virtual PP_Resource GetParent() = 0;
25 virtual int32_t MakeDirectory(PP_Bool make_ancestors, 27 virtual int32_t MakeDirectory(PP_Bool make_ancestors,
26 PP_CompletionCallback callback) = 0; 28 scoped_refptr<TrackedCallback> callback) = 0;
27 virtual int32_t Touch(PP_Time last_access_time, 29 virtual int32_t Touch(PP_Time last_access_time,
28 PP_Time last_modified_time, 30 PP_Time last_modified_time,
29 PP_CompletionCallback callback) = 0; 31 scoped_refptr<TrackedCallback> callback) = 0;
30 virtual int32_t Delete(PP_CompletionCallback callback) = 0; 32 virtual int32_t Delete(scoped_refptr<TrackedCallback> callback) = 0;
31 virtual int32_t Rename(PP_Resource new_file_ref, 33 virtual int32_t Rename(PP_Resource new_file_ref,
32 PP_CompletionCallback callback) = 0; 34 scoped_refptr<TrackedCallback> callback) = 0;
33 35
34 // Intermal function for use in proxying. Returns the internal CreateInfo 36 // Intermal function for use in proxying. Returns the internal CreateInfo
35 // (the contained resource does not carry a ref on behalf of the caller). 37 // (the contained resource does not carry a ref on behalf of the caller).
36 virtual const PPB_FileRef_CreateInfo& GetCreateInfo() const = 0; 38 virtual const PPB_FileRef_CreateInfo& GetCreateInfo() const = 0;
37 39
38 // Private API 40 // Private API
39 virtual PP_Var GetAbsolutePath() = 0; 41 virtual PP_Var GetAbsolutePath() = 0;
40 }; 42 };
41 43
42 } // namespace thunk 44 } // namespace thunk
43 } // namespace ppapi 45 } // namespace ppapi
44 46
45 #endif // PPAPI_THUNK_PPB_FILE_REF_API_H_ 47 #endif // PPAPI_THUNK_PPB_FILE_REF_API_H_
OLDNEW
« no previous file with comments | « ppapi/thunk/ppb_file_io_trusted_thunk.cc ('k') | ppapi/thunk/ppb_file_ref_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698