blob: e242cf2a4ff84bd7d6da1b80cb93e4598b444499 [file] [log] [blame]
[email protected]e3464242012-05-05 00:45:381// Copyright (c) 2012 The Chromium Authors. All rights reserved.
[email protected]d8e682012011-11-17 18:31:542// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef CONTENT_PUBLIC_BROWSER_PLUGIN_DATA_REMOVER_H_
6#define CONTENT_PUBLIC_BROWSER_PLUGIN_DATA_REMOVER_H_
[email protected]d8e682012011-11-17 18:31:547
[email protected]e3464242012-05-05 00:45:388#include <vector>
9
[email protected]abb522162013-06-28 01:54:1610#include "base/time/time.h"
[email protected]d8e682012011-11-17 18:31:5411#include "content/common/content_export.h"
12
13namespace base {
14class WaitableEvent;
15}
16
[email protected]d8e682012011-11-17 18:31:5417namespace content {
[email protected]d7bd3e52013-07-21 04:29:2018struct WebPluginInfo;
[email protected]d8e682012011-11-17 18:31:5419
[email protected]1bf0fb22012-04-12 21:44:1620class BrowserContext;
21
[email protected]d8e682012011-11-17 18:31:5422class CONTENT_EXPORT PluginDataRemover {
23 public:
[email protected]1bf0fb22012-04-12 21:44:1624 static PluginDataRemover* Create(content::BrowserContext* browser_context);
[email protected]d8e682012011-11-17 18:31:5425 virtual ~PluginDataRemover() {}
26
tommyclie86b2982015-03-16 20:16:4527 // Starts removing plugin data stored since |begin_time|.
[email protected]d8e682012011-11-17 18:31:5428 virtual base::WaitableEvent* StartRemoving(base::Time begin_time) = 0;
29
tommyclie86b2982015-03-16 20:16:4530 // Returns a list of all plugins that support removing LSO data. This method
[email protected]d8e682012011-11-17 18:31:5431 // will use cached plugin data. Call PluginService::GetPlugins() if the latest
32 // data is needed.
[email protected]d7bd3e52013-07-21 04:29:2033 static void GetSupportedPlugins(std::vector<WebPluginInfo>* plugins);
[email protected]d8e682012011-11-17 18:31:5434};
35
36} // namespace content
37
38#endif // CONTENT_PUBLIC_BROWSER_PLUGIN_DATA_REMOVER_H_