| 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/geofencing/geofencing_manager.h" | 11 #include "content/browser/geofencing/geofencing_manager.h" |
| 12 #include "content/browser/gpu/shader_disk_cache.h" | 12 #include "content/browser/gpu/shader_disk_cache.h" |
| 13 #include "content/browser/host_zoom_map_impl.h" | 13 #include "content/browser/host_zoom_map_impl.h" |
| 14 #include "content/browser/navigator_connect/navigator_connect_context.h" | 14 #include "content/browser/navigator_connect/navigator_connect_context_impl.h" |
| 15 #include "content/browser/navigator_connect/navigator_connect_service_worker_ser
vice_factory.h" |
| 15 #include "content/common/dom_storage/dom_storage_types.h" | 16 #include "content/common/dom_storage/dom_storage_types.h" |
| 16 #include "content/public/browser/browser_context.h" | 17 #include "content/public/browser/browser_context.h" |
| 17 #include "content/public/browser/browser_thread.h" | 18 #include "content/public/browser/browser_thread.h" |
| 18 #include "content/public/browser/dom_storage_context.h" | 19 #include "content/public/browser/dom_storage_context.h" |
| 19 #include "content/public/browser/indexed_db_context.h" | 20 #include "content/public/browser/indexed_db_context.h" |
| 20 #include "content/public/browser/local_storage_usage_info.h" | 21 #include "content/public/browser/local_storage_usage_info.h" |
| 21 #include "content/public/browser/session_storage_usage_info.h" | 22 #include "content/public/browser/session_storage_usage_info.h" |
| 22 #include "net/base/completion_callback.h" | 23 #include "net/base/completion_callback.h" |
| 23 #include "net/base/net_errors.h" | 24 #include "net/base/net_errors.h" |
| 24 #include "net/cookies/cookie_monster.h" | 25 #include "net/cookies/cookie_monster.h" |
| (...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 484 | 485 |
| 485 scoped_refptr<GeofencingManager> geofencing_manager = | 486 scoped_refptr<GeofencingManager> geofencing_manager = |
| 486 new GeofencingManager(service_worker_context); | 487 new GeofencingManager(service_worker_context); |
| 487 geofencing_manager->Init(); | 488 geofencing_manager->Init(); |
| 488 | 489 |
| 489 scoped_refptr<HostZoomLevelContext> host_zoom_level_context( | 490 scoped_refptr<HostZoomLevelContext> host_zoom_level_context( |
| 490 new HostZoomLevelContext( | 491 new HostZoomLevelContext( |
| 491 context->CreateZoomLevelDelegate(partition_path))); | 492 context->CreateZoomLevelDelegate(partition_path))); |
| 492 | 493 |
| 493 scoped_refptr<NavigatorConnectContext> navigator_connect_context = | 494 scoped_refptr<NavigatorConnectContext> navigator_connect_context = |
| 494 new NavigatorConnectContext(service_worker_context); | 495 new NavigatorConnectContextImpl(); |
| 496 navigator_connect_context->AddFactory(make_scoped_ptr( |
| 497 new NavigatorConnectServiceWorkerServiceFactory(service_worker_context))); |
| 495 | 498 |
| 496 StoragePartitionImpl* storage_partition = new StoragePartitionImpl( | 499 StoragePartitionImpl* storage_partition = new StoragePartitionImpl( |
| 497 context, partition_path, quota_manager.get(), appcache_service.get(), | 500 context, partition_path, quota_manager.get(), appcache_service.get(), |
| 498 filesystem_context.get(), database_tracker.get(), | 501 filesystem_context.get(), database_tracker.get(), |
| 499 dom_storage_context.get(), indexed_db_context.get(), | 502 dom_storage_context.get(), indexed_db_context.get(), |
| 500 service_worker_context.get(), webrtc_identity_store.get(), | 503 service_worker_context.get(), webrtc_identity_store.get(), |
| 501 special_storage_policy.get(), geofencing_manager.get(), | 504 special_storage_policy.get(), geofencing_manager.get(), |
| 502 host_zoom_level_context.get(), navigator_connect_context.get()); | 505 host_zoom_level_context.get(), navigator_connect_context.get()); |
| 503 | 506 |
| 504 service_worker_context->set_storage_partition(storage_partition); | 507 service_worker_context->set_storage_partition(storage_partition); |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 877 net::URLRequestContextGetter* url_request_context) { | 880 net::URLRequestContextGetter* url_request_context) { |
| 878 url_request_context_ = url_request_context; | 881 url_request_context_ = url_request_context; |
| 879 } | 882 } |
| 880 | 883 |
| 881 void StoragePartitionImpl::SetMediaURLRequestContext( | 884 void StoragePartitionImpl::SetMediaURLRequestContext( |
| 882 net::URLRequestContextGetter* media_url_request_context) { | 885 net::URLRequestContextGetter* media_url_request_context) { |
| 883 media_url_request_context_ = media_url_request_context; | 886 media_url_request_context_ = media_url_request_context; |
| 884 } | 887 } |
| 885 | 888 |
| 886 } // namespace content | 889 } // namespace content |
| OLD | NEW |