| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_PUBLIC_BROWSER_PLUGIN_DATA_REMOVER_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_PLUGIN_DATA_REMOVER_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_PLUGIN_DATA_REMOVER_H_ | 6 #define CONTENT_PUBLIC_BROWSER_PLUGIN_DATA_REMOVER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| 11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
| 12 | 12 |
| 13 namespace base { | 13 namespace base { |
| 14 class WaitableEvent; | 14 class WaitableEvent; |
| 15 } | 15 } |
| 16 | 16 |
| 17 namespace webkit { | 17 namespace content { |
| 18 struct WebPluginInfo; | 18 struct WebPluginInfo; |
| 19 } | |
| 20 | |
| 21 namespace content { | |
| 22 | 19 |
| 23 class BrowserContext; | 20 class BrowserContext; |
| 24 | 21 |
| 25 class CONTENT_EXPORT PluginDataRemover { | 22 class CONTENT_EXPORT PluginDataRemover { |
| 26 public: | 23 public: |
| 27 static PluginDataRemover* Create(content::BrowserContext* browser_context); | 24 static PluginDataRemover* Create(content::BrowserContext* browser_context); |
| 28 virtual ~PluginDataRemover() {} | 25 virtual ~PluginDataRemover() {} |
| 29 | 26 |
| 30 // Starts removing plug-in data stored since |begin_time|. | 27 // Starts removing plug-in data stored since |begin_time|. |
| 31 virtual base::WaitableEvent* StartRemoving(base::Time begin_time) = 0; | 28 virtual base::WaitableEvent* StartRemoving(base::Time begin_time) = 0; |
| 32 | 29 |
| 33 // Returns a list of all plug-ins that support removing LSO data. This method | 30 // Returns a list of all plug-ins that support removing LSO data. This method |
| 34 // will use cached plugin data. Call PluginService::GetPlugins() if the latest | 31 // will use cached plugin data. Call PluginService::GetPlugins() if the latest |
| 35 // data is needed. | 32 // data is needed. |
| 36 static void GetSupportedPlugins(std::vector<webkit::WebPluginInfo>* plugins); | 33 static void GetSupportedPlugins(std::vector<WebPluginInfo>* plugins); |
| 37 }; | 34 }; |
| 38 | 35 |
| 39 } // namespace content | 36 } // namespace content |
| 40 | 37 |
| 41 #endif // CONTENT_PUBLIC_BROWSER_PLUGIN_DATA_REMOVER_H_ | 38 #endif // CONTENT_PUBLIC_BROWSER_PLUGIN_DATA_REMOVER_H_ |
| OLD | NEW |