| 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/public/browser/browser_context.h" | 5 #include "content/public/browser/browser_context.h" |
| 6 | 6 |
| 7 #if !defined(OS_IOS) | 7 #if !defined(OS_IOS) |
| 8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
| 9 #include "content/browser/appcache/chrome_appcache_service.h" | 9 #include "content/browser/appcache/chrome_appcache_service.h" |
| 10 #include "content/browser/dom_storage/dom_storage_context_impl.h" | 10 #include "content/browser/dom_storage/dom_storage_context_impl.h" |
| 11 #include "content/browser/download/download_manager_impl.h" | 11 #include "content/browser/download/download_manager_impl.h" |
| 12 #include "content/browser/indexed_db/indexed_db_context_impl.h" | 12 #include "content/browser/indexed_db/indexed_db_context_impl.h" |
| 13 #include "content/browser/loader/resource_dispatcher_host_impl.h" | 13 #include "content/browser/loader/resource_dispatcher_host_impl.h" |
| 14 #include "content/browser/storage_partition_impl.h" | 14 #include "content/browser/storage_partition_impl.h" |
| 15 #include "content/browser/storage_partition_impl_map.h" | 15 #include "content/browser/storage_partition_impl_map.h" |
| 16 #include "content/common/child_process_host_impl.h" | 16 #include "content/common/child_process_host_impl.h" |
| 17 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
| 18 #include "content/public/browser/content_browser_client.h" | 18 #include "content/public/browser/content_browser_client.h" |
| 19 #include "content/public/browser/site_instance.h" | 19 #include "content/public/browser/site_instance.h" |
| 20 #include "net/cookies/cookie_monster.h" | 20 #include "net/cookies/cookie_monster.h" |
| 21 #include "net/cookies/cookie_store.h" | 21 #include "net/cookies/cookie_store.h" |
| 22 #include "net/ssl/server_bound_cert_service.h" | 22 #include "net/ssl/server_bound_cert_service.h" |
| 23 #include "net/ssl/server_bound_cert_store.h" | 23 #include "net/ssl/server_bound_cert_store.h" |
| 24 #include "net/url_request/url_request_context.h" | 24 #include "net/url_request/url_request_context.h" |
| 25 #include "net/url_request/url_request_context_getter.h" | 25 #include "net/url_request/url_request_context_getter.h" |
| 26 #include "ui/base/clipboard/clipboard.h" | 26 #include "ui/base/clipboard/clipboard.h" |
| 27 #include "webkit/browser/database/database_tracker.h" | 27 #include "webkit/browser/database/database_tracker.h" |
| 28 #include "webkit/fileapi/external_mount_points.h" | 28 #include "webkit/browser/fileapi/external_mount_points.h" |
| 29 #endif // !OS_IOS | 29 #endif // !OS_IOS |
| 30 | 30 |
| 31 using base::UserDataAdapter; | 31 using base::UserDataAdapter; |
| 32 | 32 |
| 33 namespace content { | 33 namespace content { |
| 34 | 34 |
| 35 // Only ~BrowserContext() is needed on iOS. | 35 // Only ~BrowserContext() is needed on iOS. |
| 36 #if !defined(OS_IOS) | 36 #if !defined(OS_IOS) |
| 37 namespace { | 37 namespace { |
| 38 | 38 |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 #endif // !OS_IOS | 324 #endif // !OS_IOS |
| 325 | 325 |
| 326 BrowserContext::~BrowserContext() { | 326 BrowserContext::~BrowserContext() { |
| 327 #if !defined(OS_IOS) | 327 #if !defined(OS_IOS) |
| 328 if (GetUserData(kDownloadManagerKeyName)) | 328 if (GetUserData(kDownloadManagerKeyName)) |
| 329 GetDownloadManager(this)->Shutdown(); | 329 GetDownloadManager(this)->Shutdown(); |
| 330 #endif | 330 #endif |
| 331 } | 331 } |
| 332 | 332 |
| 333 } // namespace content | 333 } // namespace content |
| OLD | NEW |