summaryrefslogtreecommitdiffstats
path: root/content/public/browser/plugin_data_remover.h
blob: 02d3acd53ca54d9541b755c083a2f529829cd29d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// 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.

#ifndef CONTENT_PUBLIC_BROWSER_PLUGIN_DATA_REMOVER_H_
#define CONTENT_PUBLIC_BROWSER_PLUGIN_DATA_REMOVER_H_

#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 {
 public:
  static PluginDataRemover* Create(content::BrowserContext* browser_context);
  virtual ~PluginDataRemover() {}

  // Starts removing plug-in data stored since |begin_time|.
  virtual base::WaitableEvent* StartRemoving(base::Time begin_time) = 0;

  // Returns a list of all plug-ins 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

#endif  // CONTENT_PUBLIC_BROWSER_PLUGIN_DATA_REMOVER_H_