OLD | NEW |
(Empty) | |
| 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 |
| 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_ |
| 7 #pragma once |
| 8 |
| 9 #include "base/time.h" |
| 10 #include "content/common/content_export.h" |
| 11 |
| 12 namespace base { |
| 13 class WaitableEvent; |
| 14 } |
| 15 |
| 16 namespace content { |
| 17 class ResourceContext; |
| 18 } |
| 19 |
| 20 namespace webkit { |
| 21 struct WebPluginInfo; |
| 22 } |
| 23 |
| 24 namespace content { |
| 25 |
| 26 class CONTENT_EXPORT PluginDataRemover { |
| 27 public: |
| 28 static PluginDataRemover* Create( |
| 29 const content::ResourceContext& resource_context); |
| 30 virtual ~PluginDataRemover() {} |
| 31 |
| 32 // Starts removing plug-in data stored since |begin_time|. |
| 33 virtual base::WaitableEvent* StartRemoving(base::Time begin_time) = 0; |
| 34 |
| 35 // Returns whether there is a plug-in installed that supports removing LSO |
| 36 // data. If it returns true |plugin| is also set to that plugin. This method |
| 37 // will use cached plugin data. Call PluginService::GetPlugins() if the latest |
| 38 // data is needed. |
| 39 static bool IsSupported(webkit::WebPluginInfo* plugin); |
| 40 }; |
| 41 |
| 42 } // namespace content |
| 43 |
| 44 #endif // CONTENT_PUBLIC_BROWSER_PLUGIN_DATA_REMOVER_H_ |
OLD | NEW |