| 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 <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <limits> | 9 #include <limits> |
| 10 | 10 |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 // PpapiPluginProcessHost::BrokerClient implementation. | 132 // PpapiPluginProcessHost::BrokerClient implementation. |
| 133 void GetPpapiChannelInfo(base::ProcessHandle* renderer_handle, | 133 void GetPpapiChannelInfo(base::ProcessHandle* renderer_handle, |
| 134 int* renderer_id) override { | 134 int* renderer_id) override { |
| 135 *renderer_handle = base::kNullProcessHandle; | 135 *renderer_handle = base::kNullProcessHandle; |
| 136 *renderer_id = 0; | 136 *renderer_id = 0; |
| 137 } | 137 } |
| 138 | 138 |
| 139 void OnPpapiChannelOpened(const IPC::ChannelHandle& channel_handle, | 139 void OnPpapiChannelOpened(const IPC::ChannelHandle& channel_handle, |
| 140 base::ProcessId /* peer_pid */, | 140 base::ProcessId /* peer_pid */, |
| 141 int /* child_id */) override { | 141 int /* child_id */) override { |
| 142 if (!channel_handle.name.empty()) | 142 if (channel_handle.mojo_handle.is_valid()) |
| 143 ConnectToChannel(channel_handle); | 143 ConnectToChannel(channel_handle); |
| 144 | 144 |
| 145 // Balancing the AddRef call. | 145 // Balancing the AddRef call. |
| 146 Release(); | 146 Release(); |
| 147 } | 147 } |
| 148 | 148 |
| 149 // IPC::Listener methods. | 149 // IPC::Listener methods. |
| 150 bool OnMessageReceived(const IPC::Message& message) override { | 150 bool OnMessageReceived(const IPC::Message& message) override { |
| 151 IPC_BEGIN_MESSAGE_MAP(Context, message) | 151 IPC_BEGIN_MESSAGE_MAP(Context, message) |
| 152 IPC_MESSAGE_HANDLER(PpapiHostMsg_ClearSiteDataResult, | 152 IPC_MESSAGE_HANDLER(PpapiHostMsg_ClearSiteDataResult, |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 | 266 |
| 267 base::WaitableEvent* PluginDataRemoverImpl::StartRemoving( | 267 base::WaitableEvent* PluginDataRemoverImpl::StartRemoving( |
| 268 base::Time begin_time) { | 268 base::Time begin_time) { |
| 269 DCHECK(!context_.get()); | 269 DCHECK(!context_.get()); |
| 270 context_ = new Context(begin_time, browser_context_); | 270 context_ = new Context(begin_time, browser_context_); |
| 271 context_->Init(mime_type_); | 271 context_->Init(mime_type_); |
| 272 return context_->event(); | 272 return context_->event(); |
| 273 } | 273 } |
| 274 | 274 |
| 275 } // namespace content | 275 } // namespace content |
| OLD | NEW |