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 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 storage::FileSystemContext* filesystem_context, | 368 storage::FileSystemContext* filesystem_context, |
369 storage::DatabaseTracker* database_tracker, | 369 storage::DatabaseTracker* database_tracker, |
370 DOMStorageContextWrapper* dom_storage_context, | 370 DOMStorageContextWrapper* dom_storage_context, |
371 IndexedDBContextImpl* indexed_db_context, | 371 IndexedDBContextImpl* indexed_db_context, |
372 CacheStorageContextImpl* cache_storage_context, | 372 CacheStorageContextImpl* cache_storage_context, |
373 ServiceWorkerContextWrapper* service_worker_context, | 373 ServiceWorkerContextWrapper* service_worker_context, |
374 storage::SpecialStoragePolicy* special_storage_policy, | 374 storage::SpecialStoragePolicy* special_storage_policy, |
375 HostZoomLevelContext* host_zoom_level_context, | 375 HostZoomLevelContext* host_zoom_level_context, |
376 PlatformNotificationContextImpl* platform_notification_context, | 376 PlatformNotificationContextImpl* platform_notification_context, |
377 BackgroundSyncContext* background_sync_context, | 377 BackgroundSyncContext* background_sync_context, |
378 PaymentAppContext* payment_app_context, | 378 PaymentAppContextImpl* payment_app_context, |
379 scoped_refptr<BroadcastChannelProvider> broadcast_channel_provider) | 379 scoped_refptr<BroadcastChannelProvider> broadcast_channel_provider) |
380 : partition_path_(partition_path), | 380 : partition_path_(partition_path), |
381 quota_manager_(quota_manager), | 381 quota_manager_(quota_manager), |
382 appcache_service_(appcache_service), | 382 appcache_service_(appcache_service), |
383 filesystem_context_(filesystem_context), | 383 filesystem_context_(filesystem_context), |
384 database_tracker_(database_tracker), | 384 database_tracker_(database_tracker), |
385 dom_storage_context_(dom_storage_context), | 385 dom_storage_context_(dom_storage_context), |
386 indexed_db_context_(indexed_db_context), | 386 indexed_db_context_(indexed_db_context), |
387 cache_storage_context_(cache_storage_context), | 387 cache_storage_context_(cache_storage_context), |
388 service_worker_context_(service_worker_context), | 388 service_worker_context_(service_worker_context), |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
508 | 508 |
509 scoped_refptr<PlatformNotificationContextImpl> platform_notification_context = | 509 scoped_refptr<PlatformNotificationContextImpl> platform_notification_context = |
510 new PlatformNotificationContextImpl(path, context, | 510 new PlatformNotificationContextImpl(path, context, |
511 service_worker_context); | 511 service_worker_context); |
512 platform_notification_context->Initialize(); | 512 platform_notification_context->Initialize(); |
513 | 513 |
514 scoped_refptr<BackgroundSyncContext> background_sync_context = | 514 scoped_refptr<BackgroundSyncContext> background_sync_context = |
515 new BackgroundSyncContext(); | 515 new BackgroundSyncContext(); |
516 background_sync_context->Init(service_worker_context); | 516 background_sync_context->Init(service_worker_context); |
517 | 517 |
518 scoped_refptr<PaymentAppContext> payment_app_context = | 518 scoped_refptr<PaymentAppContextImpl> payment_app_context = |
519 new PaymentAppContext(service_worker_context); | 519 new PaymentAppContextImpl(service_worker_context); |
520 | 520 |
521 scoped_refptr<BroadcastChannelProvider> | 521 scoped_refptr<BroadcastChannelProvider> |
522 broadcast_channel_provider = new BroadcastChannelProvider(); | 522 broadcast_channel_provider = new BroadcastChannelProvider(); |
523 | 523 |
524 std::unique_ptr<StoragePartitionImpl> storage_partition( | 524 std::unique_ptr<StoragePartitionImpl> storage_partition( |
525 new StoragePartitionImpl( | 525 new StoragePartitionImpl( |
526 context, partition_path, quota_manager.get(), appcache_service.get(), | 526 context, partition_path, quota_manager.get(), appcache_service.get(), |
527 filesystem_context.get(), database_tracker.get(), | 527 filesystem_context.get(), database_tracker.get(), |
528 dom_storage_context.get(), indexed_db_context.get(), | 528 dom_storage_context.get(), indexed_db_context.get(), |
529 cache_storage_context.get(), service_worker_context.get(), | 529 cache_storage_context.get(), service_worker_context.get(), |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
598 | 598 |
599 PlatformNotificationContextImpl* | 599 PlatformNotificationContextImpl* |
600 StoragePartitionImpl::GetPlatformNotificationContext() { | 600 StoragePartitionImpl::GetPlatformNotificationContext() { |
601 return platform_notification_context_.get(); | 601 return platform_notification_context_.get(); |
602 } | 602 } |
603 | 603 |
604 BackgroundSyncContext* StoragePartitionImpl::GetBackgroundSyncContext() { | 604 BackgroundSyncContext* StoragePartitionImpl::GetBackgroundSyncContext() { |
605 return background_sync_context_.get(); | 605 return background_sync_context_.get(); |
606 } | 606 } |
607 | 607 |
608 PaymentAppContext* StoragePartitionImpl::GetPaymentAppContext() { | 608 PaymentAppContextImpl* StoragePartitionImpl::GetPaymentAppContext() { |
609 return payment_app_context_.get(); | 609 return payment_app_context_.get(); |
610 } | 610 } |
611 | 611 |
612 BroadcastChannelProvider* StoragePartitionImpl::GetBroadcastChannelProvider() { | 612 BroadcastChannelProvider* StoragePartitionImpl::GetBroadcastChannelProvider() { |
613 return broadcast_channel_provider_.get(); | 613 return broadcast_channel_provider_.get(); |
614 } | 614 } |
615 | 615 |
616 void StoragePartitionImpl::OpenLocalStorage( | 616 void StoragePartitionImpl::OpenLocalStorage( |
617 const url::Origin& origin, | 617 const url::Origin& origin, |
618 mojom::LevelDBObserverPtr observer, | 618 mojom::LevelDBObserverPtr observer, |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
928 net::URLRequestContextGetter* url_request_context) { | 928 net::URLRequestContextGetter* url_request_context) { |
929 url_request_context_ = url_request_context; | 929 url_request_context_ = url_request_context; |
930 } | 930 } |
931 | 931 |
932 void StoragePartitionImpl::SetMediaURLRequestContext( | 932 void StoragePartitionImpl::SetMediaURLRequestContext( |
933 net::URLRequestContextGetter* media_url_request_context) { | 933 net::URLRequestContextGetter* media_url_request_context) { |
934 media_url_request_context_ = media_url_request_context; | 934 media_url_request_context_ = media_url_request_context; |
935 } | 935 } |
936 | 936 |
937 } // namespace content | 937 } // namespace content |
OLD | NEW |