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 "ppapi/proxy/file_chooser_resource.h" | 5 #include "ppapi/proxy/file_chooser_resource.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/bind.h" | 9 #include "base/bind.h" |
8 #include "base/strings/string_split.h" | 10 #include "base/strings/string_split.h" |
9 #include "ipc/ipc_message.h" | 11 #include "ipc/ipc_message.h" |
10 #include "ppapi/c/pp_errors.h" | 12 #include "ppapi/c/pp_errors.h" |
11 #include "ppapi/proxy/dispatch_reply_message.h" | 13 #include "ppapi/proxy/dispatch_reply_message.h" |
12 #include "ppapi/proxy/file_ref_resource.h" | 14 #include "ppapi/proxy/file_ref_resource.h" |
13 #include "ppapi/proxy/ppapi_messages.h" | 15 #include "ppapi/proxy/ppapi_messages.h" |
14 #include "ppapi/shared_impl/var.h" | 16 #include "ppapi/shared_impl/var.h" |
15 | 17 |
16 namespace ppapi { | 18 namespace ppapi { |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 mode_ == PP_FILECHOOSERMODE_OPENMULTIPLE, | 147 mode_ == PP_FILECHOOSERMODE_OPENMULTIPLE, |
146 sugg_str ? sugg_str->value() : std::string(), | 148 sugg_str ? sugg_str->value() : std::string(), |
147 accept_types_); | 149 accept_types_); |
148 Call<PpapiPluginMsg_FileChooser_ShowReply>(RENDERER, msg, | 150 Call<PpapiPluginMsg_FileChooser_ShowReply>(RENDERER, msg, |
149 base::Bind(&FileChooserResource::OnPluginMsgShowReply, this)); | 151 base::Bind(&FileChooserResource::OnPluginMsgShowReply, this)); |
150 return PP_OK_COMPLETIONPENDING; | 152 return PP_OK_COMPLETIONPENDING; |
151 } | 153 } |
152 | 154 |
153 } // namespace proxy | 155 } // namespace proxy |
154 } // namespace ppapi | 156 } // namespace ppapi |
OLD | NEW |