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

Side by Side Diff: ppapi/proxy/ppb_url_request_info_proxy.cc

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.h ('k') | ppapi/proxy/ppb_url_response_info_proxy.h » ('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 #include "ppapi/proxy/ppb_url_request_info_proxy.h" 5 #include "ppapi/proxy/ppb_url_request_info_proxy.h"
6 6
7 #include "ppapi/c/ppb_url_request_info.h" 7 #include "ppapi/c/ppb_url_request_info.h"
8 #include "ppapi/proxy/enter_proxy.h" 8 #include "ppapi/proxy/enter_proxy.h"
9 #include "ppapi/proxy/plugin_dispatcher.h" 9 #include "ppapi/proxy/plugin_dispatcher.h"
10 #include "ppapi/proxy/plugin_resource.h" 10 #include "ppapi/proxy/plugin_resource.h"
11 #include "ppapi/proxy/ppapi_messages.h" 11 #include "ppapi/proxy/ppapi_messages.h"
12 #include "ppapi/thunk/ppb_url_request_info_api.h" 12 #include "ppapi/thunk/ppb_url_request_info_api.h"
13 #include "ppapi/thunk/resource_creation_api.h" 13 #include "ppapi/thunk/resource_creation_api.h"
14 #include "ppapi/thunk/thunk.h" 14 #include "ppapi/thunk/thunk.h"
15 15
16 using ppapi::HostResource;
16 using ppapi::thunk::EnterFunctionNoLock; 17 using ppapi::thunk::EnterFunctionNoLock;
17 using ppapi::thunk::PPB_URLRequestInfo_API; 18 using ppapi::thunk::PPB_URLRequestInfo_API;
18 using ppapi::thunk::ResourceCreationAPI; 19 using ppapi::thunk::ResourceCreationAPI;
19 20
20 namespace pp { 21 namespace pp {
21 namespace proxy { 22 namespace proxy {
22 23
23 namespace { 24 namespace {
24 25
25 InterfaceProxy* CreateURLRequestInfoProxy(Dispatcher* dispatcher, 26 InterfaceProxy* CreateURLRequestInfoProxy(Dispatcher* dispatcher,
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 EnterHostFromHostResource<PPB_URLRequestInfo_API> enter(request); 198 EnterHostFromHostResource<PPB_URLRequestInfo_API> enter(request);
198 if (enter.succeeded()) { 199 if (enter.succeeded()) {
199 enter.object()->AppendFileToBody( 200 enter.object()->AppendFileToBody(
200 file_ref.host_resource(), start_offset, number_of_bytes, 201 file_ref.host_resource(), start_offset, number_of_bytes,
201 expected_last_modified_time); 202 expected_last_modified_time);
202 } 203 }
203 } 204 }
204 205
205 } // namespace proxy 206 } // namespace proxy
206 } // namespace pp 207 } // namespace pp
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_url_request_info_proxy.h ('k') | ppapi/proxy/ppb_url_response_info_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698