| 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 #ifndef CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ |
| 6 #define CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ | 6 #define CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 const base::Closure& callback) override; | 104 const base::Closure& callback) override; |
| 105 | 105 |
| 106 void ClearData(uint32_t remove_mask, | 106 void ClearData(uint32_t remove_mask, |
| 107 uint32_t quota_storage_remove_mask, | 107 uint32_t quota_storage_remove_mask, |
| 108 const OriginMatcherFunction& origin_matcher, | 108 const OriginMatcherFunction& origin_matcher, |
| 109 const CookieMatcherFunction& cookie_matcher, | 109 const CookieMatcherFunction& cookie_matcher, |
| 110 const base::Time begin, | 110 const base::Time begin, |
| 111 const base::Time end, | 111 const base::Time end, |
| 112 const base::Closure& callback) override; | 112 const base::Closure& callback) override; |
| 113 | 113 |
| 114 void ClearHttpAndMediaCaches( |
| 115 const base::Time begin, |
| 116 const base::Time end, |
| 117 const base::Callback<bool(const GURL&)>& url_matcher, |
| 118 const base::Closure& callback) override; |
| 119 |
| 114 void Flush() override; | 120 void Flush() override; |
| 115 | 121 |
| 116 // Can return nullptr while |this| is being destroyed. | 122 // Can return nullptr while |this| is being destroyed. |
| 117 BrowserContext* browser_context() const; | 123 BrowserContext* browser_context() const; |
| 118 | 124 |
| 119 // Called by each renderer process once. | 125 // Called by each renderer process once. |
| 120 void Bind(mojo::InterfaceRequest<mojom::StoragePartitionService> request); | 126 void Bind(mojo::InterfaceRequest<mojom::StoragePartitionService> request); |
| 121 | 127 |
| 122 struct DataDeletionHelper; | 128 struct DataDeletionHelper; |
| 123 struct QuotaManagedDataDeletionHelper; | 129 struct QuotaManagedDataDeletionHelper; |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 BrowserContext* browser_context_; | 242 BrowserContext* browser_context_; |
| 237 | 243 |
| 238 base::WeakPtrFactory<StoragePartitionImpl> weak_factory_; | 244 base::WeakPtrFactory<StoragePartitionImpl> weak_factory_; |
| 239 | 245 |
| 240 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); | 246 DISALLOW_COPY_AND_ASSIGN(StoragePartitionImpl); |
| 241 }; | 247 }; |
| 242 | 248 |
| 243 } // namespace content | 249 } // namespace content |
| 244 | 250 |
| 245 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ | 251 #endif // CONTENT_BROWSER_STORAGE_PARTITION_IMPL_H_ |
| OLD | NEW |