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

Side by Side Diff: content/public/test/mock_browsing_data_remover_delegate.h

Issue 2368923003: Support the Clear-Site-Data header on resource requests (Closed)
Patch Set: Addressed comments Created 3 years, 6 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_REMOVER_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_REMOVER_DELEGATE_H_
6 #define CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_REMOVER_DELEGATE_H_ 6 #define CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_REMOVER_DELEGATE_H_
7 7
8 #include <list> 8 #include <list>
9 #include <memory> 9 #include <memory>
10 10
11 #include "base/time/time.h" 11 #include "base/time/time.h"
12 #include "content/public/browser/browsing_data_filter_builder.h" 12 #include "content/public/browser/browsing_data_filter_builder.h"
13 #include "content/public/browser/browsing_data_remover_delegate.h" 13 #include "content/public/browser/browsing_data_remover_delegate.h"
14 14
15 namespace content {
16
15 // A BrowsingDataRemoverDelegate that only records RemoveEmbedderData() calls. 17 // A BrowsingDataRemoverDelegate that only records RemoveEmbedderData() calls.
16 class MockBrowsingDataRemoverDelegate 18 class MockBrowsingDataRemoverDelegate
17 : public content::BrowsingDataRemoverDelegate { 19 : public content::BrowsingDataRemoverDelegate {
jam 2017/06/07 01:19:16 nit: this whole file remove "content::", also in c
msramek 2017/06/07 09:53:05 Done.
18 public: 20 public:
19 MockBrowsingDataRemoverDelegate(); 21 MockBrowsingDataRemoverDelegate();
20 ~MockBrowsingDataRemoverDelegate() override; 22 ~MockBrowsingDataRemoverDelegate() override;
21 23
22 // BrowsingDataRemoverDelegate: 24 // BrowsingDataRemoverDelegate:
23 content::BrowsingDataRemoverDelegate::EmbedderOriginTypeMatcher 25 content::BrowsingDataRemoverDelegate::EmbedderOriginTypeMatcher
24 GetOriginTypeMatcher() const override; 26 GetOriginTypeMatcher() const override;
25 bool MayRemoveDownloadHistory() const override; 27 bool MayRemoveDownloadHistory() const override;
26 void RemoveEmbedderData( 28 void RemoveEmbedderData(
27 const base::Time& delete_begin, 29 const base::Time& delete_begin,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 int remove_mask_; 69 int remove_mask_;
68 int origin_type_mask_; 70 int origin_type_mask_;
69 std::unique_ptr<content::BrowsingDataFilterBuilder> filter_builder_; 71 std::unique_ptr<content::BrowsingDataFilterBuilder> filter_builder_;
70 bool should_compare_filter_; 72 bool should_compare_filter_;
71 }; 73 };
72 74
73 std::list<CallParameters> actual_calls_; 75 std::list<CallParameters> actual_calls_;
74 std::list<CallParameters> expected_calls_; 76 std::list<CallParameters> expected_calls_;
75 }; 77 };
76 78
79 } // content
80
77 #endif // CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_REMOVER_DELEGATE_H_ 81 #endif // CHROME_BROWSER_BROWSING_DATA_MOCK_BROWSING_DATA_REMOVER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698