Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(415)

Side by Side Diff: content/public/browser/plugin_data_remover.h

Issue 10351013: Return a list of plugins that support clearing site data instead of the first one. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/browser/plugin_data_remover_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // Returns a list of all plug-ins that support removing LSO data. This method
33 // data. If it returns true |plugin| is also set to that plugin. This method
34 // will use cached plugin data. Call PluginService::GetPlugins() if the latest 35 // will use cached plugin data. Call PluginService::GetPlugins() if the latest
35 // data is needed. 36 // data is needed.
36 static bool IsSupported(webkit::WebPluginInfo* plugin); 37 static void GetSupportedPlugins(std::vector<webkit::WebPluginInfo>* plugins);
37 }; 38 };
38 39
39 } // namespace content 40 } // namespace content
40 41
41 #endif // CONTENT_PUBLIC_BROWSER_PLUGIN_DATA_REMOVER_H_ 42 #endif // CONTENT_PUBLIC_BROWSER_PLUGIN_DATA_REMOVER_H_
OLDNEW
« no previous file with comments | « content/browser/plugin_data_remover_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698