| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |