| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 virtual content::DOMStorageContext* GetDOMStorageContext() OVERRIDE { | 158 virtual content::DOMStorageContext* GetDOMStorageContext() OVERRIDE { |
| 159 return NULL; | 159 return NULL; |
| 160 } | 160 } |
| 161 virtual content::IndexedDBContext* GetIndexedDBContext() OVERRIDE { | 161 virtual content::IndexedDBContext* GetIndexedDBContext() OVERRIDE { |
| 162 return NULL; | 162 return NULL; |
| 163 } | 163 } |
| 164 virtual content::ServiceWorkerContext* GetServiceWorkerContext() OVERRIDE { | 164 virtual content::ServiceWorkerContext* GetServiceWorkerContext() OVERRIDE { |
| 165 return NULL; | 165 return NULL; |
| 166 } | 166 } |
| 167 | 167 |
| 168 virtual content::HostZoomMap* GetHostZoomMap() OVERRIDE { |
| 169 return NULL; |
| 170 } |
| 171 |
| 172 virtual PrefService* GetZoomLevelPrefs() OVERRIDE { |
| 173 return NULL; |
| 174 } |
| 175 |
| 168 virtual void ClearDataForOrigin(uint32 remove_mask, | 176 virtual void ClearDataForOrigin(uint32 remove_mask, |
| 169 uint32 quota_storage_remove_mask, | 177 uint32 quota_storage_remove_mask, |
| 170 const GURL& storage_origin, | 178 const GURL& storage_origin, |
| 171 net::URLRequestContextGetter* rq_context, | 179 net::URLRequestContextGetter* rq_context, |
| 172 const base::Closure& callback) OVERRIDE { | 180 const base::Closure& callback) OVERRIDE { |
| 173 BrowserThread::PostTask(BrowserThread::UI, | 181 BrowserThread::PostTask(BrowserThread::UI, |
| 174 FROM_HERE, | 182 FROM_HERE, |
| 175 base::Bind(&TestStoragePartition::AsyncRunCallback, | 183 base::Bind(&TestStoragePartition::AsyncRunCallback, |
| 176 base::Unretained(this), | 184 base::Unretained(this), |
| 177 callback)); | 185 callback)); |
| 178 } | 186 } |
| 179 | |
| 180 virtual void ClearData(uint32 remove_mask, | 187 virtual void ClearData(uint32 remove_mask, |
| 181 uint32 quota_storage_remove_mask, | 188 uint32 quota_storage_remove_mask, |
| 182 const GURL& storage_origin, | 189 const GURL& storage_origin, |
| 183 const OriginMatcherFunction& origin_matcher, | 190 const OriginMatcherFunction& origin_matcher, |
| 184 const base::Time begin, | 191 const base::Time begin, |
| 185 const base::Time end, | 192 const base::Time end, |
| 186 const base::Closure& callback) OVERRIDE { | 193 const base::Closure& callback) OVERRIDE { |
| 187 // Store stuff to verify parameters' correctness later. | 194 // Store stuff to verify parameters' correctness later. |
| 188 storage_partition_removal_data_.remove_mask = remove_mask; | 195 storage_partition_removal_data_.remove_mask = remove_mask; |
| 189 storage_partition_removal_data_.quota_storage_remove_mask = | 196 storage_partition_removal_data_.quota_storage_remove_mask = |
| (...skipping 1608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1798 EXPECT_EQ(1u, tester.clear_count()); | 1805 EXPECT_EQ(1u, tester.clear_count()); |
| 1799 EXPECT_EQ(CLEAR_CONTEXTS, tester.last_clear_mode()); | 1806 EXPECT_EQ(CLEAR_CONTEXTS, tester.last_clear_mode()); |
| 1800 } | 1807 } |
| 1801 | 1808 |
| 1802 TEST_F(BrowsingDataRemoverTest, DomainReliability_NoMonitor) { | 1809 TEST_F(BrowsingDataRemoverTest, DomainReliability_NoMonitor) { |
| 1803 BlockUntilBrowsingDataRemoved( | 1810 BlockUntilBrowsingDataRemoved( |
| 1804 BrowsingDataRemover::EVERYTHING, | 1811 BrowsingDataRemover::EVERYTHING, |
| 1805 BrowsingDataRemover::REMOVE_HISTORY | | 1812 BrowsingDataRemover::REMOVE_HISTORY | |
| 1806 BrowsingDataRemover::REMOVE_COOKIES, false); | 1813 BrowsingDataRemover::REMOVE_COOKIES, false); |
| 1807 } | 1814 } |
| OLD | NEW |