OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "content/public/test/mock_storage_client.h" | 5 #include "content/public/test/mock_storage_client.h" |
6 | 6 |
| 7 #include <memory> |
| 8 |
7 #include "base/bind.h" | 9 #include "base/bind.h" |
8 #include "base/location.h" | 10 #include "base/location.h" |
9 #include "base/memory/scoped_ptr.h" | |
10 #include "base/memory/singleton.h" | 11 #include "base/memory/singleton.h" |
11 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
12 #include "base/stl_util.h" | 13 #include "base/stl_util.h" |
13 #include "base/thread_task_runner_handle.h" | 14 #include "base/thread_task_runner_handle.h" |
14 #include "net/base/url_util.h" | 15 #include "net/base/url_util.h" |
15 #include "storage/browser/quota/quota_manager_proxy.h" | 16 #include "storage/browser/quota/quota_manager_proxy.h" |
16 | 17 |
17 using storage::kQuotaErrorInvalidModification; | 18 using storage::kQuotaErrorInvalidModification; |
18 using storage::kQuotaStatusOk; | 19 using storage::kQuotaStatusOk; |
19 | 20 |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 int64_t delta = itr->second; | 182 int64_t delta = itr->second; |
182 quota_manager_proxy_-> | 183 quota_manager_proxy_-> |
183 NotifyStorageModified(id(), origin_url, type, -delta); | 184 NotifyStorageModified(id(), origin_url, type, -delta); |
184 origin_data_.erase(itr); | 185 origin_data_.erase(itr); |
185 } | 186 } |
186 | 187 |
187 callback.Run(kQuotaStatusOk); | 188 callback.Run(kQuotaStatusOk); |
188 } | 189 } |
189 | 190 |
190 } // namespace content | 191 } // namespace content |
OLD | NEW |