| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/ppb_file_chooser_proxy.h" | 5 #include "ppapi/proxy/ppb_file_chooser_proxy.h" |
| 6 | 6 |
| 7 #include <queue> | 7 #include <queue> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "ppapi/c/dev/ppb_file_chooser_dev.h" | 10 #include "ppapi/c/dev/ppb_file_chooser_dev.h" |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 : InterfaceProxy(dispatcher), | 164 : InterfaceProxy(dispatcher), |
| 165 callback_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) { | 165 callback_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) { |
| 166 } | 166 } |
| 167 | 167 |
| 168 PPB_FileChooser_Proxy::~PPB_FileChooser_Proxy() { | 168 PPB_FileChooser_Proxy::~PPB_FileChooser_Proxy() { |
| 169 } | 169 } |
| 170 | 170 |
| 171 // static | 171 // static |
| 172 const InterfaceProxy::Info* PPB_FileChooser_Proxy::GetTrustedInfo() { | 172 const InterfaceProxy::Info* PPB_FileChooser_Proxy::GetTrustedInfo() { |
| 173 static const Info info = { | 173 static const Info info = { |
| 174 thunk::GetPPB_FileChooser_Trusted_Thunk(), | 174 thunk::GetPPB_FileChooser_Trusted_0_5_Thunk(), |
| 175 PPB_FILECHOOSER_TRUSTED_INTERFACE, | 175 PPB_FILECHOOSER_TRUSTED_INTERFACE_0_5, |
| 176 API_ID_NONE, // FILE_CHOOSER is the canonical one. | 176 API_ID_NONE, // FILE_CHOOSER is the canonical one. |
| 177 false, | 177 false, |
| 178 &CreateFileChooserProxy | 178 &CreateFileChooserProxy |
| 179 }; | 179 }; |
| 180 return &info; | 180 return &info; |
| 181 } | 181 } |
| 182 | 182 |
| 183 // static | 183 // static |
| 184 PP_Resource PPB_FileChooser_Proxy::CreateProxyResource( | 184 PP_Resource PPB_FileChooser_Proxy::CreateProxyResource( |
| 185 PP_Instance instance, | 185 PP_Instance instance, |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 files.push_back(cur_create_info); | 278 files.push_back(cur_create_info); |
| 279 } | 279 } |
| 280 } | 280 } |
| 281 | 281 |
| 282 dispatcher()->Send(new PpapiMsg_PPBFileChooser_ChooseComplete( | 282 dispatcher()->Send(new PpapiMsg_PPBFileChooser_ChooseComplete( |
| 283 API_ID_PPB_FILE_CHOOSER, chooser, result, files)); | 283 API_ID_PPB_FILE_CHOOSER, chooser, result, files)); |
| 284 } | 284 } |
| 285 | 285 |
| 286 } // namespace proxy | 286 } // namespace proxy |
| 287 } // namespace ppapi | 287 } // namespace ppapi |
| OLD | NEW |