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