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

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

Issue 1837883003: Some fleshing out the mojo based localstorage implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months 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/common/leveldb_wrapper.mojom » ('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 569 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 StoragePartitionImpl::GetPlatformNotificationContext() { 580 StoragePartitionImpl::GetPlatformNotificationContext() {
581 return platform_notification_context_.get(); 581 return platform_notification_context_.get();
582 } 582 }
583 583
584 BackgroundSyncContextImpl* StoragePartitionImpl::GetBackgroundSyncContext() { 584 BackgroundSyncContextImpl* StoragePartitionImpl::GetBackgroundSyncContext() {
585 return background_sync_context_.get(); 585 return background_sync_context_.get();
586 } 586 }
587 587
588 void StoragePartitionImpl::OpenLocalStorage( 588 void StoragePartitionImpl::OpenLocalStorage(
589 const url::Origin& origin, 589 const url::Origin& origin,
590 mojom::LevelDBObserverPtr observer,
590 mojo::InterfaceRequest<mojom::LevelDBWrapper> request) { 591 mojo::InterfaceRequest<mojom::LevelDBWrapper> request) {
591 dom_storage_context_->OpenLocalStorage(origin, std::move(request)); 592 dom_storage_context_->OpenLocalStorage(
593 origin, std::move(observer), std::move(request));
592 } 594 }
593 595
594 void StoragePartitionImpl::ClearDataImpl( 596 void StoragePartitionImpl::ClearDataImpl(
595 uint32_t remove_mask, 597 uint32_t remove_mask,
596 uint32_t quota_storage_remove_mask, 598 uint32_t quota_storage_remove_mask,
597 const GURL& storage_origin, 599 const GURL& storage_origin,
598 const OriginMatcherFunction& origin_matcher, 600 const OriginMatcherFunction& origin_matcher,
599 net::URLRequestContextGetter* rq_context, 601 net::URLRequestContextGetter* rq_context,
600 const base::Time begin, 602 const base::Time begin,
601 const base::Time end, 603 const base::Time end,
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
899 net::URLRequestContextGetter* url_request_context) { 901 net::URLRequestContextGetter* url_request_context) {
900 url_request_context_ = url_request_context; 902 url_request_context_ = url_request_context;
901 } 903 }
902 904
903 void StoragePartitionImpl::SetMediaURLRequestContext( 905 void StoragePartitionImpl::SetMediaURLRequestContext(
904 net::URLRequestContextGetter* media_url_request_context) { 906 net::URLRequestContextGetter* media_url_request_context) {
905 media_url_request_context_ = media_url_request_context; 907 media_url_request_context_ = media_url_request_context;
906 } 908 }
907 909
908 } // namespace content 910 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/storage_partition_impl.h ('k') | content/common/leveldb_wrapper.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698