OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/version.h" | 10 #include "base/version.h" |
11 #include "content/browser/plugin_process_host.h" | 11 #include "content/browser/plugin_process_host.h" |
12 #include "content/browser/plugin_service.h" | 12 #include "content/browser/plugin_service.h" |
| 13 #include "content/common/child_process_host.h" |
13 #include "content/common/plugin_messages.h" | 14 #include "content/common/plugin_messages.h" |
14 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
15 #include "webkit/plugins/npapi/plugin_group.h" | 16 #include "webkit/plugins/npapi/plugin_group.h" |
16 | 17 |
17 using content::BrowserThread; | 18 using content::BrowserThread; |
18 | 19 |
19 namespace { | 20 namespace { |
20 | 21 |
21 const char kFlashMimeType[] = "application/x-shockwave-flash"; | 22 const char kFlashMimeType[] = "application/x-shockwave-flash"; |
22 // The minimum Flash Player version that implements NPP_ClearSiteData. | 23 // The minimum Flash Player version that implements NPP_ClearSiteData. |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 | 231 |
231 PluginDataRemoverImpl::~PluginDataRemoverImpl() { | 232 PluginDataRemoverImpl::~PluginDataRemoverImpl() { |
232 } | 233 } |
233 | 234 |
234 base::WaitableEvent* PluginDataRemoverImpl::StartRemoving( | 235 base::WaitableEvent* PluginDataRemoverImpl::StartRemoving( |
235 base::Time begin_time) { | 236 base::Time begin_time) { |
236 DCHECK(!context_.get()); | 237 DCHECK(!context_.get()); |
237 context_ = new Context(mime_type_, begin_time, resource_context_); | 238 context_ = new Context(mime_type_, begin_time, resource_context_); |
238 return context_->event(); | 239 return context_->event(); |
239 } | 240 } |
OLD | NEW |