| 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_system_proxy.h" | 5 #include "ppapi/proxy/ppb_file_system_proxy.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
| 9 #include "base/task.h" | 9 #include "base/task.h" |
| 10 #include "ppapi/c/pp_errors.h" | 10 #include "ppapi/c/pp_errors.h" |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 PPB_FileSystem_Proxy::PPB_FileSystem_Proxy(Dispatcher* dispatcher) | 113 PPB_FileSystem_Proxy::PPB_FileSystem_Proxy(Dispatcher* dispatcher) |
| 114 : InterfaceProxy(dispatcher), | 114 : InterfaceProxy(dispatcher), |
| 115 callback_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) { | 115 callback_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) { |
| 116 } | 116 } |
| 117 | 117 |
| 118 PPB_FileSystem_Proxy::~PPB_FileSystem_Proxy() { | 118 PPB_FileSystem_Proxy::~PPB_FileSystem_Proxy() { |
| 119 } | 119 } |
| 120 | 120 |
| 121 const InterfaceProxy::Info* PPB_FileSystem_Proxy::GetInfo() { | 121 const InterfaceProxy::Info* PPB_FileSystem_Proxy::GetInfo() { |
| 122 static const Info info = { | 122 static const Info info = { |
| 123 thunk::GetPPB_FileSystem_Thunk(), | 123 thunk::GetPPB_FileSystem_1_0_Thunk(), |
| 124 PPB_FILESYSTEM_INTERFACE, | 124 PPB_FILESYSTEM_INTERFACE_1_0, |
| 125 API_ID_PPB_FILE_SYSTEM, | 125 API_ID_PPB_FILE_SYSTEM, |
| 126 false, | 126 false, |
| 127 &CreateFileSystemProxy, | 127 &CreateFileSystemProxy, |
| 128 }; | 128 }; |
| 129 return &info; | 129 return &info; |
| 130 } | 130 } |
| 131 | 131 |
| 132 // static | 132 // static |
| 133 PP_Resource PPB_FileSystem_Proxy::CreateProxyResource( | 133 PP_Resource PPB_FileSystem_Proxy::CreateProxyResource( |
| 134 PP_Instance instance, | 134 PP_Instance instance, |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 | 188 |
| 189 void PPB_FileSystem_Proxy::OpenCompleteInHost( | 189 void PPB_FileSystem_Proxy::OpenCompleteInHost( |
| 190 int32_t result, | 190 int32_t result, |
| 191 const HostResource& host_resource) { | 191 const HostResource& host_resource) { |
| 192 dispatcher()->Send(new PpapiMsg_PPBFileSystem_OpenComplete( | 192 dispatcher()->Send(new PpapiMsg_PPBFileSystem_OpenComplete( |
| 193 API_ID_PPB_FILE_SYSTEM, host_resource, result)); | 193 API_ID_PPB_FILE_SYSTEM, host_resource, result)); |
| 194 } | 194 } |
| 195 | 195 |
| 196 } // namespace proxy | 196 } // namespace proxy |
| 197 } // namespace ppapi | 197 } // namespace ppapi |
| OLD | NEW |