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 "content/browser/storage_partition_impl.h" | 5 #include "content/browser/storage_partition_impl.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/location.h" | 10 #include "base/location.h" |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 193 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
194 | 194 |
195 dom_storage_context->GetSessionStorageUsage( | 195 dom_storage_context->GetSessionStorageUsage( |
196 base::Bind(&OnSessionStorageUsageInfo, dom_storage_context, | 196 base::Bind(&OnSessionStorageUsageInfo, dom_storage_context, |
197 special_storage_policy, origin_matcher, | 197 special_storage_policy, origin_matcher, |
198 callback)); | 198 callback)); |
199 } | 199 } |
200 | 200 |
201 } // namespace | 201 } // namespace |
202 | 202 |
203 // static | |
204 STATIC_CONST_MEMBER_DEFINITION const uint32 | |
205 StoragePartition::REMOVE_DATA_MASK_APPCACHE; | |
206 STATIC_CONST_MEMBER_DEFINITION const uint32 | |
207 StoragePartition::REMOVE_DATA_MASK_COOKIES; | |
208 STATIC_CONST_MEMBER_DEFINITION const uint32 | |
209 StoragePartition::REMOVE_DATA_MASK_FILE_SYSTEMS; | |
210 STATIC_CONST_MEMBER_DEFINITION const uint32 | |
211 StoragePartition::REMOVE_DATA_MASK_INDEXEDDB; | |
212 STATIC_CONST_MEMBER_DEFINITION const uint32 | |
213 StoragePartition::REMOVE_DATA_MASK_LOCAL_STORAGE; | |
214 STATIC_CONST_MEMBER_DEFINITION const uint32 | |
215 StoragePartition::REMOVE_DATA_MASK_SERVICE_WORKERS; | |
216 STATIC_CONST_MEMBER_DEFINITION const uint32 | |
217 StoragePartition::REMOVE_DATA_MASK_SHADER_CACHE; | |
218 STATIC_CONST_MEMBER_DEFINITION const uint32 | |
219 StoragePartition::REMOVE_DATA_MASK_WEBSQL; | |
220 STATIC_CONST_MEMBER_DEFINITION const uint32 | |
221 StoragePartition::REMOVE_DATA_MASK_WEBRTC_IDENTITY; | |
222 STATIC_CONST_MEMBER_DEFINITION const uint32 | |
223 StoragePartition::REMOVE_DATA_MASK_ALL; | |
224 STATIC_CONST_MEMBER_DEFINITION const uint32 | |
225 StoragePartition::QUOTA_MANAGED_STORAGE_MASK_TEMPORARY; | |
226 STATIC_CONST_MEMBER_DEFINITION const uint32 | |
227 StoragePartition::QUOTA_MANAGED_STORAGE_MASK_PERSISTENT; | |
228 STATIC_CONST_MEMBER_DEFINITION const uint32 | |
229 StoragePartition::QUOTA_MANAGED_STORAGE_MASK_SYNCABLE; | |
230 STATIC_CONST_MEMBER_DEFINITION const uint32 | |
231 StoragePartition::QUOTA_MANAGED_STORAGE_MASK_ALL; | |
232 | |
233 // Static. | 203 // Static. |
234 int StoragePartitionImpl::GenerateQuotaClientMask(uint32 remove_mask) { | 204 int StoragePartitionImpl::GenerateQuotaClientMask(uint32 remove_mask) { |
235 int quota_client_mask = 0; | 205 int quota_client_mask = 0; |
236 | 206 |
237 if (remove_mask & StoragePartition::REMOVE_DATA_MASK_FILE_SYSTEMS) | 207 if (remove_mask & StoragePartition::REMOVE_DATA_MASK_FILE_SYSTEMS) |
238 quota_client_mask |= storage::QuotaClient::kFileSystem; | 208 quota_client_mask |= storage::QuotaClient::kFileSystem; |
239 if (remove_mask & StoragePartition::REMOVE_DATA_MASK_WEBSQL) | 209 if (remove_mask & StoragePartition::REMOVE_DATA_MASK_WEBSQL) |
240 quota_client_mask |= storage::QuotaClient::kDatabase; | 210 quota_client_mask |= storage::QuotaClient::kDatabase; |
241 if (remove_mask & StoragePartition::REMOVE_DATA_MASK_APPCACHE) | 211 if (remove_mask & StoragePartition::REMOVE_DATA_MASK_APPCACHE) |
242 quota_client_mask |= storage::QuotaClient::kAppcache; | 212 quota_client_mask |= storage::QuotaClient::kAppcache; |
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
936 net::URLRequestContextGetter* url_request_context) { | 906 net::URLRequestContextGetter* url_request_context) { |
937 url_request_context_ = url_request_context; | 907 url_request_context_ = url_request_context; |
938 } | 908 } |
939 | 909 |
940 void StoragePartitionImpl::SetMediaURLRequestContext( | 910 void StoragePartitionImpl::SetMediaURLRequestContext( |
941 net::URLRequestContextGetter* media_url_request_context) { | 911 net::URLRequestContextGetter* media_url_request_context) { |
942 media_url_request_context_ = media_url_request_context; | 912 media_url_request_context_ = media_url_request_context; |
943 } | 913 } |
944 | 914 |
945 } // namespace content | 915 } // namespace content |
OLD | NEW |