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/mock_storage_client.h" | 5 #include "webkit/quota/mock_storage_client.h" |
6 | 6 |
7 #include "base/atomic_sequence_num.h" | 7 #include "base/atomic_sequence_num.h" |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" |
9 #include "base/memory/singleton.h" | 10 #include "base/memory/singleton.h" |
10 #include "base/message_loop_proxy.h" | 11 #include "base/message_loop_proxy.h" |
11 #include "base/scoped_ptr.h" | |
12 #include "base/stl_util-inl.h" | 12 #include "base/stl_util-inl.h" |
13 #include "net/base/net_util.h" | 13 #include "net/base/net_util.h" |
14 #include "webkit/quota/quota_manager.h" | 14 #include "webkit/quota/quota_manager.h" |
15 | 15 |
16 using base::AtomicSequenceNumber; | 16 using base::AtomicSequenceNumber; |
17 | 17 |
18 namespace quota { | 18 namespace quota { |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 quota_manager_proxy_-> | 193 quota_manager_proxy_-> |
194 NotifyStorageModified(id(), origin_url, type, -delta); | 194 NotifyStorageModified(id(), origin_url, type, -delta); |
195 origin_data_.erase(itr); | 195 origin_data_.erase(itr); |
196 } | 196 } |
197 | 197 |
198 deletion_callbacks_.erase(callback_ptr); | 198 deletion_callbacks_.erase(callback_ptr); |
199 callback->Run(kQuotaStatusOk); | 199 callback->Run(kQuotaStatusOk); |
200 } | 200 } |
201 | 201 |
202 } // namespace quota | 202 } // namespace quota |
OLD | NEW |