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

Side by Side Diff: ppapi/c/private/ppb_flash_file.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 | « content/renderer/pepper/pepper_plugin_delegate_impl.cc ('k') | ppapi/ppapi_ipc.gypi » ('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_C_PRIVATE_PPB_FLASH_FILE_H_ 5 #ifndef PPAPI_C_PRIVATE_PPB_FLASH_FILE_H_
6 #define PPAPI_C_PRIVATE_PPB_FLASH_FILE_H_ 6 #define PPAPI_C_PRIVATE_PPB_FLASH_FILE_H_
7 7
8 #include "ppapi/c/pp_bool.h" 8 #include "ppapi/c/pp_bool.h"
9 #include "ppapi/c/pp_instance.h" 9 #include "ppapi/c/pp_instance.h"
10 #include "ppapi/c/pp_resource.h" 10 #include "ppapi/c/pp_resource.h"
(...skipping 13 matching lines...) Expand all
24 24
25 // PPB_Flash_File_ModuleLocal -------------------------------------------------- 25 // PPB_Flash_File_ModuleLocal --------------------------------------------------
26 #define PPB_FLASH_FILE_MODULELOCAL_INTERFACE_3_0 "PPB_Flash_File_ModuleLocal;3" 26 #define PPB_FLASH_FILE_MODULELOCAL_INTERFACE_3_0 "PPB_Flash_File_ModuleLocal;3"
27 #define PPB_FLASH_FILE_MODULELOCAL_INTERFACE \ 27 #define PPB_FLASH_FILE_MODULELOCAL_INTERFACE \
28 PPB_FLASH_FILE_MODULELOCAL_INTERFACE_3_0 28 PPB_FLASH_FILE_MODULELOCAL_INTERFACE_3_0
29 29
30 // This interface provides (for Flash) synchronous access to module-local files. 30 // This interface provides (for Flash) synchronous access to module-local files.
31 // Module-local file paths are '/'-separated UTF-8 strings, relative to a 31 // Module-local file paths are '/'-separated UTF-8 strings, relative to a
32 // module-specific root. 32 // module-specific root.
33 struct PPB_Flash_File_ModuleLocal_3_0 { 33 struct PPB_Flash_File_ModuleLocal_3_0 {
34 // Does initialization necessary for proxying this interface on background 34 // Deprecated. Returns true.
35 // threads. You must always call this function before using any other
36 // function in this interface for a given instance ID.
37 //
38 // Returns true if multithreaded access is supported. In this case you can
39 // use the rest of the functions from background threads. You may not call
40 // GetInterface or do any other PPAPI operations on background threads at
41 // this time.
42 bool (*CreateThreadAdapterForInstance)(PP_Instance instance); 35 bool (*CreateThreadAdapterForInstance)(PP_Instance instance);
43 36 // Deprecated. Does nothing.
44 // Call when an instance is destroyed when you've previously called
45 // CreateThreadAdapterForInstance.
46 void (*ClearThreadAdapterForInstance)(PP_Instance instance); 37 void (*ClearThreadAdapterForInstance)(PP_Instance instance);
47 38
48 // Opens a file, returning a file descriptor (posix) or a HANDLE (win32) into 39 // Opens a file, returning a file descriptor (posix) or a HANDLE (win32) into
49 // file. The return value is the ppapi error, PP_OK if success, one of the 40 // file. The return value is the ppapi error, PP_OK if success, one of the
50 // PP_ERROR_* in case of failure. 41 // PP_ERROR_* in case of failure.
51 int32_t (*OpenFile)(PP_Instance instance, 42 int32_t (*OpenFile)(PP_Instance instance,
52 const char* path, 43 const char* path,
53 int32_t mode, 44 int32_t mode,
54 PP_FileHandle* file); 45 PP_FileHandle* file);
55 46
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 // (except in taking FileRefs instead of paths, of course). We omit the 103 // (except in taking FileRefs instead of paths, of course). We omit the
113 // functionality which we do not provide for FileRefs. 104 // functionality which we do not provide for FileRefs.
114 int32_t (*OpenFile)(PP_Resource file_ref_id, 105 int32_t (*OpenFile)(PP_Resource file_ref_id,
115 int32_t mode, 106 int32_t mode,
116 PP_FileHandle* file); 107 PP_FileHandle* file);
117 int32_t (*QueryFile)(PP_Resource file_ref_id, 108 int32_t (*QueryFile)(PP_Resource file_ref_id,
118 struct PP_FileInfo* info); 109 struct PP_FileInfo* info);
119 }; 110 };
120 111
121 #endif // PPAPI_C_PRIVATE_PPB_FLASH_FILE_H_ 112 #endif // PPAPI_C_PRIVATE_PPB_FLASH_FILE_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_plugin_delegate_impl.cc ('k') | ppapi/ppapi_ipc.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698