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_url_response_info_proxy.h" | 5 #include "ppapi/proxy/ppb_url_response_info_proxy.h" |
6 | 6 |
7 #include "ppapi/c/ppb_url_response_info.h" | 7 #include "ppapi/c/ppb_url_response_info.h" |
8 #include "ppapi/proxy/enter_proxy.h" | 8 #include "ppapi/proxy/enter_proxy.h" |
9 #include "ppapi/proxy/host_dispatcher.h" | 9 #include "ppapi/proxy/host_dispatcher.h" |
10 #include "ppapi/proxy/plugin_dispatcher.h" | 10 #include "ppapi/proxy/plugin_dispatcher.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 // PPB_URLResponseInfo_API implementation. | 33 // PPB_URLResponseInfo_API implementation. |
34 virtual PP_Var GetProperty(PP_URLResponseProperty property) OVERRIDE; | 34 virtual PP_Var GetProperty(PP_URLResponseProperty property) OVERRIDE; |
35 virtual PP_Resource GetBodyAsFileRef() OVERRIDE; | 35 virtual PP_Resource GetBodyAsFileRef() OVERRIDE; |
36 | 36 |
37 private: | 37 private: |
38 DISALLOW_COPY_AND_ASSIGN(URLResponseInfo); | 38 DISALLOW_COPY_AND_ASSIGN(URLResponseInfo); |
39 }; | 39 }; |
40 | 40 |
41 URLResponseInfo::URLResponseInfo(const HostResource& resource) | 41 URLResponseInfo::URLResponseInfo(const HostResource& resource) |
42 : Resource(resource) { | 42 : Resource(OBJECT_IS_PROXY, resource) { |
43 } | 43 } |
44 | 44 |
45 URLResponseInfo::~URLResponseInfo() { | 45 URLResponseInfo::~URLResponseInfo() { |
46 } | 46 } |
47 | 47 |
48 PPB_URLResponseInfo_API* URLResponseInfo::AsPPB_URLResponseInfo_API() { | 48 PPB_URLResponseInfo_API* URLResponseInfo::AsPPB_URLResponseInfo_API() { |
49 return this; | 49 return this; |
50 } | 50 } |
51 | 51 |
52 PP_Var URLResponseInfo::GetProperty(PP_URLResponseProperty property) { | 52 PP_Var URLResponseInfo::GetProperty(PP_URLResponseProperty property) { |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 file_ref = enter.object()->GetBodyAsFileRef(); | 119 file_ref = enter.object()->GetBodyAsFileRef(); |
120 | 120 |
121 // Use the FileRef proxy to serialize. | 121 // Use the FileRef proxy to serialize. |
122 PPB_FileRef_Proxy* file_ref_proxy = static_cast<PPB_FileRef_Proxy*>( | 122 PPB_FileRef_Proxy* file_ref_proxy = static_cast<PPB_FileRef_Proxy*>( |
123 dispatcher()->GetInterfaceProxy(API_ID_PPB_FILE_REF)); | 123 dispatcher()->GetInterfaceProxy(API_ID_PPB_FILE_REF)); |
124 file_ref_proxy->SerializeFileRef(file_ref, result); | 124 file_ref_proxy->SerializeFileRef(file_ref, result); |
125 } | 125 } |
126 | 126 |
127 } // namespace proxy | 127 } // namespace proxy |
128 } // namespace ppapi | 128 } // namespace ppapi |
OLD | NEW |