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

Side by Side Diff: ppapi/proxy/ppb_url_request_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_loader_proxy.cc ('k') | ppapi/proxy/ppb_url_request_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_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_instance.h" 9 #include "ppapi/c/pp_instance.h"
10 #include "ppapi/c/pp_resource.h" 10 #include "ppapi/c/pp_resource.h"
11 #include "ppapi/proxy/host_resource.h"
12 #include "ppapi/proxy/interface_proxy.h" 11 #include "ppapi/proxy/interface_proxy.h"
12 #include "ppapi/shared_impl/host_resource.h"
13 13
14 struct PPB_URLRequestInfo; 14 struct PPB_URLRequestInfo;
15 15
16 namespace pp { 16 namespace pp {
17 namespace proxy { 17 namespace proxy {
18 18
19 class SerializedVarReceiveInput; 19 class SerializedVarReceiveInput;
20 20
21 class PPB_URLRequestInfo_Proxy : public InterfaceProxy { 21 class PPB_URLRequestInfo_Proxy : public InterfaceProxy {
22 public: 22 public:
23 PPB_URLRequestInfo_Proxy(Dispatcher* dispatcher, 23 PPB_URLRequestInfo_Proxy(Dispatcher* dispatcher,
24 const void* target_interface); 24 const void* target_interface);
25 virtual ~PPB_URLRequestInfo_Proxy(); 25 virtual ~PPB_URLRequestInfo_Proxy();
26 26
27 static const Info* GetInfo(); 27 static const Info* GetInfo();
28 28
29 static PP_Resource CreateProxyResource(PP_Instance instance); 29 static PP_Resource CreateProxyResource(PP_Instance instance);
30 30
31 // InterfaceProxy implementation. 31 // InterfaceProxy implementation.
32 virtual bool OnMessageReceived(const IPC::Message& msg); 32 virtual bool OnMessageReceived(const IPC::Message& msg);
33 33
34 private: 34 private:
35 // Message handlers. 35 // Message handlers.
36 void OnMsgCreate(PP_Instance instance, HostResource* result); 36 void OnMsgCreate(PP_Instance instance, ppapi::HostResource* result);
37 void OnMsgSetProperty(HostResource request, 37 void OnMsgSetProperty(ppapi::HostResource request,
38 int32_t property, 38 int32_t property,
39 SerializedVarReceiveInput value); 39 SerializedVarReceiveInput value);
40 void OnMsgAppendDataToBody(HostResource request, 40 void OnMsgAppendDataToBody(ppapi::HostResource request,
41 const std::string& data); 41 const std::string& data);
42 void OnMsgAppendFileToBody(HostResource request, 42 void OnMsgAppendFileToBody(ppapi::HostResource request,
43 HostResource file_ref, 43 ppapi::HostResource file_ref,
44 int64_t start_offset, 44 int64_t start_offset,
45 int64_t number_of_bytes, 45 int64_t number_of_bytes,
46 double expected_last_modified_time); 46 double expected_last_modified_time);
47 47
48 DISALLOW_COPY_AND_ASSIGN(PPB_URLRequestInfo_Proxy); 48 DISALLOW_COPY_AND_ASSIGN(PPB_URLRequestInfo_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_REQUEST_INFO_PROXY_H_ 54 #endif // PPAPI_PROXY_PPB_URL_REQUEST_INFO_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_url_loader_proxy.cc ('k') | ppapi/proxy/ppb_url_request_info_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698