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

Side by Side Diff: webkit/quota/quota_manager.cc

Issue 7533013: Quota: Add quota::StorageType to the GetOriginsCallback definition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebasing onto today's ToT. Created 9 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 | « webkit/quota/quota_client.h ('k') | webkit/quota/quota_manager_unittest.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 #include "webkit/quota/quota_manager.h" 5 #include "webkit/quota/quota_manager.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <deque> 8 #include <deque>
9 #include <set> 9 #include <set>
10 10
(...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after
828 828
829 protected: 829 protected:
830 virtual void RunOnTargetThread() OVERRIDE { 830 virtual void RunOnTargetThread() OVERRIDE {
831 if (!database()->GetOriginsModifiedSince( 831 if (!database()->GetOriginsModifiedSince(
832 type_, &origins_, modified_since_)) { 832 type_, &origins_, modified_since_)) {
833 set_db_disabled(true); 833 set_db_disabled(true);
834 } 834 }
835 } 835 }
836 836
837 virtual void DatabaseTaskCompleted() OVERRIDE { 837 virtual void DatabaseTaskCompleted() OVERRIDE {
838 callback_->Run(origins_); 838 callback_->Run(origins_, type_);
839 } 839 }
840 840
841 virtual void Aborted() OVERRIDE { 841 virtual void Aborted() OVERRIDE {
842 callback_->Run(std::set<GURL>()); 842 callback_->Run(std::set<GURL>(), type_);
843 } 843 }
844 844
845 private: 845 private:
846 StorageType type_; 846 StorageType type_;
847 base::Time modified_since_; 847 base::Time modified_since_;
848 std::set<GURL> origins_; 848 std::set<GURL> origins_;
849 scoped_ptr<GetOriginsCallback> callback_; 849 scoped_ptr<GetOriginsCallback> callback_;
850 }; 850 };
851 851
852 class QuotaManager::DumpQuotaTableTask 852 class QuotaManager::DumpQuotaTableTask
(...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after
1565 1565
1566 QuotaManagerProxy::QuotaManagerProxy( 1566 QuotaManagerProxy::QuotaManagerProxy(
1567 QuotaManager* manager, base::MessageLoopProxy* io_thread) 1567 QuotaManager* manager, base::MessageLoopProxy* io_thread)
1568 : manager_(manager), io_thread_(io_thread) { 1568 : manager_(manager), io_thread_(io_thread) {
1569 } 1569 }
1570 1570
1571 QuotaManagerProxy::~QuotaManagerProxy() { 1571 QuotaManagerProxy::~QuotaManagerProxy() {
1572 } 1572 }
1573 1573
1574 } // namespace quota 1574 } // namespace quota
OLDNEW
« no previous file with comments | « webkit/quota/quota_client.h ('k') | webkit/quota/quota_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698