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_REQUEST_INFO_PROXY_H_ | 5 #ifndef PPAPI_PROXY_PPB_URL_REQUEST_INFO_PROXY_H_ |
6 #define PPAPI_PROXY_PPB_URL_REQUEST_INFO_PROXY_H_ | 6 #define PPAPI_PROXY_PPB_URL_REQUEST_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 12 matching lines...) Expand all Loading... |
23 const void* target_interface); | 23 const void* target_interface); |
24 virtual ~PPB_URLRequestInfo_Proxy(); | 24 virtual ~PPB_URLRequestInfo_Proxy(); |
25 | 25 |
26 const PPB_URLRequestInfo* ppb_url_request_info_target() const { | 26 const PPB_URLRequestInfo* ppb_url_request_info_target() const { |
27 return static_cast<const PPB_URLRequestInfo*>(target_interface()); | 27 return static_cast<const PPB_URLRequestInfo*>(target_interface()); |
28 } | 28 } |
29 | 29 |
30 // InterfaceProxy implementation. | 30 // InterfaceProxy implementation. |
31 virtual const void* GetSourceInterface() const; | 31 virtual const void* GetSourceInterface() const; |
32 virtual InterfaceID GetInterfaceId() const; | 32 virtual InterfaceID GetInterfaceId() const; |
33 virtual void OnMessageReceived(const IPC::Message& msg); | 33 virtual bool OnMessageReceived(const IPC::Message& msg); |
34 | 34 |
35 private: | 35 private: |
36 // Message handlers. | 36 // Message handlers. |
37 void OnMsgCreate(PP_Module module, PP_Resource* result); | 37 void OnMsgCreate(PP_Module module, PP_Resource* result); |
38 void OnMsgSetProperty(PP_Resource request, | 38 void OnMsgSetProperty(PP_Resource request, |
39 int32_t property, | 39 int32_t property, |
40 SerializedVarReceiveInput value); | 40 SerializedVarReceiveInput value); |
41 void OnMsgAppendDataToBody(PP_Resource request, | 41 void OnMsgAppendDataToBody(PP_Resource request, |
42 const std::string& data); | 42 const std::string& data); |
43 void OnMsgAppendFileToBody(PP_Resource request, | 43 void OnMsgAppendFileToBody(PP_Resource request, |
44 PP_Resource file_ref, | 44 PP_Resource file_ref, |
45 int64_t start_offset, | 45 int64_t start_offset, |
46 int64_t number_of_bytes, | 46 int64_t number_of_bytes, |
47 double expected_last_modified_time); | 47 double expected_last_modified_time); |
48 | 48 |
49 DISALLOW_COPY_AND_ASSIGN(PPB_URLRequestInfo_Proxy); | 49 DISALLOW_COPY_AND_ASSIGN(PPB_URLRequestInfo_Proxy); |
50 }; | 50 }; |
51 | 51 |
52 } // namespace proxy | 52 } // namespace proxy |
53 } // namespace pp | 53 } // namespace pp |
54 | 54 |
55 #endif // PPAPI_PROXY_PPB_URL_REQUEST_INFO_PROXY_H_ | 55 #endif // PPAPI_PROXY_PPB_URL_REQUEST_INFO_PROXY_H_ |
OLD | NEW |