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 <vector> | |
10 | |
9 #include "base/time.h" | 11 #include "base/time.h" |
10 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
11 | 13 |
12 namespace base { | 14 namespace base { |
13 class WaitableEvent; | 15 class WaitableEvent; |
14 } | 16 } |
15 | 17 |
16 namespace webkit { | 18 namespace webkit { |
17 struct WebPluginInfo; | 19 struct WebPluginInfo; |
18 } | 20 } |
19 | 21 |
20 namespace content { | 22 namespace content { |
21 | 23 |
22 class BrowserContext; | 24 class BrowserContext; |
23 | 25 |
24 class CONTENT_EXPORT PluginDataRemover { | 26 class CONTENT_EXPORT PluginDataRemover { |
25 public: | 27 public: |
26 static PluginDataRemover* Create(content::BrowserContext* browser_context); | 28 static PluginDataRemover* Create(content::BrowserContext* browser_context); |
27 virtual ~PluginDataRemover() {} | 29 virtual ~PluginDataRemover() {} |
28 | 30 |
29 // Starts removing plug-in data stored since |begin_time|. | 31 // Starts removing plug-in data stored since |begin_time|. |
30 virtual base::WaitableEvent* StartRemoving(base::Time begin_time) = 0; | 32 virtual base::WaitableEvent* StartRemoving(base::Time begin_time) = 0; |
31 | 33 |
32 // Returns whether there is a plug-in installed that supports removing LSO | 34 // XXX |
jam
2012/05/04 16:37:32
?
Bernhard Bauer
2012/05/04 17:05:15
Forgot to add a comment.
One day, I'm going to wr
| |
33 // data. If it returns true |plugin| is also set to that plugin. This method | 35 // This method |
34 // will use cached plugin data. Call PluginService::GetPlugins() if the latest | 36 // will use cached plugin data. Call PluginService::GetPlugins() if the latest |
35 // data is needed. | 37 // data is needed. |
36 static bool IsSupported(webkit::WebPluginInfo* plugin); | 38 static void GetSupportedPlugins(std::vector<webkit::WebPluginInfo>* plugins); |
37 }; | 39 }; |
38 | 40 |
39 } // namespace content | 41 } // namespace content |
40 | 42 |
41 #endif // CONTENT_PUBLIC_BROWSER_PLUGIN_DATA_REMOVER_H_ | 43 #endif // CONTENT_PUBLIC_BROWSER_PLUGIN_DATA_REMOVER_H_ |
OLD | NEW |