OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/browser/quota/quota_task.h" | 5 #include "storage/browser/quota/quota_task.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <functional> | 8 #include <functional> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/location.h" | 11 #include "base/location.h" |
12 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
13 #include "base/message_loop/message_loop_proxy.h" | 13 #include "base/message_loop/message_loop_proxy.h" |
14 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
15 | 15 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 void QuotaTaskObserver::RegisterTask(QuotaTask* task) { | 70 void QuotaTaskObserver::RegisterTask(QuotaTask* task) { |
71 running_quota_tasks_.insert(task); | 71 running_quota_tasks_.insert(task); |
72 } | 72 } |
73 | 73 |
74 void QuotaTaskObserver::UnregisterTask(QuotaTask* task) { | 74 void QuotaTaskObserver::UnregisterTask(QuotaTask* task) { |
75 DCHECK(running_quota_tasks_.find(task) != running_quota_tasks_.end()); | 75 DCHECK(running_quota_tasks_.find(task) != running_quota_tasks_.end()); |
76 running_quota_tasks_.erase(task); | 76 running_quota_tasks_.erase(task); |
77 } | 77 } |
78 | 78 |
79 } // namespace storage | 79 } // namespace storage |
OLD | NEW |