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 <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <vector> | 10 #include <vector> |
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 storage::FileSystemContext* filesystem_context, | 367 storage::FileSystemContext* filesystem_context, |
368 storage::DatabaseTracker* database_tracker, | 368 storage::DatabaseTracker* database_tracker, |
369 DOMStorageContextWrapper* dom_storage_context, | 369 DOMStorageContextWrapper* dom_storage_context, |
370 IndexedDBContextImpl* indexed_db_context, | 370 IndexedDBContextImpl* indexed_db_context, |
371 CacheStorageContextImpl* cache_storage_context, | 371 CacheStorageContextImpl* cache_storage_context, |
372 ServiceWorkerContextWrapper* service_worker_context, | 372 ServiceWorkerContextWrapper* service_worker_context, |
373 storage::SpecialStoragePolicy* special_storage_policy, | 373 storage::SpecialStoragePolicy* special_storage_policy, |
374 HostZoomLevelContext* host_zoom_level_context, | 374 HostZoomLevelContext* host_zoom_level_context, |
375 PlatformNotificationContextImpl* platform_notification_context, | 375 PlatformNotificationContextImpl* platform_notification_context, |
376 BackgroundSyncContext* background_sync_context, | 376 BackgroundSyncContext* background_sync_context, |
377 scoped_refptr<webmessaging::BroadcastChannelProvider> | 377 scoped_refptr<BroadcastChannelProvider> broadcast_channel_provider) |
378 broadcast_channel_provider) | |
379 : partition_path_(partition_path), | 378 : partition_path_(partition_path), |
380 quota_manager_(quota_manager), | 379 quota_manager_(quota_manager), |
381 appcache_service_(appcache_service), | 380 appcache_service_(appcache_service), |
382 filesystem_context_(filesystem_context), | 381 filesystem_context_(filesystem_context), |
383 database_tracker_(database_tracker), | 382 database_tracker_(database_tracker), |
384 dom_storage_context_(dom_storage_context), | 383 dom_storage_context_(dom_storage_context), |
385 indexed_db_context_(indexed_db_context), | 384 indexed_db_context_(indexed_db_context), |
386 cache_storage_context_(cache_storage_context), | 385 cache_storage_context_(cache_storage_context), |
387 service_worker_context_(service_worker_context), | 386 service_worker_context_(service_worker_context), |
388 special_storage_policy_(special_storage_policy), | 387 special_storage_policy_(special_storage_policy), |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
503 | 502 |
504 scoped_refptr<PlatformNotificationContextImpl> platform_notification_context = | 503 scoped_refptr<PlatformNotificationContextImpl> platform_notification_context = |
505 new PlatformNotificationContextImpl(path, context, | 504 new PlatformNotificationContextImpl(path, context, |
506 service_worker_context); | 505 service_worker_context); |
507 platform_notification_context->Initialize(); | 506 platform_notification_context->Initialize(); |
508 | 507 |
509 scoped_refptr<BackgroundSyncContext> background_sync_context = | 508 scoped_refptr<BackgroundSyncContext> background_sync_context = |
510 new BackgroundSyncContext(); | 509 new BackgroundSyncContext(); |
511 background_sync_context->Init(service_worker_context); | 510 background_sync_context->Init(service_worker_context); |
512 | 511 |
513 scoped_refptr<webmessaging::BroadcastChannelProvider> | 512 scoped_refptr<BroadcastChannelProvider> |
514 broadcast_channel_provider = new webmessaging::BroadcastChannelProvider(); | 513 broadcast_channel_provider = new BroadcastChannelProvider(); |
515 | 514 |
516 StoragePartitionImpl* storage_partition = new StoragePartitionImpl( | 515 StoragePartitionImpl* storage_partition = new StoragePartitionImpl( |
517 context, partition_path, quota_manager.get(), appcache_service.get(), | 516 context, partition_path, quota_manager.get(), appcache_service.get(), |
518 filesystem_context.get(), database_tracker.get(), | 517 filesystem_context.get(), database_tracker.get(), |
519 dom_storage_context.get(), indexed_db_context.get(), | 518 dom_storage_context.get(), indexed_db_context.get(), |
520 cache_storage_context.get(), service_worker_context.get(), | 519 cache_storage_context.get(), service_worker_context.get(), |
521 special_storage_policy.get(), host_zoom_level_context.get(), | 520 special_storage_policy.get(), host_zoom_level_context.get(), |
522 platform_notification_context.get(), background_sync_context.get(), | 521 platform_notification_context.get(), background_sync_context.get(), |
523 std::move(broadcast_channel_provider)); | 522 std::move(broadcast_channel_provider)); |
524 | 523 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
588 | 587 |
589 PlatformNotificationContextImpl* | 588 PlatformNotificationContextImpl* |
590 StoragePartitionImpl::GetPlatformNotificationContext() { | 589 StoragePartitionImpl::GetPlatformNotificationContext() { |
591 return platform_notification_context_.get(); | 590 return platform_notification_context_.get(); |
592 } | 591 } |
593 | 592 |
594 BackgroundSyncContext* StoragePartitionImpl::GetBackgroundSyncContext() { | 593 BackgroundSyncContext* StoragePartitionImpl::GetBackgroundSyncContext() { |
595 return background_sync_context_.get(); | 594 return background_sync_context_.get(); |
596 } | 595 } |
597 | 596 |
598 webmessaging::BroadcastChannelProvider* | 597 BroadcastChannelProvider* StoragePartitionImpl::GetBroadcastChannelProvider() { |
599 StoragePartitionImpl::GetBroadcastChannelProvider() { | |
600 return broadcast_channel_provider_.get(); | 598 return broadcast_channel_provider_.get(); |
601 } | 599 } |
602 | 600 |
603 void StoragePartitionImpl::OpenLocalStorage( | 601 void StoragePartitionImpl::OpenLocalStorage( |
604 const url::Origin& origin, | 602 const url::Origin& origin, |
605 mojom::LevelDBObserverPtr observer, | 603 mojom::LevelDBObserverPtr observer, |
606 mojo::InterfaceRequest<mojom::LevelDBWrapper> request) { | 604 mojo::InterfaceRequest<mojom::LevelDBWrapper> request) { |
607 dom_storage_context_->OpenLocalStorage( | 605 dom_storage_context_->OpenLocalStorage( |
608 origin, std::move(observer), std::move(request)); | 606 origin, std::move(observer), std::move(request)); |
609 } | 607 } |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
915 net::URLRequestContextGetter* url_request_context) { | 913 net::URLRequestContextGetter* url_request_context) { |
916 url_request_context_ = url_request_context; | 914 url_request_context_ = url_request_context; |
917 } | 915 } |
918 | 916 |
919 void StoragePartitionImpl::SetMediaURLRequestContext( | 917 void StoragePartitionImpl::SetMediaURLRequestContext( |
920 net::URLRequestContextGetter* media_url_request_context) { | 918 net::URLRequestContextGetter* media_url_request_context) { |
921 media_url_request_context_ = media_url_request_context; | 919 media_url_request_context_ = media_url_request_context; |
922 } | 920 } |
923 | 921 |
924 } // namespace content | 922 } // namespace content |
OLD | NEW |