OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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 #include "content/browser/renderer_host/pepper/pepper_external_file_ref_backend.
h" | 5 #include "content/browser/renderer_host/pepper/pepper_external_file_ref_backend.
h" |
6 | 6 |
| 7 #include <string.h> |
| 8 |
7 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
8 #include "base/files/file_util_proxy.h" | 10 #include "base/files/file_util_proxy.h" |
9 #include "content/browser/child_process_security_policy_impl.h" | 11 #include "content/browser/child_process_security_policy_impl.h" |
10 #include "content/public/browser/browser_thread.h" | 12 #include "content/public/browser/browser_thread.h" |
11 #include "ppapi/c/pp_errors.h" | 13 #include "ppapi/c/pp_errors.h" |
12 #include "ppapi/c/pp_time.h" | 14 #include "ppapi/c/pp_time.h" |
13 #include "ppapi/host/ppapi_host.h" | 15 #include "ppapi/host/ppapi_host.h" |
14 #include "ppapi/proxy/ppapi_messages.h" | 16 #include "ppapi/proxy/ppapi_messages.h" |
15 #include "ppapi/shared_impl/file_type_conversion.h" | 17 #include "ppapi/shared_impl/file_type_conversion.h" |
16 #include "ppapi/shared_impl/time_conversion.h" | 18 #include "ppapi/shared_impl/time_conversion.h" |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 file_info, PP_FILESYSTEMTYPE_EXTERNAL, &pp_file_info); | 153 file_info, PP_FILESYSTEMTYPE_EXTERNAL, &pp_file_info); |
152 } else { | 154 } else { |
153 memset(&pp_file_info, 0, sizeof(pp_file_info)); | 155 memset(&pp_file_info, 0, sizeof(pp_file_info)); |
154 } | 156 } |
155 | 157 |
156 host_->SendReply(reply_context, | 158 host_->SendReply(reply_context, |
157 PpapiPluginMsg_FileRef_QueryReply(pp_file_info)); | 159 PpapiPluginMsg_FileRef_QueryReply(pp_file_info)); |
158 } | 160 } |
159 | 161 |
160 } // namespace content | 162 } // namespace content |
OLD | NEW |