OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/renderer/dom_storage/dom_storage_cached_area.h" | 5 #include "content/renderer/dom_storage/dom_storage_cached_area.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram_macros.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
11 #include "content/common/dom_storage/dom_storage_map.h" | 11 #include "content/common/dom_storage/dom_storage_map.h" |
12 #include "content/renderer/dom_storage/dom_storage_proxy.h" | 12 #include "content/renderer/dom_storage/dom_storage_proxy.h" |
13 | 13 |
14 namespace content { | 14 namespace content { |
15 | 15 |
16 DOMStorageCachedArea::DOMStorageCachedArea(int64_t namespace_id, | 16 DOMStorageCachedArea::DOMStorageCachedArea(int64_t namespace_id, |
17 const GURL& origin, | 17 const GURL& origin, |
18 DOMStorageProxy* proxy) | 18 DOMStorageProxy* proxy) |
19 : ignore_all_mutations_(false), | 19 : ignore_all_mutations_(false), |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 ignore_key_mutations_.erase(found); | 223 ignore_key_mutations_.erase(found); |
224 } | 224 } |
225 | 225 |
226 void DOMStorageCachedArea::OnClearComplete(bool success) { | 226 void DOMStorageCachedArea::OnClearComplete(bool success) { |
227 DCHECK(success); | 227 DCHECK(success); |
228 DCHECK(ignore_all_mutations_); | 228 DCHECK(ignore_all_mutations_); |
229 ignore_all_mutations_ = false; | 229 ignore_all_mutations_ = false; |
230 } | 230 } |
231 | 231 |
232 } // namespace content | 232 } // namespace content |
OLD | NEW |