Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(389)

Side by Side Diff: content/browser/storage_partition_impl.cc

Issue 2560293002: PaymentApp: Introduce PaymentAppDatabase class. (Closed)
Patch Set: PaymentApp: Introduce PaymentAppDatabase class. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/browser/storage_partition_impl.h ('k') | content/public/browser/payment_app_context.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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();
520 payment_app_context->Init(service_worker_context);
520 521
521 scoped_refptr<BroadcastChannelProvider> 522 scoped_refptr<BroadcastChannelProvider>
522 broadcast_channel_provider = new BroadcastChannelProvider(); 523 broadcast_channel_provider = new BroadcastChannelProvider();
523 524
524 std::unique_ptr<StoragePartitionImpl> storage_partition( 525 std::unique_ptr<StoragePartitionImpl> storage_partition(
525 new StoragePartitionImpl( 526 new StoragePartitionImpl(
526 context, partition_path, quota_manager.get(), appcache_service.get(), 527 context, partition_path, quota_manager.get(), appcache_service.get(),
527 filesystem_context.get(), database_tracker.get(), 528 filesystem_context.get(), database_tracker.get(),
528 dom_storage_context.get(), indexed_db_context.get(), 529 dom_storage_context.get(), indexed_db_context.get(),
529 cache_storage_context.get(), service_worker_context.get(), 530 cache_storage_context.get(), service_worker_context.get(),
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 599
599 PlatformNotificationContextImpl* 600 PlatformNotificationContextImpl*
600 StoragePartitionImpl::GetPlatformNotificationContext() { 601 StoragePartitionImpl::GetPlatformNotificationContext() {
601 return platform_notification_context_.get(); 602 return platform_notification_context_.get();
602 } 603 }
603 604
604 BackgroundSyncContext* StoragePartitionImpl::GetBackgroundSyncContext() { 605 BackgroundSyncContext* StoragePartitionImpl::GetBackgroundSyncContext() {
605 return background_sync_context_.get(); 606 return background_sync_context_.get();
606 } 607 }
607 608
608 PaymentAppContext* StoragePartitionImpl::GetPaymentAppContext() { 609 PaymentAppContextImpl* StoragePartitionImpl::GetPaymentAppContext() {
609 return payment_app_context_.get(); 610 return payment_app_context_.get();
610 } 611 }
611 612
612 BroadcastChannelProvider* StoragePartitionImpl::GetBroadcastChannelProvider() { 613 BroadcastChannelProvider* StoragePartitionImpl::GetBroadcastChannelProvider() {
613 return broadcast_channel_provider_.get(); 614 return broadcast_channel_provider_.get();
614 } 615 }
615 616
616 void StoragePartitionImpl::OpenLocalStorage( 617 void StoragePartitionImpl::OpenLocalStorage(
617 const url::Origin& origin, 618 const url::Origin& origin,
618 mojom::LevelDBObserverPtr observer, 619 mojom::LevelDBObserverPtr observer,
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
928 net::URLRequestContextGetter* url_request_context) { 929 net::URLRequestContextGetter* url_request_context) {
929 url_request_context_ = url_request_context; 930 url_request_context_ = url_request_context;
930 } 931 }
931 932
932 void StoragePartitionImpl::SetMediaURLRequestContext( 933 void StoragePartitionImpl::SetMediaURLRequestContext(
933 net::URLRequestContextGetter* media_url_request_context) { 934 net::URLRequestContextGetter* media_url_request_context) {
934 media_url_request_context_ = media_url_request_context; 935 media_url_request_context_ = media_url_request_context;
935 } 936 }
936 937
937 } // namespace content 938 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/storage_partition_impl.h ('k') | content/public/browser/payment_app_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698