| 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/sequenced_task_runner.h" | 10 #include "base/sequenced_task_runner.h" |
| (...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 scoped_refptr<HostZoomLevelContext> host_zoom_level_context( | 514 scoped_refptr<HostZoomLevelContext> host_zoom_level_context( |
| 515 new HostZoomLevelContext( | 515 new HostZoomLevelContext( |
| 516 context->CreateZoomLevelDelegate(partition_path))); | 516 context->CreateZoomLevelDelegate(partition_path))); |
| 517 | 517 |
| 518 scoped_refptr<NavigatorConnectContextImpl> navigator_connect_context = | 518 scoped_refptr<NavigatorConnectContextImpl> navigator_connect_context = |
| 519 new NavigatorConnectContextImpl(); | 519 new NavigatorConnectContextImpl(); |
| 520 navigator_connect_context->AddFactory(make_scoped_ptr( | 520 navigator_connect_context->AddFactory(make_scoped_ptr( |
| 521 new NavigatorConnectServiceWorkerServiceFactory(service_worker_context))); | 521 new NavigatorConnectServiceWorkerServiceFactory(service_worker_context))); |
| 522 | 522 |
| 523 scoped_refptr<PlatformNotificationContextImpl> platform_notification_context = | 523 scoped_refptr<PlatformNotificationContextImpl> platform_notification_context = |
| 524 new PlatformNotificationContextImpl(path, service_worker_context); | 524 new PlatformNotificationContextImpl(path, context, |
| 525 service_worker_context); |
| 525 platform_notification_context->Initialize(); | 526 platform_notification_context->Initialize(); |
| 526 | 527 |
| 527 scoped_refptr<BackgroundSyncContextImpl> background_sync_context = | 528 scoped_refptr<BackgroundSyncContextImpl> background_sync_context = |
| 528 new BackgroundSyncContextImpl(); | 529 new BackgroundSyncContextImpl(); |
| 529 background_sync_context->Init(service_worker_context); | 530 background_sync_context->Init(service_worker_context); |
| 530 | 531 |
| 531 StoragePartitionImpl* storage_partition = new StoragePartitionImpl( | 532 StoragePartitionImpl* storage_partition = new StoragePartitionImpl( |
| 532 context, partition_path, quota_manager.get(), appcache_service.get(), | 533 context, partition_path, quota_manager.get(), appcache_service.get(), |
| 533 filesystem_context.get(), database_tracker.get(), | 534 filesystem_context.get(), database_tracker.get(), |
| 534 dom_storage_context.get(), indexed_db_context.get(), | 535 dom_storage_context.get(), indexed_db_context.get(), |
| (...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 934 net::URLRequestContextGetter* url_request_context) { | 935 net::URLRequestContextGetter* url_request_context) { |
| 935 url_request_context_ = url_request_context; | 936 url_request_context_ = url_request_context; |
| 936 } | 937 } |
| 937 | 938 |
| 938 void StoragePartitionImpl::SetMediaURLRequestContext( | 939 void StoragePartitionImpl::SetMediaURLRequestContext( |
| 939 net::URLRequestContextGetter* media_url_request_context) { | 940 net::URLRequestContextGetter* media_url_request_context) { |
| 940 media_url_request_context_ = media_url_request_context; | 941 media_url_request_context_ = media_url_request_context; |
| 941 } | 942 } |
| 942 | 943 |
| 943 } // namespace content | 944 } // namespace content |
| OLD | NEW |