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

Side by Side Diff: chrome/browser/browsing_data/mock_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: fix Created 8 years, 4 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_FLASH_LSO_HELPER_H_
6 #define CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_FLASH_LSO_HELPER_H_
7
8 #include <vector>
9
10 #include "base/callback.h"
11 #include "chrome/browser/browsing_data/browsing_data_flash_lso_helper.h"
12
13 class MockBrowsingDataFlashLSOHelper : public BrowsingDataFlashLSOHelper {
14 public:
15 explicit MockBrowsingDataFlashLSOHelper(
16 content::BrowserContext* browser_context);
17
18 // BrowsingDataFlashLSOHelper implementation:
19 virtual void StartFetching(const GetSitesWithDataCallback& callback) OVERRIDE;
20 virtual void DeleteFlashLSOsForSite(const std::string& site) OVERRIDE;
21
22 // Adds a domain sample.
23 void AddFlashLSODomain(const std::string& domain);
24
25 // Notifies the callback.
26 void Notify();
27
28 // Returns true if the domain list is empty.
29 bool AllDeleted();
30
31 private:
32 virtual ~MockBrowsingDataFlashLSOHelper();
33
34 GetSitesWithDataCallback callback_;
35
36 std::vector<std::string> domains_;
37 };
38
39 #endif // CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_FLASH_LSO_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698