| OLD | NEW |
| 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 #include "content/renderer/pepper/pepper_file_chooser_host.h" | 5 #include "content/renderer/pepper/pepper_file_chooser_host.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/macros.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 9 #include "content/public/renderer/renderer_ppapi_host.h" | 12 #include "content/public/renderer/renderer_ppapi_host.h" |
| 10 #include "content/renderer/pepper/pepper_file_ref_renderer_host.h" | 13 #include "content/renderer/pepper/pepper_file_ref_renderer_host.h" |
| 11 #include "content/renderer/render_view_impl.h" | 14 #include "content/renderer/render_view_impl.h" |
| 12 #include "ppapi/c/pp_errors.h" | 15 #include "ppapi/c/pp_errors.h" |
| 13 #include "ppapi/host/dispatch_host_message.h" | 16 #include "ppapi/host/dispatch_host_message.h" |
| 14 #include "ppapi/host/ppapi_host.h" | 17 #include "ppapi/host/ppapi_host.h" |
| 15 #include "ppapi/proxy/ppapi_messages.h" | 18 #include "ppapi/proxy/ppapi_messages.h" |
| 16 #include "third_party/WebKit/public/platform/WebCString.h" | 19 #include "third_party/WebKit/public/platform/WebCString.h" |
| 17 #include "third_party/WebKit/public/platform/WebString.h" | 20 #include "third_party/WebKit/public/platform/WebString.h" |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 } | 187 } |
| 185 | 188 |
| 186 reply_context_.params.set_result(PP_OK); | 189 reply_context_.params.set_result(PP_OK); |
| 187 host()->SendReply(reply_context_, | 190 host()->SendReply(reply_context_, |
| 188 PpapiPluginMsg_FileChooser_ShowReply(chosen_files)); | 191 PpapiPluginMsg_FileChooser_ShowReply(chosen_files)); |
| 189 reply_context_ = ppapi::host::ReplyMessageContext(); | 192 reply_context_ = ppapi::host::ReplyMessageContext(); |
| 190 handler_ = NULL; // Handler deletes itself. | 193 handler_ = NULL; // Handler deletes itself. |
| 191 } | 194 } |
| 192 | 195 |
| 193 } // namespace content | 196 } // namespace content |
| OLD | NEW |