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

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: Missed IndexedDbQuotaClient. 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
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 797 matching lines...) Expand 10 before | Expand all | Expand 10 after
808 808
809 protected: 809 protected:
810 virtual void RunOnTargetThread() OVERRIDE { 810 virtual void RunOnTargetThread() OVERRIDE {
811 if (!database()->GetOriginsModifiedSince( 811 if (!database()->GetOriginsModifiedSince(
812 type_, &origins_, modified_since_)) { 812 type_, &origins_, modified_since_)) {
813 set_db_disabled(true); 813 set_db_disabled(true);
814 } 814 }
815 } 815 }
816 816
817 virtual void DatabaseTaskCompleted() OVERRIDE { 817 virtual void DatabaseTaskCompleted() OVERRIDE {
818 callback_->Run(origins_); 818 callback_->Run(origins_, type_);
819 } 819 }
820 820
821 virtual void Aborted() OVERRIDE { 821 virtual void Aborted() OVERRIDE {
822 callback_->Run(std::set<GURL>()); 822 callback_->Run(std::set<GURL>(), type_);
823 } 823 }
824 824
825 private: 825 private:
826 StorageType type_; 826 StorageType type_;
827 base::Time modified_since_; 827 base::Time modified_since_;
828 std::set<GURL> origins_; 828 std::set<GURL> origins_;
829 scoped_ptr<GetOriginsCallback> callback_; 829 scoped_ptr<GetOriginsCallback> callback_;
830 }; 830 };
831 831
832 class QuotaManager::DumpQuotaTableTask 832 class QuotaManager::DumpQuotaTableTask
(...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after
1523 1523
1524 QuotaManagerProxy::QuotaManagerProxy( 1524 QuotaManagerProxy::QuotaManagerProxy(
1525 QuotaManager* manager, base::MessageLoopProxy* io_thread) 1525 QuotaManager* manager, base::MessageLoopProxy* io_thread)
1526 : manager_(manager), io_thread_(io_thread) { 1526 : manager_(manager), io_thread_(io_thread) {
1527 } 1527 }
1528 1528
1529 QuotaManagerProxy::~QuotaManagerProxy() { 1529 QuotaManagerProxy::~QuotaManagerProxy() {
1530 } 1530 }
1531 1531
1532 } // namespace quota 1532 } // namespace quota
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698