| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_module.h" | 9 #include "ppapi/c/pp_module.h" |
| 10 #include "ppapi/c/pp_resource.h" | 10 #include "ppapi/c/pp_resource.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 // a response info object in the plugin. | 28 // a response info object in the plugin. |
| 29 static void TrackPluginResource(PP_Resource response_resource); | 29 static void TrackPluginResource(PP_Resource response_resource); |
| 30 | 30 |
| 31 const PPB_URLResponseInfo* ppb_url_response_info_target() const { | 31 const PPB_URLResponseInfo* ppb_url_response_info_target() const { |
| 32 return static_cast<const PPB_URLResponseInfo*>(target_interface()); | 32 return static_cast<const PPB_URLResponseInfo*>(target_interface()); |
| 33 } | 33 } |
| 34 | 34 |
| 35 // InterfaceProxy implementation. | 35 // InterfaceProxy implementation. |
| 36 virtual const void* GetSourceInterface() const; | 36 virtual const void* GetSourceInterface() const; |
| 37 virtual InterfaceID GetInterfaceId() const; | 37 virtual InterfaceID GetInterfaceId() const; |
| 38 virtual void OnMessageReceived(const IPC::Message& msg); | 38 virtual bool OnMessageReceived(const IPC::Message& msg); |
| 39 | 39 |
| 40 private: | 40 private: |
| 41 // Message handlers. | 41 // Message handlers. |
| 42 void OnMsgGetProperty(PP_Resource response, | 42 void OnMsgGetProperty(PP_Resource response, |
| 43 int32_t property, | 43 int32_t property, |
| 44 SerializedVarReturnValue result); | 44 SerializedVarReturnValue result); |
| 45 void OnMsgGetBodyAsFileRef(PP_Resource response, | 45 void OnMsgGetBodyAsFileRef(PP_Resource response, |
| 46 PP_Resource* file_ref_result); | 46 PP_Resource* file_ref_result); |
| 47 | 47 |
| 48 DISALLOW_COPY_AND_ASSIGN(PPB_URLResponseInfo_Proxy); | 48 DISALLOW_COPY_AND_ASSIGN(PPB_URLResponseInfo_Proxy); |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 } // namespace proxy | 51 } // namespace proxy |
| 52 } // namespace pp | 52 } // namespace pp |
| 53 | 53 |
| 54 #endif // PPAPI_PROXY_PPB_URL_RESPONSE_INFO_PROXY_H_ | 54 #endif // PPAPI_PROXY_PPB_URL_RESPONSE_INFO_PROXY_H_ |
| OLD | NEW |