OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_FLASH_LSO_HELPER_H_ | 5 #ifndef CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_FLASH_LSO_HELPER_H_ |
6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_FLASH_LSO_HELPER_H_ | 6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_FLASH_LSO_HELPER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 | 13 |
14 namespace content { | 14 namespace content { |
15 class BrowserContext; | 15 class BrowserContext; |
16 } | 16 } |
17 | 17 |
18 // This class asynchronously fetches information about Flash LSOs and can delete | 18 // This class asynchronously fetches information about Flash LSOs and can delete |
19 // them. | 19 // them. |
20 class BrowsingDataFlashLSOHelper | 20 class BrowsingDataFlashLSOHelper |
21 : public base::RefCounted<BrowsingDataFlashLSOHelper> { | 21 : public base::RefCounted<BrowsingDataFlashLSOHelper> { |
22 public: | 22 public: |
23 typedef base::Callback<void(const std::vector<std::string>&)> | 23 typedef base::Callback<void(const std::vector<std::string>&)> |
24 GetSitesWithFlashDataCallback; | 24 GetSitesWithFlashDataCallback; |
25 | 25 |
26 static BrowsingDataFlashLSOHelper* Create( | 26 static BrowsingDataFlashLSOHelper* Create( |
27 content::BrowserContext* browser_context); | 27 content::BrowserContext* browser_context); |
28 | 28 |
29 virtual void StartFetching(const GetSitesWithFlashDataCallback& callback) = 0; | 29 virtual void StartFetching(const GetSitesWithFlashDataCallback& callback) = 0; |
30 virtual void DeleteFlashLSOsForSite(const std::string& site) = 0; | 30 virtual void DeleteFlashLSOsForSite(const std::string& site, |
| 31 const base::Closure& callback) = 0; |
31 | 32 |
32 protected: | 33 protected: |
33 friend class base::RefCounted<BrowsingDataFlashLSOHelper>; | 34 friend class base::RefCounted<BrowsingDataFlashLSOHelper>; |
34 virtual ~BrowsingDataFlashLSOHelper() {} | 35 virtual ~BrowsingDataFlashLSOHelper() {} |
35 }; | 36 }; |
36 | 37 |
37 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_FLASH_LSO_HELPER_H_ | 38 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_FLASH_LSO_HELPER_H_ |
OLD | NEW |