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

Unified Diff: ppapi/proxy/proxy_channel.cc

Issue 10378057: Broker out PPAPI handle duplication (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/proxy/proxy_channel.h ('k') | webkit/fileapi/file_system_callback_dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/proxy_channel.cc
===================================================================
--- ppapi/proxy/proxy_channel.cc (revision 136613)
+++ ppapi/proxy/proxy_channel.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -10,9 +10,8 @@
namespace ppapi {
namespace proxy {
-ProxyChannel::ProxyChannel(base::ProcessHandle remote_process_handle)
+ProxyChannel::ProxyChannel()
: delegate_(NULL),
- remote_process_handle_(remote_process_handle),
test_sink_(NULL) {
}
@@ -51,8 +50,8 @@
IPC::PlatformFileForTransit ProxyChannel::ShareHandleWithRemote(
base::PlatformFile handle,
bool should_close_source) {
- return IPC::GetFileHandleForProcess(handle, remote_process_handle_,
- should_close_source);
+ return delegate_->ShareHandleWithRemote(handle, *channel_,
+ should_close_source);
}
bool ProxyChannel::Send(IPC::Message* msg) {
« no previous file with comments | « ppapi/proxy/proxy_channel.h ('k') | webkit/fileapi/file_system_callback_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698