| 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 <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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |