| 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 "base/sequenced_task_runner.h" | 7 #include "base/sequenced_task_runner.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "content/browser/browser_main_loop.h" | 9 #include "content/browser/browser_main_loop.h" |
| 10 #include "content/browser/fileapi/browser_file_system_helper.h" | 10 #include "content/browser/fileapi/browser_file_system_helper.h" |
| 11 #include "content/browser/gpu/shader_disk_cache.h" | 11 #include "content/browser/gpu/shader_disk_cache.h" |
| 12 #include "content/common/dom_storage/dom_storage_types.h" | 12 #include "content/common/dom_storage/dom_storage_types.h" |
| 13 #include "content/public/browser/browser_context.h" | 13 #include "content/public/browser/browser_context.h" |
| 14 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
| 15 #include "content/public/browser/dom_storage_context.h" | 15 #include "content/public/browser/dom_storage_context.h" |
| 16 #include "content/public/browser/indexed_db_context.h" | 16 #include "content/public/browser/indexed_db_context.h" |
| 17 #include "content/public/browser/local_storage_usage_info.h" | 17 #include "content/public/browser/local_storage_usage_info.h" |
| 18 #include "content/public/browser/session_storage_usage_info.h" | 18 #include "content/public/browser/session_storage_usage_info.h" |
| 19 #include "net/base/completion_callback.h" | 19 #include "net/base/completion_callback.h" |
| 20 #include "net/base/net_errors.h" | 20 #include "net/base/net_errors.h" |
| 21 #include "net/cookies/cookie_monster.h" | 21 #include "net/cookies/cookie_monster.h" |
| 22 #include "net/url_request/url_request_context.h" | 22 #include "net/url_request/url_request_context.h" |
| 23 #include "net/url_request/url_request_context_getter.h" | 23 #include "net/url_request/url_request_context_getter.h" |
| 24 #include "webkit/browser/database/database_tracker.h" | 24 #include "storage/browser/database/database_tracker.h" |
| 25 #include "webkit/browser/quota/quota_manager.h" | 25 #include "storage/browser/quota/quota_manager.h" |
| 26 | 26 |
| 27 namespace content { | 27 namespace content { |
| 28 | 28 |
| 29 namespace { | 29 namespace { |
| 30 | 30 |
| 31 void OnClearedCookies(const base::Closure& callback, int num_deleted) { | 31 void OnClearedCookies(const base::Closure& callback, int num_deleted) { |
| 32 // The final callback needs to happen from UI thread. | 32 // The final callback needs to happen from UI thread. |
| 33 if (!BrowserThread::CurrentlyOn(BrowserThread::UI)) { | 33 if (!BrowserThread::CurrentlyOn(BrowserThread::UI)) { |
| 34 BrowserThread::PostTask( | 34 BrowserThread::PostTask( |
| 35 BrowserThread::UI, FROM_HERE, | 35 BrowserThread::UI, FROM_HERE, |
| (...skipping 784 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 820 net::URLRequestContextGetter* url_request_context) { | 820 net::URLRequestContextGetter* url_request_context) { |
| 821 url_request_context_ = url_request_context; | 821 url_request_context_ = url_request_context; |
| 822 } | 822 } |
| 823 | 823 |
| 824 void StoragePartitionImpl::SetMediaURLRequestContext( | 824 void StoragePartitionImpl::SetMediaURLRequestContext( |
| 825 net::URLRequestContextGetter* media_url_request_context) { | 825 net::URLRequestContextGetter* media_url_request_context) { |
| 826 media_url_request_context_ = media_url_request_context; | 826 media_url_request_context_ = media_url_request_context; |
| 827 } | 827 } |
| 828 | 828 |
| 829 } // namespace content | 829 } // namespace content |
| OLD | NEW |