| 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 #ifndef CONTENT_RENDERER_DOM_STORAGE_LOCAL_STORAGE_CACHED_AREA_H_ | 5 #ifndef CONTENT_RENDERER_DOM_STORAGE_LOCAL_STORAGE_CACHED_AREA_H_ |
| 6 #define CONTENT_RENDERER_DOM_STORAGE_LOCAL_STORAGE_CACHED_AREA_H_ | 6 #define CONTENT_RENDERER_DOM_STORAGE_LOCAL_STORAGE_CACHED_AREA_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/strings/nullable_string16.h" | 12 #include "base/strings/nullable_string16.h" |
| 13 #include "content/common/leveldb_wrapper.mojom.h" | 13 #include "content/common/leveldb_wrapper.mojom.h" |
| 14 #include "mojo/public/cpp/bindings/binding.h" | 14 #include "mojo/public/cpp/bindings/associated_binding.h" |
| 15 #include "url/gurl.h" | 15 #include "url/gurl.h" |
| 16 #include "url/origin.h" | 16 #include "url/origin.h" |
| 17 | 17 |
| 18 namespace content { | 18 namespace content { |
| 19 class DOMStorageMap; | 19 class DOMStorageMap; |
| 20 class LocalStorageArea; | 20 class LocalStorageArea; |
| 21 class LocalStorageCachedAreas; | 21 class LocalStorageCachedAreas; |
| 22 | 22 |
| 23 namespace mojom { | 23 namespace mojom { |
| 24 class StoragePartitionService; | 24 class StoragePartitionService; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 | 94 |
| 95 // Resets the object back to its newly constructed state. | 95 // Resets the object back to its newly constructed state. |
| 96 void Reset(); | 96 void Reset(); |
| 97 | 97 |
| 98 url::Origin origin_; | 98 url::Origin origin_; |
| 99 scoped_refptr<DOMStorageMap> map_; | 99 scoped_refptr<DOMStorageMap> map_; |
| 100 std::map<base::string16, int> ignore_key_mutations_; | 100 std::map<base::string16, int> ignore_key_mutations_; |
| 101 bool ignore_all_mutations_ = false; | 101 bool ignore_all_mutations_ = false; |
| 102 std::string get_all_request_id_; | 102 std::string get_all_request_id_; |
| 103 mojom::LevelDBWrapperPtr leveldb_; | 103 mojom::LevelDBWrapperPtr leveldb_; |
| 104 mojo::Binding<mojom::LevelDBObserver> binding_; | 104 mojo::AssociatedBinding<mojom::LevelDBObserver> binding_; |
| 105 LocalStorageCachedAreas* cached_areas_; | 105 LocalStorageCachedAreas* cached_areas_; |
| 106 std::map<std::string, LocalStorageArea*> areas_; | 106 std::map<std::string, LocalStorageArea*> areas_; |
| 107 base::WeakPtrFactory<LocalStorageCachedArea> weak_factory_; | 107 base::WeakPtrFactory<LocalStorageCachedArea> weak_factory_; |
| 108 | 108 |
| 109 DISALLOW_COPY_AND_ASSIGN(LocalStorageCachedArea); | 109 DISALLOW_COPY_AND_ASSIGN(LocalStorageCachedArea); |
| 110 }; | 110 }; |
| 111 | 111 |
| 112 } // namespace content | 112 } // namespace content |
| 113 | 113 |
| 114 #endif // CONTENT_RENDERER_DOM_STORAGE_LOCAL_STORAGE_CACHED_AREA_H_ | 114 #endif // CONTENT_RENDERER_DOM_STORAGE_LOCAL_STORAGE_CACHED_AREA_H_ |
| OLD | NEW |