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

Unified Diff: chrome/browser/browsing_data/browsing_data_flash_lso_helper.h

Issue 10790150: Show Flash LSOs for Pepper Flash in cookie dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/browsing_data/browsing_data_flash_lso_helper.h
diff --git a/chrome/browser/browsing_data/browsing_data_flash_lso_helper.h b/chrome/browser/browsing_data/browsing_data_flash_lso_helper.h
new file mode 100644
index 0000000000000000000000000000000000000000..22ef3cc068bac550435e2a09d22b6535492d9f69
--- /dev/null
+++ b/chrome/browser/browsing_data/browsing_data_flash_lso_helper.h
@@ -0,0 +1,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_

Powered by Google App Engine
This is Rietveld 408576698