summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browsing_data/browsing_data_flash_lso_helper.h
blob: 22ef3cc068bac550435e2a09d22b6535492d9f69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_FLASH_LSO_HELPER_H_
#define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_FLASH_LSO_HELPER_H_

#include <string>
#include <vector>

#include "base/callback_forward.h"
#include "base/memory/ref_counted.h"

namespace content {
class BrowserContext;
}

// This class asynchronously fetches information about Flash LSOs and can delete
// them.
class BrowsingDataFlashLSOHelper
    : public base::RefCounted<BrowsingDataFlashLSOHelper> {
 public:
  typedef base::Callback<void(const std::vector<std::string>&)>
      GetSitesWithFlashDataCallback;

  static BrowsingDataFlashLSOHelper* Create(
      content::BrowserContext* browser_context);

  virtual void StartFetching(const GetSitesWithFlashDataCallback& callback) = 0;
  virtual void DeleteFlashLSOsForSite(const std::string& site) = 0;

 protected:
  friend class base::RefCounted<BrowsingDataFlashLSOHelper>;
  virtual ~BrowsingDataFlashLSOHelper() {}
};

#endif  // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_FLASH_LSO_HELPER_H_