| 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" |
| 11 #include "base/sequenced_task_runner.h" | 11 #include "base/sequenced_task_runner.h" |
| 12 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
| 13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 14 #include "content/browser/browser_main_loop.h" | 14 #include "content/browser/browser_main_loop.h" |
| 15 #include "content/browser/fileapi/browser_file_system_helper.h" | 15 #include "content/browser/fileapi/browser_file_system_helper.h" |
| 16 #include "content/browser/geofencing/geofencing_manager.h" | 16 #include "content/browser/geofencing/geofencing_manager.h" |
| 17 #include "content/browser/gpu/shader_disk_cache.h" | 17 #include "content/browser/gpu/shader_disk_cache.h" |
| 18 #include "content/browser/host_zoom_map_impl.h" | 18 #include "content/browser/host_zoom_map_impl.h" |
| 19 #include "content/browser/navigator_connect/navigator_connect_context_impl.h" | 19 #include "content/browser/navigator_connect/navigator_connect_context_impl.h" |
| 20 #include "content/browser/navigator_connect/navigator_connect_service_worker_ser
vice_factory.h" |
| 20 #include "content/browser/notifications/platform_notification_context_impl.h" | 21 #include "content/browser/notifications/platform_notification_context_impl.h" |
| 21 #include "content/common/dom_storage/dom_storage_types.h" | 22 #include "content/common/dom_storage/dom_storage_types.h" |
| 22 #include "content/public/browser/browser_context.h" | 23 #include "content/public/browser/browser_context.h" |
| 23 #include "content/public/browser/browser_thread.h" | 24 #include "content/public/browser/browser_thread.h" |
| 24 #include "content/public/browser/dom_storage_context.h" | 25 #include "content/public/browser/dom_storage_context.h" |
| 25 #include "content/public/browser/indexed_db_context.h" | 26 #include "content/public/browser/indexed_db_context.h" |
| 26 #include "content/public/browser/local_storage_usage_info.h" | 27 #include "content/public/browser/local_storage_usage_info.h" |
| 27 #include "content/public/browser/session_storage_usage_info.h" | 28 #include "content/public/browser/session_storage_usage_info.h" |
| 28 #include "net/base/completion_callback.h" | 29 #include "net/base/completion_callback.h" |
| 29 #include "net/base/net_errors.h" | 30 #include "net/base/net_errors.h" |
| (...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 | 513 |
| 513 scoped_refptr<GeofencingManager> geofencing_manager = | 514 scoped_refptr<GeofencingManager> geofencing_manager = |
| 514 new GeofencingManager(service_worker_context); | 515 new GeofencingManager(service_worker_context); |
| 515 geofencing_manager->Init(); | 516 geofencing_manager->Init(); |
| 516 | 517 |
| 517 scoped_refptr<HostZoomLevelContext> host_zoom_level_context( | 518 scoped_refptr<HostZoomLevelContext> host_zoom_level_context( |
| 518 new HostZoomLevelContext( | 519 new HostZoomLevelContext( |
| 519 context->CreateZoomLevelDelegate(partition_path))); | 520 context->CreateZoomLevelDelegate(partition_path))); |
| 520 | 521 |
| 521 scoped_refptr<NavigatorConnectContextImpl> navigator_connect_context = | 522 scoped_refptr<NavigatorConnectContextImpl> navigator_connect_context = |
| 522 new NavigatorConnectContextImpl(service_worker_context); | 523 new NavigatorConnectContextImpl(); |
| 524 navigator_connect_context->AddFactory(make_scoped_ptr( |
| 525 new NavigatorConnectServiceWorkerServiceFactory(service_worker_context))); |
| 523 | 526 |
| 524 scoped_refptr<PlatformNotificationContextImpl> platform_notification_context = | 527 scoped_refptr<PlatformNotificationContextImpl> platform_notification_context = |
| 525 new PlatformNotificationContextImpl(path, context, | 528 new PlatformNotificationContextImpl(path, context, |
| 526 service_worker_context); | 529 service_worker_context); |
| 527 platform_notification_context->Initialize(); | 530 platform_notification_context->Initialize(); |
| 528 | 531 |
| 529 scoped_refptr<BackgroundSyncContextImpl> background_sync_context = | 532 scoped_refptr<BackgroundSyncContextImpl> background_sync_context = |
| 530 new BackgroundSyncContextImpl(); | 533 new BackgroundSyncContextImpl(); |
| 531 background_sync_context->Init(service_worker_context); | 534 background_sync_context->Init(service_worker_context); |
| 532 | 535 |
| (...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 936 net::URLRequestContextGetter* url_request_context) { | 939 net::URLRequestContextGetter* url_request_context) { |
| 937 url_request_context_ = url_request_context; | 940 url_request_context_ = url_request_context; |
| 938 } | 941 } |
| 939 | 942 |
| 940 void StoragePartitionImpl::SetMediaURLRequestContext( | 943 void StoragePartitionImpl::SetMediaURLRequestContext( |
| 941 net::URLRequestContextGetter* media_url_request_context) { | 944 net::URLRequestContextGetter* media_url_request_context) { |
| 942 media_url_request_context_ = media_url_request_context; | 945 media_url_request_context_ = media_url_request_context; |
| 943 } | 946 } |
| 944 | 947 |
| 945 } // namespace content | 948 } // namespace content |
| OLD | NEW |