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

Side by Side Diff: chrome/browser/browsing_data_quota_helper_impl.h

Issue 8070001: Use base::Callback in Quota related code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 2 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 | « no previous file | chrome/browser/browsing_data_quota_helper_impl.cc » ('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) 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 #ifndef CHROME_BROWSER_BROWSING_DATA_QUOTA_HELPER_IMPL_H_ 5 #ifndef CHROME_BROWSER_BROWSING_DATA_QUOTA_HELPER_IMPL_H_
6 #define CHROME_BROWSER_BROWSING_DATA_QUOTA_HELPER_IMPL_H_ 6 #define CHROME_BROWSER_BROWSING_DATA_QUOTA_HELPER_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 scoped_ptr<FetchResultCallback> callback_; 62 scoped_ptr<FetchResultCallback> callback_;
63 63
64 typedef std::set<std::pair<std::string, quota::StorageType> > PendingHosts; 64 typedef std::set<std::pair<std::string, quota::StorageType> > PendingHosts;
65 PendingHosts pending_hosts_; 65 PendingHosts pending_hosts_;
66 std::map<std::string, QuotaInfo> quota_info_; 66 std::map<std::string, QuotaInfo> quota_info_;
67 67
68 bool is_fetching_; 68 bool is_fetching_;
69 69
70 scoped_refptr<base::MessageLoopProxy> ui_thread_; 70 scoped_refptr<base::MessageLoopProxy> ui_thread_;
71 scoped_refptr<base::MessageLoopProxy> io_thread_; 71 scoped_refptr<base::MessageLoopProxy> io_thread_;
72 base::ScopedCallbackFactory<BrowsingDataQuotaHelperImpl> callback_factory_; 72 base::WeakPtrFactory<BrowsingDataQuotaHelperImpl> weak_factory_;
73 73
74 friend class BrowsingDataQuotaHelper; 74 friend class BrowsingDataQuotaHelper;
75 friend class BrowsingDataQuotaHelperTest; 75 friend class BrowsingDataQuotaHelperTest;
76 76
77 DISALLOW_COPY_AND_ASSIGN(BrowsingDataQuotaHelperImpl); 77 DISALLOW_COPY_AND_ASSIGN(BrowsingDataQuotaHelperImpl);
78 }; 78 };
79 79
80 #endif // CHROME_BROWSER_BROWSING_DATA_QUOTA_HELPER_IMPL_H_ 80 #endif // CHROME_BROWSER_BROWSING_DATA_QUOTA_HELPER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/browsing_data_quota_helper_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698