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