| 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/synchronization/waitable_event.h" | 9 #include "base/synchronization/waitable_event.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 } | 161 } |
| 162 | 162 |
| 163 // PpapiPluginProcessHost::BrokerClient implementation. | 163 // PpapiPluginProcessHost::BrokerClient implementation. |
| 164 virtual void GetPpapiChannelInfo(base::ProcessHandle* renderer_handle, | 164 virtual void GetPpapiChannelInfo(base::ProcessHandle* renderer_handle, |
| 165 int* renderer_id) OVERRIDE { | 165 int* renderer_id) OVERRIDE { |
| 166 *renderer_id = 0; | 166 *renderer_id = 0; |
| 167 } | 167 } |
| 168 | 168 |
| 169 virtual void OnPpapiChannelOpened( | 169 virtual void OnPpapiChannelOpened( |
| 170 base::ProcessHandle plugin_process_handle, | 170 base::ProcessHandle plugin_process_handle, |
| 171 const IPC::ChannelHandle& channel_handle) OVERRIDE { | 171 const IPC::ChannelHandle& channel_handle, |
| 172 int /* child_id */) OVERRIDE { |
| 172 if (plugin_process_handle != base::kNullProcessHandle) | 173 if (plugin_process_handle != base::kNullProcessHandle) |
| 173 ConnectToChannel(channel_handle, true); | 174 ConnectToChannel(channel_handle, true); |
| 174 | 175 |
| 175 // Balancing the AddRef call. | 176 // Balancing the AddRef call. |
| 176 Release(); | 177 Release(); |
| 177 } | 178 } |
| 178 | 179 |
| 179 // IPC::Channel::Listener methods. | 180 // IPC::Channel::Listener methods. |
| 180 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE { | 181 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE { |
| 181 IPC_BEGIN_MESSAGE_MAP(Context, message) | 182 IPC_BEGIN_MESSAGE_MAP(Context, message) |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 | 290 |
| 290 base::WaitableEvent* PluginDataRemoverImpl::StartRemoving( | 291 base::WaitableEvent* PluginDataRemoverImpl::StartRemoving( |
| 291 base::Time begin_time) { | 292 base::Time begin_time) { |
| 292 DCHECK(!context_.get()); | 293 DCHECK(!context_.get()); |
| 293 context_ = new Context(begin_time, browser_context_); | 294 context_ = new Context(begin_time, browser_context_); |
| 294 context_->Init(mime_type_); | 295 context_->Init(mime_type_); |
| 295 return context_->event(); | 296 return context_->event(); |
| 296 } | 297 } |
| 297 | 298 |
| 298 } // namespace content | 299 } // namespace content |
| OLD | NEW |