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

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

Issue 6282007: First pass at making the proxy handle multiple renderers. This associates the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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_var_deprecated_proxy.cc ('k') | ppapi/proxy/serialized_var.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/ppp_instance_proxy.h" 5 #include "ppapi/proxy/ppp_instance_proxy.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "ppapi/c/pp_var.h" 9 #include "ppapi/c/pp_var.h"
10 #include "ppapi/c/ppp_instance.h" 10 #include "ppapi/c/ppp_instance.h"
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 175
176 void PPP_Instance_Proxy::OnMsgHandleInputEvent(PP_Instance instance, 176 void PPP_Instance_Proxy::OnMsgHandleInputEvent(PP_Instance instance,
177 const PP_InputEvent& event, 177 const PP_InputEvent& event,
178 PP_Bool* result) { 178 PP_Bool* result) {
179 *result = ppp_instance_target()->HandleInputEvent(instance, &event); 179 *result = ppp_instance_target()->HandleInputEvent(instance, &event);
180 } 180 }
181 181
182 void PPP_Instance_Proxy::OnMsgHandleDocumentLoad(PP_Instance instance, 182 void PPP_Instance_Proxy::OnMsgHandleDocumentLoad(PP_Instance instance,
183 PP_Resource url_loader, 183 PP_Resource url_loader,
184 PP_Bool* result) { 184 PP_Bool* result) {
185 PPB_URLLoader_Proxy::TrackPluginResource(url_loader); 185 PPB_URLLoader_Proxy::TrackPluginResource(instance, url_loader);
186 *result = ppp_instance_target()->HandleDocumentLoad( 186 *result = ppp_instance_target()->HandleDocumentLoad(
187 instance, url_loader); 187 instance, url_loader);
188 } 188 }
189 189
190 void PPP_Instance_Proxy::OnMsgGetInstanceObject( 190 void PPP_Instance_Proxy::OnMsgGetInstanceObject(
191 PP_Instance instance, 191 PP_Instance instance,
192 SerializedVarReturnValue result) { 192 SerializedVarReturnValue result) {
193 result.Return(dispatcher(), 193 result.Return(dispatcher(),
194 ppp_instance_target()->GetInstanceObject(instance)); 194 ppp_instance_target()->GetInstanceObject(instance));
195 } 195 }
196 196
197 } // namespace proxy 197 } // namespace proxy
198 } // namespace pp 198 } // namespace pp
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_var_deprecated_proxy.cc ('k') | ppapi/proxy/serialized_var.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698