Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(429)

Side by Side Diff: ppapi/proxy/ppb_url_response_info_proxy.h

Issue 7623018: Move host resource from the proxy to the shared_impl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments addressed Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/ppb_url_request_info_proxy.cc ('k') | ppapi/proxy/ppb_url_response_info_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
11 #include "ppapi/c/pp_resource.h" 11 #include "ppapi/c/pp_resource.h"
12 #include "ppapi/proxy/host_resource.h"
13 #include "ppapi/proxy/interface_proxy.h" 12 #include "ppapi/proxy/interface_proxy.h"
13 #include "ppapi/shared_impl/host_resource.h"
14 14
15 struct PPB_URLResponseInfo; 15 struct PPB_URLResponseInfo;
16 16
17 namespace pp { 17 namespace pp {
18 namespace proxy { 18 namespace proxy {
19 19
20 struct PPBFileRef_CreateInfo; 20 struct PPBFileRef_CreateInfo;
21 class SerializedVarReturnValue; 21 class SerializedVarReturnValue;
22 22
23 class PPB_URLResponseInfo_Proxy : public InterfaceProxy { 23 class PPB_URLResponseInfo_Proxy : public InterfaceProxy {
24 public: 24 public:
25 PPB_URLResponseInfo_Proxy(Dispatcher* dispatcher, 25 PPB_URLResponseInfo_Proxy(Dispatcher* dispatcher,
26 const void* target_interface); 26 const void* target_interface);
27 virtual ~PPB_URLResponseInfo_Proxy(); 27 virtual ~PPB_URLResponseInfo_Proxy();
28 28
29 static const Info* GetInfo(); 29 static const Info* GetInfo();
30 30
31 // URLResponseInfo objects are actually created and returned by the 31 // URLResponseInfo objects are actually created and returned by the
32 // URLLoader. This function allows the URLLoader to convert a new 32 // URLLoader. This function allows the URLLoader to convert a new
33 // HostResource representing a response info to a properly tracked 33 // HostResource representing a response info to a properly tracked
34 // URLReponseInfo PluginResource. Returns the plugin resource ID for the 34 // URLReponseInfo PluginResource. Returns the plugin resource ID for the
35 // new resource. 35 // new resource.
36 static PP_Resource CreateResponseForResource(const HostResource& resource); 36 static PP_Resource CreateResponseForResource(
37 const ppapi::HostResource& resource);
37 38
38 // InterfaceProxy implementation. 39 // InterfaceProxy implementation.
39 virtual bool OnMessageReceived(const IPC::Message& msg); 40 virtual bool OnMessageReceived(const IPC::Message& msg);
40 41
41 private: 42 private:
42 // Message handlers. 43 // Message handlers.
43 void OnMsgGetProperty(const HostResource& response, 44 void OnMsgGetProperty(const ppapi::HostResource& response,
44 int32_t property, 45 int32_t property,
45 SerializedVarReturnValue result); 46 SerializedVarReturnValue result);
46 void OnMsgGetBodyAsFileRef(const HostResource& response, 47 void OnMsgGetBodyAsFileRef(const ppapi::HostResource& response,
47 PPBFileRef_CreateInfo* result); 48 PPBFileRef_CreateInfo* result);
48 49
49 DISALLOW_COPY_AND_ASSIGN(PPB_URLResponseInfo_Proxy); 50 DISALLOW_COPY_AND_ASSIGN(PPB_URLResponseInfo_Proxy);
50 }; 51 };
51 52
52 } // namespace proxy 53 } // namespace proxy
53 } // namespace pp 54 } // namespace pp
54 55
55 #endif // PPAPI_PROXY_PPB_URL_RESPONSE_INFO_PROXY_H_ 56 #endif // PPAPI_PROXY_PPB_URL_RESPONSE_INFO_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_url_request_info_proxy.cc ('k') | ppapi/proxy/ppb_url_response_info_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698