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

Side by Side Diff: chrome/browser/browsing_data/mock_browsing_data_flash_lso_helper.h

Issue 2248403002: Implement origin-based deletion of plugin data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments. Created 4 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
OLDNEW
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_MOCK_BROWSING_DATA_FLASH_LSO_HELPER_H_ 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_ 6 #define CHROME_BROWSER_BROWSING_DATA_MOCK_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.h" 11 #include "base/callback.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "chrome/browser/browsing_data/browsing_data_flash_lso_helper.h" 13 #include "chrome/browser/browsing_data/browsing_data_flash_lso_helper.h"
14 14
15 class MockBrowsingDataFlashLSOHelper : public BrowsingDataFlashLSOHelper { 15 class MockBrowsingDataFlashLSOHelper : public BrowsingDataFlashLSOHelper {
16 public: 16 public:
17 explicit MockBrowsingDataFlashLSOHelper( 17 explicit MockBrowsingDataFlashLSOHelper(
18 content::BrowserContext* browser_context); 18 content::BrowserContext* browser_context);
19 19
20 // BrowsingDataFlashLSOHelper implementation: 20 // BrowsingDataFlashLSOHelper implementation:
21 void StartFetching(const GetSitesWithFlashDataCallback& callback) override; 21 void StartFetching(const GetSitesWithFlashDataCallback& callback) override;
22 void DeleteFlashLSOsForSite(const std::string& site) override; 22 void DeleteFlashLSOsForSite(const std::string& site,
23 const base::Closure& callback) override;
23 24
24 // Adds a domain sample. 25 // Adds a domain sample.
25 void AddFlashLSODomain(const std::string& domain); 26 void AddFlashLSODomain(const std::string& domain);
26 27
27 // Notifies the callback. 28 // Notifies the callback.
28 void Notify(); 29 void Notify();
29 30
30 // Returns true if the domain list is empty. 31 // Returns true if the domain list is empty.
31 bool AllDeleted(); 32 bool AllDeleted();
32 33
33 private: 34 protected:
34 ~MockBrowsingDataFlashLSOHelper() override; 35 ~MockBrowsingDataFlashLSOHelper() override;
35 36
37 private:
36 GetSitesWithFlashDataCallback callback_; 38 GetSitesWithFlashDataCallback callback_;
37 39
38 std::vector<std::string> domains_; 40 std::vector<std::string> domains_;
39 41
40 DISALLOW_COPY_AND_ASSIGN(MockBrowsingDataFlashLSOHelper); 42 DISALLOW_COPY_AND_ASSIGN(MockBrowsingDataFlashLSOHelper);
41 }; 43 };
42 44
43 #endif // CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_FLASH_LSO_HELPER_H_ 45 #endif // CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_FLASH_LSO_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698