| 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 #ifndef WEBKIT_RENDERER_DOM_STORAGE_DOM_STORAGE_CACHED_AREA_H_ | 5 #ifndef WEBKIT_RENDERER_DOM_STORAGE_DOM_STORAGE_CACHED_AREA_H_ |
| 6 #define WEBKIT_RENDERER_DOM_STORAGE_DOM_STORAGE_CACHED_AREA_H_ | 6 #define WEBKIT_RENDERER_DOM_STORAGE_DOM_STORAGE_CACHED_AREA_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "base/strings/nullable_string16.h" | 12 #include "base/strings/nullable_string16.h" |
| 13 #include "googleurl/src/gurl.h" | 13 #include "url/gurl.h" |
| 14 #include "webkit/renderer/webkit_storage_renderer_export.h" | 14 #include "webkit/renderer/webkit_storage_renderer_export.h" |
| 15 | 15 |
| 16 namespace dom_storage { | 16 namespace dom_storage { |
| 17 | 17 |
| 18 class DomStorageMap; | 18 class DomStorageMap; |
| 19 class DomStorageProxy; | 19 class DomStorageProxy; |
| 20 | 20 |
| 21 // Unlike the other classes in the dom_storage library, this one is intended | 21 // Unlike the other classes in the dom_storage library, this one is intended |
| 22 // for use in renderer processes. It maintains a complete cache of the | 22 // for use in renderer processes. It maintains a complete cache of the |
| 23 // origin's Map of key/value pairs for fast access. The cache is primed on | 23 // origin's Map of key/value pairs for fast access. The cache is primed on |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 int64 namespace_id_; | 83 int64 namespace_id_; |
| 84 GURL origin_; | 84 GURL origin_; |
| 85 scoped_refptr<DomStorageMap> map_; | 85 scoped_refptr<DomStorageMap> map_; |
| 86 scoped_refptr<DomStorageProxy> proxy_; | 86 scoped_refptr<DomStorageProxy> proxy_; |
| 87 base::WeakPtrFactory<DomStorageCachedArea> weak_factory_; | 87 base::WeakPtrFactory<DomStorageCachedArea> weak_factory_; |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 } // namespace dom_storage | 90 } // namespace dom_storage |
| 91 | 91 |
| 92 #endif // WEBKIT_RENDERER_DOM_STORAGE_DOM_STORAGE_CACHED_AREA_H_ | 92 #endif // WEBKIT_RENDERER_DOM_STORAGE_DOM_STORAGE_CACHED_AREA_H_ |
| OLD | NEW |