OLD | NEW |
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 #include "chrome/browser/browsing_data/browsing_data_remover.h" | 5 #include "chrome/browser/browsing_data/browsing_data_remover.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 } | 155 } |
156 virtual content::DOMStorageContext* GetDOMStorageContext() override { | 156 virtual content::DOMStorageContext* GetDOMStorageContext() override { |
157 return NULL; | 157 return NULL; |
158 } | 158 } |
159 virtual content::IndexedDBContext* GetIndexedDBContext() override { | 159 virtual content::IndexedDBContext* GetIndexedDBContext() override { |
160 return NULL; | 160 return NULL; |
161 } | 161 } |
162 virtual content::ServiceWorkerContext* GetServiceWorkerContext() override { | 162 virtual content::ServiceWorkerContext* GetServiceWorkerContext() override { |
163 return NULL; | 163 return NULL; |
164 } | 164 } |
| 165 virtual content::GeofencingManager* GetGeofencingManager() override { |
| 166 return NULL; |
| 167 } |
165 | 168 |
166 virtual void ClearDataForOrigin(uint32 remove_mask, | 169 virtual void ClearDataForOrigin(uint32 remove_mask, |
167 uint32 quota_storage_remove_mask, | 170 uint32 quota_storage_remove_mask, |
168 const GURL& storage_origin, | 171 const GURL& storage_origin, |
169 net::URLRequestContextGetter* rq_context, | 172 net::URLRequestContextGetter* rq_context, |
170 const base::Closure& callback) override { | 173 const base::Closure& callback) override { |
171 BrowserThread::PostTask(BrowserThread::UI, | 174 BrowserThread::PostTask(BrowserThread::UI, |
172 FROM_HERE, | 175 FROM_HERE, |
173 base::Bind(&TestStoragePartition::AsyncRunCallback, | 176 base::Bind(&TestStoragePartition::AsyncRunCallback, |
174 base::Unretained(this), | 177 base::Unretained(this), |
(...skipping 1654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1829 EXPECT_EQ(1u, tester.clear_count()); | 1832 EXPECT_EQ(1u, tester.clear_count()); |
1830 EXPECT_EQ(CLEAR_CONTEXTS, tester.last_clear_mode()); | 1833 EXPECT_EQ(CLEAR_CONTEXTS, tester.last_clear_mode()); |
1831 } | 1834 } |
1832 | 1835 |
1833 TEST_F(BrowsingDataRemoverTest, DomainReliability_NoMonitor) { | 1836 TEST_F(BrowsingDataRemoverTest, DomainReliability_NoMonitor) { |
1834 BlockUntilBrowsingDataRemoved( | 1837 BlockUntilBrowsingDataRemoved( |
1835 BrowsingDataRemover::EVERYTHING, | 1838 BrowsingDataRemover::EVERYTHING, |
1836 BrowsingDataRemover::REMOVE_HISTORY | | 1839 BrowsingDataRemover::REMOVE_HISTORY | |
1837 BrowsingDataRemover::REMOVE_COOKIES, false); | 1840 BrowsingDataRemover::REMOVE_COOKIES, false); |
1838 } | 1841 } |
OLD | NEW |