| 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 <stddef.h> | 7 #include <stddef.h> | 
| 8 | 8 | 
| 9 #include <set> | 9 #include <set> | 
| 10 #include <vector> | 10 #include <vector> | 
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 186     const base::Time begin, | 186     const base::Time begin, | 
| 187     const base::Time end, | 187     const base::Time end, | 
| 188     const base::Closure& callback) { | 188     const base::Closure& callback) { | 
| 189   DCHECK_CURRENTLY_ON(BrowserThread::UI); | 189   DCHECK_CURRENTLY_ON(BrowserThread::UI); | 
| 190 | 190 | 
| 191   if (!storage_origin.is_empty()) { | 191   if (!storage_origin.is_empty()) { | 
| 192     bool can_delete = origin_matcher.is_null() || | 192     bool can_delete = origin_matcher.is_null() || | 
| 193                       origin_matcher.Run(storage_origin, | 193                       origin_matcher.Run(storage_origin, | 
| 194                                          special_storage_policy.get()); | 194                                          special_storage_policy.get()); | 
| 195     if (can_delete) | 195     if (can_delete) | 
| 196       dom_storage_context->DeleteLocalStorage(storage_origin); | 196       dom_storage_context->DeleteLocalStorageForPhysicalOrigin(storage_origin); | 
| 197 | 197 | 
| 198     callback.Run(); | 198     callback.Run(); | 
| 199     return; | 199     return; | 
| 200   } | 200   } | 
| 201 | 201 | 
| 202   dom_storage_context->GetLocalStorageUsage( | 202   dom_storage_context->GetLocalStorageUsage( | 
| 203       base::Bind(&OnLocalStorageUsageInfo, | 203       base::Bind(&OnLocalStorageUsageInfo, | 
| 204                  dom_storage_context, special_storage_policy, origin_matcher, | 204                  dom_storage_context, special_storage_policy, origin_matcher, | 
| 205                  begin, end, callback)); | 205                  begin, end, callback)); | 
| 206 } | 206 } | 
| (...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 914     net::URLRequestContextGetter* url_request_context) { | 914     net::URLRequestContextGetter* url_request_context) { | 
| 915   url_request_context_ = url_request_context; | 915   url_request_context_ = url_request_context; | 
| 916 } | 916 } | 
| 917 | 917 | 
| 918 void StoragePartitionImpl::SetMediaURLRequestContext( | 918 void StoragePartitionImpl::SetMediaURLRequestContext( | 
| 919     net::URLRequestContextGetter* media_url_request_context) { | 919     net::URLRequestContextGetter* media_url_request_context) { | 
| 920   media_url_request_context_ = media_url_request_context; | 920   media_url_request_context_ = media_url_request_context; | 
| 921 } | 921 } | 
| 922 | 922 | 
| 923 }  // namespace content | 923 }  // namespace content | 
| OLD | NEW | 
|---|