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

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

Issue 421193002: Fix ExtensionServiceTest.ClearExtensionData flakiness (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use base::DoNothing for empty callbacks Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « content/browser/storage_partition_impl.h ('k') | content/public/browser/storage_partition.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 "base/sequenced_task_runner.h" 7 #include "base/sequenced_task_runner.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "content/browser/browser_main_loop.h" 9 #include "content/browser/browser_main_loop.h"
10 #include "content/browser/fileapi/browser_file_system_helper.h" 10 #include "content/browser/fileapi/browser_file_system_helper.h"
(...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 base::Bind(&WebRTCIdentityStore::DeleteBetween, 750 base::Bind(&WebRTCIdentityStore::DeleteBetween,
751 webrtc_identity_store, 751 webrtc_identity_store,
752 begin, 752 begin,
753 end, 753 end,
754 decrement_callback)); 754 decrement_callback));
755 } 755 }
756 756
757 DecrementTaskCountOnUI(); 757 DecrementTaskCountOnUI();
758 } 758 }
759 759
760
761 void StoragePartitionImpl::ClearDataForOrigin( 760 void StoragePartitionImpl::ClearDataForOrigin(
762 uint32 remove_mask, 761 uint32 remove_mask,
763 uint32 quota_storage_remove_mask, 762 uint32 quota_storage_remove_mask,
764 const GURL& storage_origin, 763 const GURL& storage_origin,
765 net::URLRequestContextGetter* request_context_getter) { 764 net::URLRequestContextGetter* request_context_getter,
765 const base::Closure& callback) {
766 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 766 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
767 ClearDataImpl(remove_mask, quota_storage_remove_mask, storage_origin, 767 ClearDataImpl(remove_mask,
768 OriginMatcherFunction(), request_context_getter, 768 quota_storage_remove_mask,
769 base::Time(), base::Time::Max(), base::Bind(&base::DoNothing)); 769 storage_origin,
770 OriginMatcherFunction(),
771 request_context_getter,
772 base::Time(),
773 base::Time::Max(),
774 callback);
770 } 775 }
771 776
772 void StoragePartitionImpl::ClearData( 777 void StoragePartitionImpl::ClearData(
773 uint32 remove_mask, 778 uint32 remove_mask,
774 uint32 quota_storage_remove_mask, 779 uint32 quota_storage_remove_mask,
775 const GURL& storage_origin, 780 const GURL& storage_origin,
776 const OriginMatcherFunction& origin_matcher, 781 const OriginMatcherFunction& origin_matcher,
777 const base::Time begin, 782 const base::Time begin,
778 const base::Time end, 783 const base::Time end,
779 const base::Closure& callback) { 784 const base::Closure& callback) {
(...skipping 19 matching lines...) Expand all
799 net::URLRequestContextGetter* url_request_context) { 804 net::URLRequestContextGetter* url_request_context) {
800 url_request_context_ = url_request_context; 805 url_request_context_ = url_request_context;
801 } 806 }
802 807
803 void StoragePartitionImpl::SetMediaURLRequestContext( 808 void StoragePartitionImpl::SetMediaURLRequestContext(
804 net::URLRequestContextGetter* media_url_request_context) { 809 net::URLRequestContextGetter* media_url_request_context) {
805 media_url_request_context_ = media_url_request_context; 810 media_url_request_context_ = media_url_request_context;
806 } 811 }
807 812
808 } // namespace content 813 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/storage_partition_impl.h ('k') | content/public/browser/storage_partition.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698