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

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

Issue 10534045: Add CreateTemporaryFile to PPB_Flash_File_ModuleLocal. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
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 <string>
9
8 #include "ppapi/c/private/ppb_flash.h" 10 #include "ppapi/c/private/ppb_flash.h"
9 #include "ppapi/c/private/ppb_flash_clipboard.h" 11 #include "ppapi/c/private/ppb_flash_clipboard.h"
10 #include "ppapi/c/private/ppb_flash_file.h" 12 #include "ppapi/c/private/ppb_flash_file.h"
11 #include "ppapi/thunk/ppapi_thunk_export.h" 13 #include "ppapi/thunk/ppapi_thunk_export.h"
12 14
13 namespace ppapi { 15 namespace ppapi {
14 namespace thunk { 16 namespace thunk {
15 17
16 // This class collects all of the Flash interface-related APIs into one place. 18 // This class collects all of the Flash interface-related APIs into one place.
17 class PPAPI_THUNK_EXPORT PPB_Flash_API { 19 class PPAPI_THUNK_EXPORT PPB_Flash_API {
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 PP_Bool recursive) = 0; 76 PP_Bool recursive) = 0;
75 virtual int32_t CreateDir(PP_Instance instance, const char* path) = 0; 77 virtual int32_t CreateDir(PP_Instance instance, const char* path) = 0;
76 virtual int32_t QueryFile(PP_Instance instance, 78 virtual int32_t QueryFile(PP_Instance instance,
77 const char* path, 79 const char* path,
78 PP_FileInfo* info) = 0; 80 PP_FileInfo* info) = 0;
79 virtual int32_t GetDirContents(PP_Instance instance, 81 virtual int32_t GetDirContents(PP_Instance instance,
80 const char* path, 82 const char* path,
81 PP_DirContents_Dev** contents) = 0; 83 PP_DirContents_Dev** contents) = 0;
82 virtual void FreeDirContents(PP_Instance instance, 84 virtual void FreeDirContents(PP_Instance instance,
83 PP_DirContents_Dev* contents) = 0; 85 PP_DirContents_Dev* contents) = 0;
86 virtual int32_t CreateTemporaryFile(PP_Instance instance,
87 const char* dir_path,
88 PP_FileHandle* file,
89 std::string* file_name) = 0;
84 90
85 // FlashFile_FileRef. 91 // FlashFile_FileRef.
86 virtual int32_t OpenFileRef(PP_Instance instance, 92 virtual int32_t OpenFileRef(PP_Instance instance,
87 PP_Resource file_ref, 93 PP_Resource file_ref,
88 int32_t mode, 94 int32_t mode,
89 PP_FileHandle* file) = 0; 95 PP_FileHandle* file) = 0;
90 virtual int32_t QueryFileRef(PP_Instance instance, 96 virtual int32_t QueryFileRef(PP_Instance instance,
91 PP_Resource file_ref, 97 PP_Resource file_ref,
92 PP_FileInfo* info) = 0; 98 PP_FileInfo* info) = 0;
93 99
94 // FlashFullscreen. 100 // FlashFullscreen.
95 virtual PP_Bool FlashIsFullscreen(PP_Instance instance) = 0; 101 virtual PP_Bool FlashIsFullscreen(PP_Instance instance) = 0;
96 virtual PP_Bool FlashSetFullscreen(PP_Instance instance, 102 virtual PP_Bool FlashSetFullscreen(PP_Instance instance,
97 PP_Bool fullscreen) = 0; 103 PP_Bool fullscreen) = 0;
98 virtual PP_Bool FlashGetScreenSize(PP_Instance instance, PP_Size* size) = 0; 104 virtual PP_Bool FlashGetScreenSize(PP_Instance instance, PP_Size* size) = 0;
99 }; 105 };
100 106
101 } // namespace thunk 107 } // namespace thunk
102 } // namespace ppapi 108 } // namespace ppapi
103 109
104 #endif // PPAPI_THUNK_PPB_FLASH_API_H_ 110 #endif // PPAPI_THUNK_PPB_FLASH_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698