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

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

Issue 9369009: Make content::ResourceContext be a real interface like the rest of the Content API (i.e. don't ha... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 8 years, 10 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
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 "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_
OLDNEW
« no previous file with comments | « content/public/browser/content_browser_client.h ('k') | content/public/browser/plugin_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698