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" |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 } | 85 } |
86 | 86 |
87 virtual ~Context() { | 87 virtual ~Context() { |
88 if (channel_) | 88 if (channel_) |
89 BrowserThread::DeleteSoon(BrowserThread::IO, FROM_HERE, channel_); | 89 BrowserThread::DeleteSoon(BrowserThread::IO, FROM_HERE, channel_); |
90 } | 90 } |
91 | 91 |
92 // PluginProcessHost::Client methods. | 92 // PluginProcessHost::Client methods. |
93 virtual int ID() OVERRIDE { | 93 virtual int ID() OVERRIDE { |
94 // Generate a unique identifier for this PluginProcessHostClient. | 94 // Generate a unique identifier for this PluginProcessHostClient. |
95 return ChildProcessInfo::GenerateChildProcessUniqueId(); | 95 return ChildProcessHost::GenerateChildProcessUniqueId(); |
96 } | 96 } |
97 | 97 |
98 virtual bool OffTheRecord() OVERRIDE { | 98 virtual bool OffTheRecord() OVERRIDE { |
99 return false; | 99 return false; |
100 } | 100 } |
101 | 101 |
102 virtual const content::ResourceContext& GetResourceContext() OVERRIDE { | 102 virtual const content::ResourceContext& GetResourceContext() OVERRIDE { |
103 return resource_context_; | 103 return resource_context_; |
104 } | 104 } |
105 | 105 |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 | 230 |
231 PluginDataRemoverImpl::~PluginDataRemoverImpl() { | 231 PluginDataRemoverImpl::~PluginDataRemoverImpl() { |
232 } | 232 } |
233 | 233 |
234 base::WaitableEvent* PluginDataRemoverImpl::StartRemoving( | 234 base::WaitableEvent* PluginDataRemoverImpl::StartRemoving( |
235 base::Time begin_time) { | 235 base::Time begin_time) { |
236 DCHECK(!context_.get()); | 236 DCHECK(!context_.get()); |
237 context_ = new Context(mime_type_, begin_time, resource_context_); | 237 context_ = new Context(mime_type_, begin_time, resource_context_); |
238 return context_->event(); | 238 return context_->event(); |
239 } | 239 } |
OLD | NEW |