OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/local_storage_cached_area.h" | 5 #include "content/renderer/dom_storage/local_storage_cached_area.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/memory/ptr_util.h" |
8 #include "base/metrics/histogram_macros.h" | 9 #include "base/metrics/histogram_macros.h" |
9 #include "base/rand_util.h" | 10 #include "base/rand_util.h" |
10 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
11 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
12 #include "base/strings/string_split.h" | 13 #include "base/strings/string_split.h" |
13 #include "base/time/time.h" | 14 #include "base/time/time.h" |
14 #include "content/common/dom_storage/dom_storage_map.h" | 15 #include "content/common/dom_storage/dom_storage_map.h" |
15 #include "content/common/storage_partition_service.mojom.h" | 16 #include "content/common/storage_partition_service.mojom.h" |
16 #include "content/renderer/dom_storage/local_storage_area.h" | 17 #include "content/renderer/dom_storage/local_storage_area.h" |
17 #include "content/renderer/dom_storage/local_storage_cached_areas.h" | 18 #include "content/renderer/dom_storage/local_storage_cached_areas.h" |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 } | 361 } |
361 | 362 |
362 void LocalStorageCachedArea::Reset() { | 363 void LocalStorageCachedArea::Reset() { |
363 map_ = NULL; | 364 map_ = NULL; |
364 ignore_key_mutations_.clear(); | 365 ignore_key_mutations_.clear(); |
365 ignore_all_mutations_ = false; | 366 ignore_all_mutations_ = false; |
366 weak_factory_.InvalidateWeakPtrs(); | 367 weak_factory_.InvalidateWeakPtrs(); |
367 } | 368 } |
368 | 369 |
369 } // namespace content | 370 } // namespace content |
OLD | NEW |