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

Side by Side Diff: chrome/browser/browsing_data/mock_browsing_data_quota_helper.cc

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years, 1 month 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
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 "chrome/browser/browsing_data/mock_browsing_data_quota_helper.h" 5 #include "chrome/browser/browsing_data/mock_browsing_data_quota_helper.h"
6 6
7 using content::BrowserThread; 7 using content::BrowserThread;
8 8
9 MockBrowsingDataQuotaHelper::MockBrowsingDataQuotaHelper(Profile* profile) 9 MockBrowsingDataQuotaHelper::MockBrowsingDataQuotaHelper(Profile* profile)
10 : BrowsingDataQuotaHelper(BrowserThread::GetMessageLoopProxyForThread( 10 : BrowsingDataQuotaHelper(BrowserThread::GetMessageLoopProxyForThread(
11 BrowserThread::IO)) {} 11 BrowserThread::IO).get()) {}
12 12
13 MockBrowsingDataQuotaHelper::~MockBrowsingDataQuotaHelper() {} 13 MockBrowsingDataQuotaHelper::~MockBrowsingDataQuotaHelper() {}
14 14
15 void MockBrowsingDataQuotaHelper::StartFetching( 15 void MockBrowsingDataQuotaHelper::StartFetching(
16 const FetchResultCallback& callback) { 16 const FetchResultCallback& callback) {
17 callback_ = callback; 17 callback_ = callback;
18 } 18 }
19 19
20 void MockBrowsingDataQuotaHelper::RevokeHostQuota(const std::string& host) { 20 void MockBrowsingDataQuotaHelper::RevokeHostQuota(const std::string& host) {
21 } 21 }
(...skipping 12 matching lines...) Expand all
34 AddHost("quotahost1", 1, 2); 34 AddHost("quotahost1", 1, 2);
35 AddHost("quotahost2", 10, 20); 35 AddHost("quotahost2", 10, 20);
36 } 36 }
37 37
38 void MockBrowsingDataQuotaHelper::Notify() { 38 void MockBrowsingDataQuotaHelper::Notify() {
39 CHECK_EQ(false, callback_.is_null()); 39 CHECK_EQ(false, callback_.is_null());
40 callback_.Run(response_); 40 callback_.Run(response_);
41 callback_.Reset(); 41 callback_.Reset();
42 response_.clear(); 42 response_.clear();
43 } 43 }
OLDNEW
« no previous file with comments | « chrome/browser/browsing_data/local_data_container.cc ('k') | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698