Revert of Class for allocating a chunk of memory for RenderPass (patchset #31 id...
[chromium-blink-merge.git] / content / public / browser / plugin_data_remover.h
blob02d3acd53ca54d9541b755c083a2f529829cd29d
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_PUBLIC_BROWSER_PLUGIN_DATA_REMOVER_H_
6 #define CONTENT_PUBLIC_BROWSER_PLUGIN_DATA_REMOVER_H_
8 #include <vector>
10 #include "base/time/time.h"
11 #include "content/common/content_export.h"
13 namespace base {
14 class WaitableEvent;
17 namespace content {
18 struct WebPluginInfo;
20 class BrowserContext;
22 class CONTENT_EXPORT PluginDataRemover {
23 public:
24 static PluginDataRemover* Create(content::BrowserContext* browser_context);
25 virtual ~PluginDataRemover() {}
27 // Starts removing plug-in data stored since |begin_time|.
28 virtual base::WaitableEvent* StartRemoving(base::Time begin_time) = 0;
30 // Returns a list of all plug-ins that support removing LSO data. This method
31 // will use cached plugin data. Call PluginService::GetPlugins() if the latest
32 // data is needed.
33 static void GetSupportedPlugins(std::vector<WebPluginInfo>* plugins);
36 } // namespace content
38 #endif // CONTENT_PUBLIC_BROWSER_PLUGIN_DATA_REMOVER_H_