blob: e242cf2a4ff84bd7d6da1b80cb93e4598b444499 [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <vector>
#include "base/time/time.h"
#include "content/common/content_export.h"
namespace base {
class WaitableEvent;
namespace content {
struct WebPluginInfo;
class BrowserContext;
class CONTENT_EXPORT PluginDataRemover {
static PluginDataRemover* Create(content::BrowserContext* browser_context);
virtual ~PluginDataRemover() {}
// Starts removing plugin data stored since |begin_time|.
virtual base::WaitableEvent* StartRemoving(base::Time begin_time) = 0;
// Returns a list of all plugins that support removing LSO data. This method
// will use cached plugin data. Call PluginService::GetPlugins() if the latest
// data is needed.
static void GetSupportedPlugins(std::vector<WebPluginInfo>* plugins);
} // namespace content