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

Side by Side Diff: content/browser/plugin_data_remover_impl.cc

Issue 11722017: Use an explicit PID for duplicating Pepper handles rather than the Channel's. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/browser/plugin_data_remover_impl.h" 5 #include "content/browser/plugin_data_remover_impl.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 158
159 // PpapiPluginProcessHost::BrokerClient implementation. 159 // PpapiPluginProcessHost::BrokerClient implementation.
160 virtual void GetPpapiChannelInfo(base::ProcessHandle* renderer_handle, 160 virtual void GetPpapiChannelInfo(base::ProcessHandle* renderer_handle,
161 int* renderer_id) OVERRIDE { 161 int* renderer_id) OVERRIDE {
162 *renderer_handle = base::kNullProcessHandle; 162 *renderer_handle = base::kNullProcessHandle;
163 *renderer_id = 0; 163 *renderer_id = 0;
164 } 164 }
165 165
166 virtual void OnPpapiChannelOpened( 166 virtual void OnPpapiChannelOpened(
167 const IPC::ChannelHandle& channel_handle, 167 const IPC::ChannelHandle& channel_handle,
168 base::ProcessId /* peer_pid */,
168 int /* child_id */) OVERRIDE { 169 int /* child_id */) OVERRIDE {
169 if (!channel_handle.name.empty()) 170 if (!channel_handle.name.empty())
170 ConnectToChannel(channel_handle, true); 171 ConnectToChannel(channel_handle, true);
171 172
172 // Balancing the AddRef call. 173 // Balancing the AddRef call.
173 Release(); 174 Release();
174 } 175 }
175 176
176 // IPC::Listener methods. 177 // IPC::Listener methods.
177 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE { 178 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE {
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 309
309 base::WaitableEvent* PluginDataRemoverImpl::StartRemoving( 310 base::WaitableEvent* PluginDataRemoverImpl::StartRemoving(
310 base::Time begin_time) { 311 base::Time begin_time) {
311 DCHECK(!context_.get()); 312 DCHECK(!context_.get());
312 context_ = new Context(begin_time, browser_context_); 313 context_ = new Context(begin_time, browser_context_);
313 context_->Init(mime_type_); 314 context_->Init(mime_type_);
314 return context_->event(); 315 return context_->event();
315 } 316 }
316 317
317 } // namespace content 318 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/pepper_flash_settings_helper_impl.cc ('k') | content/browser/plugin_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698