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

Side by Side Diff: webkit/plugins/ppapi/ppb_file_ref_impl.h

Issue 10081020: PPAPI: Make blocking completion callbacks work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated TestURLLoader to test blocking callbacks. Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 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 WEBKIT_PLUGINS_PPAPI_PPB_FILE_REF_IMPL_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_FILE_REF_IMPL_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPB_FILE_REF_IMPL_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PPB_FILE_REF_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 21 matching lines...) Expand all
32 static PPB_FileRef_Impl* CreateInternal(PP_Resource pp_file_system, 32 static PPB_FileRef_Impl* CreateInternal(PP_Resource pp_file_system,
33 const std::string& path); 33 const std::string& path);
34 34
35 // The returned object will have a refcount of 0 (just like "new"). 35 // The returned object will have a refcount of 0 (just like "new").
36 static PPB_FileRef_Impl* CreateExternal(PP_Instance instance, 36 static PPB_FileRef_Impl* CreateExternal(PP_Instance instance,
37 const FilePath& external_file_path); 37 const FilePath& external_file_path);
38 38
39 // PPB_FileRef_API implementation (not provided by PPB_FileRef_Shared). 39 // PPB_FileRef_API implementation (not provided by PPB_FileRef_Shared).
40 virtual PP_Resource GetParent() OVERRIDE; 40 virtual PP_Resource GetParent() OVERRIDE;
41 virtual int32_t MakeDirectory(PP_Bool make_ancestors, 41 virtual int32_t MakeDirectory(PP_Bool make_ancestors,
42 PP_CompletionCallback callback) OVERRIDE; 42 ::ppapi::ApiCallbackType callback) OVERRIDE;
43 virtual int32_t Touch(PP_Time last_access_time, 43 virtual int32_t Touch(PP_Time last_access_time,
44 PP_Time last_modified_time, 44 PP_Time last_modified_time,
45 PP_CompletionCallback callback) OVERRIDE; 45 ::ppapi::ApiCallbackType callback) OVERRIDE;
46 virtual int32_t Delete(PP_CompletionCallback callback) OVERRIDE; 46 virtual int32_t Delete(::ppapi::ApiCallbackType callback) OVERRIDE;
47 virtual int32_t Rename(PP_Resource new_file_ref, 47 virtual int32_t Rename(PP_Resource new_file_ref,
48 PP_CompletionCallback callback) OVERRIDE; 48 ::ppapi::ApiCallbackType callback) OVERRIDE;
49 virtual PP_Var GetAbsolutePath(); 49 virtual PP_Var GetAbsolutePath();
50 50
51 PPB_FileSystem_Impl* file_system() const { return file_system_.get(); } 51 PPB_FileSystem_Impl* file_system() const { return file_system_.get(); }
52 52
53 // Returns the system path corresponding to this file. Valid only for 53 // Returns the system path corresponding to this file. Valid only for
54 // external filesystems. 54 // external filesystems.
55 FilePath GetSystemPath() const; 55 FilePath GetSystemPath() const;
56 56
57 // Returns the FileSystem API URL corresponding to this file. 57 // Returns the FileSystem API URL corresponding to this file.
58 GURL GetFileSystemURL() const; 58 GURL GetFileSystemURL() const;
(...skipping 16 matching lines...) Expand all
75 // return the identical string object every time it is requested. 75 // return the identical string object every time it is requested.
76 scoped_refptr<StringVar> external_path_var_; 76 scoped_refptr<StringVar> external_path_var_;
77 77
78 DISALLOW_COPY_AND_ASSIGN(PPB_FileRef_Impl); 78 DISALLOW_COPY_AND_ASSIGN(PPB_FileRef_Impl);
79 }; 79 };
80 80
81 } // namespace ppapi 81 } // namespace ppapi
82 } // namespace webkit 82 } // namespace webkit
83 83
84 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FILE_REF_IMPL_H_ 84 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FILE_REF_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698