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 #ifndef PPAPI_PROXY_PPB_URL_RESPONSE_INFO_PROXY_H_ | 5 #ifndef PPAPI_PROXY_PPB_URL_RESPONSE_INFO_PROXY_H_ |
6 #define PPAPI_PROXY_PPB_URL_RESPONSE_INFO_PROXY_H_ | 6 #define PPAPI_PROXY_PPB_URL_RESPONSE_INFO_PROXY_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "ppapi/c/pp_instance.h" | 9 #include "ppapi/c/pp_instance.h" |
10 #include "ppapi/c/pp_module.h" | 10 #include "ppapi/c/pp_module.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 // URLLoader. This function allows the URLLoader to convert a new | 31 // URLLoader. This function allows the URLLoader to convert a new |
32 // HostResource representing a response info to a properly tracked | 32 // HostResource representing a response info to a properly tracked |
33 // URLReponseInfo Resource. Returns the plugin resource ID for the | 33 // URLReponseInfo Resource. Returns the plugin resource ID for the |
34 // new resource. | 34 // new resource. |
35 static PP_Resource CreateResponseForResource( | 35 static PP_Resource CreateResponseForResource( |
36 const ppapi::HostResource& resource); | 36 const ppapi::HostResource& resource); |
37 | 37 |
38 // InterfaceProxy implementation. | 38 // InterfaceProxy implementation. |
39 virtual bool OnMessageReceived(const IPC::Message& msg); | 39 virtual bool OnMessageReceived(const IPC::Message& msg); |
40 | 40 |
41 static const InterfaceID kInterfaceID = INTERFACE_ID_PPB_URL_RESPONSE_INFO; | 41 static const ApiID kApiID = API_ID_PPB_URL_RESPONSE_INFO; |
42 | 42 |
43 private: | 43 private: |
44 // Message handlers. | 44 // Message handlers. |
45 void OnMsgGetProperty(const ppapi::HostResource& response, | 45 void OnMsgGetProperty(const ppapi::HostResource& response, |
46 int32_t property, | 46 int32_t property, |
47 SerializedVarReturnValue result); | 47 SerializedVarReturnValue result); |
48 void OnMsgGetBodyAsFileRef(const ppapi::HostResource& response, | 48 void OnMsgGetBodyAsFileRef(const ppapi::HostResource& response, |
49 PPB_FileRef_CreateInfo* result); | 49 PPB_FileRef_CreateInfo* result); |
50 | 50 |
51 DISALLOW_COPY_AND_ASSIGN(PPB_URLResponseInfo_Proxy); | 51 DISALLOW_COPY_AND_ASSIGN(PPB_URLResponseInfo_Proxy); |
52 }; | 52 }; |
53 | 53 |
54 } // namespace proxy | 54 } // namespace proxy |
55 } // namespace ppapi | 55 } // namespace ppapi |
56 | 56 |
57 #endif // PPAPI_PROXY_PPB_URL_RESPONSE_INFO_PROXY_H_ | 57 #endif // PPAPI_PROXY_PPB_URL_RESPONSE_INFO_PROXY_H_ |
OLD | NEW |