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

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

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/mock_browsing_data_quota_helper.h" 5 #include "chrome/browser/mock_browsing_data_quota_helper.h"
6 6
7 using content::BrowserThread;
8
7 MockBrowsingDataQuotaHelper::MockBrowsingDataQuotaHelper(Profile* profile) 9 MockBrowsingDataQuotaHelper::MockBrowsingDataQuotaHelper(Profile* profile)
8 : BrowsingDataQuotaHelper(BrowserThread::GetMessageLoopProxyForThread( 10 : BrowsingDataQuotaHelper(BrowserThread::GetMessageLoopProxyForThread(
9 BrowserThread::IO)) {} 11 BrowserThread::IO)) {}
10 12
11 MockBrowsingDataQuotaHelper::~MockBrowsingDataQuotaHelper() {} 13 MockBrowsingDataQuotaHelper::~MockBrowsingDataQuotaHelper() {}
12 14
13 void MockBrowsingDataQuotaHelper::StartFetching( 15 void MockBrowsingDataQuotaHelper::StartFetching(
14 FetchResultCallback* callback) { 16 FetchResultCallback* callback) {
15 callback_.reset(callback); 17 callback_.reset(callback);
16 } 18 }
(...skipping 19 matching lines...) Expand all
36 AddHost("quotahost1", 1, 2); 38 AddHost("quotahost1", 1, 2);
37 AddHost("quotahost2", 10, 20); 39 AddHost("quotahost2", 10, 20);
38 } 40 }
39 41
40 void MockBrowsingDataQuotaHelper::Notify() { 42 void MockBrowsingDataQuotaHelper::Notify() {
41 CHECK(callback_.get()); 43 CHECK(callback_.get());
42 callback_->Run(response_); 44 callback_->Run(response_);
43 callback_.reset(); 45 callback_.reset();
44 response_.clear(); 46 response_.clear();
45 } 47 }
OLDNEW
« no previous file with comments | « chrome/browser/metrics/thread_watcher_unittest.cc ('k') | chrome/browser/nacl_host/nacl_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698