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

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

Issue 7629017: Add a unified resource tracker shared between the proxy and the impl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments 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
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"
(...skipping 13 matching lines...) Expand all
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 Resource. Returns the plugin resource ID for the
35 // new resource. 35 // new resource.
36 static PP_Resource CreateResponseForResource( 36 static PP_Resource CreateResponseForResource(
37 const ppapi::HostResource& resource); 37 const ppapi::HostResource& resource);
38 38
39 // InterfaceProxy implementation. 39 // InterfaceProxy implementation.
40 virtual bool OnMessageReceived(const IPC::Message& msg); 40 virtual bool OnMessageReceived(const IPC::Message& msg);
41 41
42 private: 42 private:
43 // Message handlers. 43 // Message handlers.
44 void OnMsgGetProperty(const ppapi::HostResource& response, 44 void OnMsgGetProperty(const ppapi::HostResource& response,
45 int32_t property, 45 int32_t property,
46 SerializedVarReturnValue result); 46 SerializedVarReturnValue result);
47 void OnMsgGetBodyAsFileRef(const ppapi::HostResource& response, 47 void OnMsgGetBodyAsFileRef(const ppapi::HostResource& response,
48 PPBFileRef_CreateInfo* result); 48 PPBFileRef_CreateInfo* result);
49 49
50 DISALLOW_COPY_AND_ASSIGN(PPB_URLResponseInfo_Proxy); 50 DISALLOW_COPY_AND_ASSIGN(PPB_URLResponseInfo_Proxy);
51 }; 51 };
52 52
53 } // namespace proxy 53 } // namespace proxy
54 } // namespace pp 54 } // namespace pp
55 55
56 #endif // PPAPI_PROXY_PPB_URL_RESPONSE_INFO_PROXY_H_ 56 #endif // PPAPI_PROXY_PPB_URL_RESPONSE_INFO_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698