1 // Copyright 2013 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef PPAPI_SHARED_IMPL_FILE_REF_CREATE_INFO_H 6 #define PPAPI_SHARED_IMPL_FILE_REF_CREATE_INFO_H 7 8 #include <string> 9 10 #include "base/files/file_path.h" 11 #include "ppapi/c/pp_file_info.h" 12 #include "ppapi/c/pp_resource.h" 13 14 namespace ppapi { 15 16 // FileRefs are created in a number of places and they include a number of 17 // return values. This struct encapsulates everything in one place. 18 struct FileRef_CreateInfo { 19 PP_FileSystemType file_system_type; 20 std::string internal_path; 21 std::string display_name; 22 23 // Used when a FileRef is created in the Renderer. 24 int pending_host_resource_id; 25 26 // Since FileRef needs to hold a FileSystem reference, we need to pass the 27 // resource in this CreateInfo. 28 PP_Resource file_system_plugin_resource; 29 }; 30 31 } // namespace ppapi 32 33 #endif // PPAPI_SHARED_IMPL_FILE_REF_CREATE_INFO_H 34