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/thunk/ppb_flash_api.h

Issue 11359097: Refactored the PPB_Flash_File_ModuleLocal/FileRef to the new ppapi resource model (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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/thunk/ppb_file_ref_api.h ('k') | ppapi/thunk/ppb_flash_file_api.h » ('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) 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_FLASH_API_H_ 5 #ifndef PPAPI_THUNK_PPB_FLASH_API_H_
6 #define PPAPI_THUNK_PPB_FLASH_API_H_ 6 #define PPAPI_THUNK_PPB_FLASH_API_H_
7 7
8 #include "ppapi/c/private/ppb_flash.h" 8 #include "ppapi/c/private/ppb_flash.h"
9 #include "ppapi/c/private/ppb_flash_file.h" 9 #include "ppapi/c/private/ppb_flash_file.h"
10 #include "ppapi/thunk/ppapi_thunk_export.h" 10 #include "ppapi/thunk/ppapi_thunk_export.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 // Internal navigate function that takes a URLRequestInfoData. 51 // Internal navigate function that takes a URLRequestInfoData.
52 virtual int32_t Navigate(PP_Instance instance, 52 virtual int32_t Navigate(PP_Instance instance,
53 const URLRequestInfoData& data, 53 const URLRequestInfoData& data,
54 const char* target, 54 const char* target,
55 PP_Bool from_user_action) = 0; 55 PP_Bool from_user_action) = 0;
56 56
57 virtual double GetLocalTimeZoneOffset(PP_Instance instance, PP_Time t) = 0; 57 virtual double GetLocalTimeZoneOffset(PP_Instance instance, PP_Time t) = 0;
58 virtual PP_Bool IsRectTopmost(PP_Instance instance, const PP_Rect* rect) = 0; 58 virtual PP_Bool IsRectTopmost(PP_Instance instance, const PP_Rect* rect) = 0;
59 virtual PP_Var GetSetting(PP_Instance instance, PP_FlashSetting setting) = 0; 59 virtual PP_Var GetSetting(PP_Instance instance, PP_FlashSetting setting) = 0;
60
61 // FlashFile_ModuleLocal.
62 virtual bool CreateThreadAdapterForInstance(PP_Instance instance) = 0;
63 virtual void ClearThreadAdapterForInstance(PP_Instance instance) = 0;
64 virtual int32_t OpenFile(PP_Instance instance,
65 const char* path,
66 int32_t mode,
67 PP_FileHandle* file) = 0;
68 virtual int32_t RenameFile(PP_Instance instance,
69 const char* path_from,
70 const char* path_to) = 0;
71 virtual int32_t DeleteFileOrDir(PP_Instance instance,
72 const char* path,
73 PP_Bool recursive) = 0;
74 virtual int32_t CreateDir(PP_Instance instance, const char* path) = 0;
75 virtual int32_t QueryFile(PP_Instance instance,
76 const char* path,
77 PP_FileInfo* info) = 0;
78 virtual int32_t GetDirContents(PP_Instance instance,
79 const char* path,
80 PP_DirContents_Dev** contents) = 0;
81 virtual void FreeDirContents(PP_Instance instance,
82 PP_DirContents_Dev* contents) = 0;
83 virtual int32_t CreateTemporaryFile(PP_Instance instance,
84 PP_FileHandle* file) = 0;
85
86 // FlashFile_FileRef.
87 virtual int32_t OpenFileRef(PP_Instance instance,
88 PP_Resource file_ref,
89 int32_t mode,
90 PP_FileHandle* file) = 0;
91 virtual int32_t QueryFileRef(PP_Instance instance,
92 PP_Resource file_ref,
93 PP_FileInfo* info) = 0;
94 }; 60 };
95 61
96 } // namespace thunk 62 } // namespace thunk
97 } // namespace ppapi 63 } // namespace ppapi
98 64
99 #endif // PPAPI_THUNK_PPB_FLASH_API_H_ 65 #endif // PPAPI_THUNK_PPB_FLASH_API_H_
OLDNEW
« no previous file with comments | « ppapi/thunk/ppb_file_ref_api.h ('k') | ppapi/thunk/ppb_flash_file_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698