Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: content/browser/plugin_data_remover_impl.cc

Issue 8770027: Get rid of the ChildProcessInfo class. It was carrying unnecessary data, and the fact that some p... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/browser/mach_broker_mac.cc ('k') | content/browser/plugin_process_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « content/browser/mach_broker_mac.cc ('k') | content/browser/plugin_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698