OLD | NEW |
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 "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
9 #include "base/sequenced_task_runner_helpers.h" | 9 #include "base/sequenced_task_runner_helpers.h" |
10 #include "base/synchronization/waitable_event.h" | 10 #include "base/synchronization/waitable_event.h" |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 } | 156 } |
157 | 157 |
158 // PpapiPluginProcessHost::BrokerClient implementation. | 158 // PpapiPluginProcessHost::BrokerClient implementation. |
159 virtual void GetPpapiChannelInfo(base::ProcessHandle* renderer_handle, | 159 virtual void GetPpapiChannelInfo(base::ProcessHandle* renderer_handle, |
160 int* renderer_id) OVERRIDE { | 160 int* renderer_id) OVERRIDE { |
161 *renderer_handle = base::kNullProcessHandle; | 161 *renderer_handle = base::kNullProcessHandle; |
162 *renderer_id = 0; | 162 *renderer_id = 0; |
163 } | 163 } |
164 | 164 |
165 virtual void OnPpapiChannelOpened( | 165 virtual void OnPpapiChannelOpened( |
166 base::ProcessHandle /* plugin_process_handle */, | |
167 const IPC::ChannelHandle& channel_handle, | 166 const IPC::ChannelHandle& channel_handle, |
168 int /* child_id */) OVERRIDE { | 167 int /* child_id */) OVERRIDE { |
169 if (!channel_handle.name.empty()) | 168 if (!channel_handle.name.empty()) |
170 ConnectToChannel(channel_handle, true); | 169 ConnectToChannel(channel_handle, true); |
171 | 170 |
172 // Balancing the AddRef call. | 171 // Balancing the AddRef call. |
173 Release(); | 172 Release(); |
174 } | 173 } |
175 | 174 |
176 // IPC::Channel::Listener methods. | 175 // IPC::Channel::Listener methods. |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 | 296 |
298 base::WaitableEvent* PluginDataRemoverImpl::StartRemoving( | 297 base::WaitableEvent* PluginDataRemoverImpl::StartRemoving( |
299 base::Time begin_time) { | 298 base::Time begin_time) { |
300 DCHECK(!context_.get()); | 299 DCHECK(!context_.get()); |
301 context_ = new Context(begin_time, browser_context_); | 300 context_ = new Context(begin_time, browser_context_); |
302 context_->Init(mime_type_); | 301 context_->Init(mime_type_); |
303 return context_->event(); | 302 return context_->event(); |
304 } | 303 } |
305 | 304 |
306 } // namespace content | 305 } // namespace content |
OLD | NEW |