Index: content/renderer/dom_storage/dom_storage_cached_area.cc |
diff --git a/content/renderer/dom_storage/dom_storage_cached_area.cc b/content/renderer/dom_storage/dom_storage_cached_area.cc |
index a0203bbe3e50248999db0290167dbb98ab55efaf..97614405525a086072dcac23f40332e40ae6e68c 100644 |
--- a/content/renderer/dom_storage/dom_storage_cached_area.cc |
+++ b/content/renderer/dom_storage/dom_storage_cached_area.cc |
@@ -7,8 +7,8 @@ |
#include "base/basictypes.h" |
#include "base/metrics/histogram.h" |
#include "base/time/time.h" |
+#include "content/common/dom_storage/dom_storage_map.h" |
#include "content/renderer/dom_storage/dom_storage_proxy.h" |
-#include "webkit/common/dom_storage/dom_storage_map.h" |
namespace content { |
@@ -47,7 +47,7 @@ bool DomStorageCachedArea::SetItem(int connection_id, |
const GURL& page_url) { |
// A quick check to reject obviously overbudget items to avoid |
// the priming the cache. |
- if (key.length() + value.length() > dom_storage::kPerAreaQuota) |
+ if (key.length() + value.length() > kPerStorageAreaQuota) |
return false; |
PrimeIfNeeded(connection_id); |
@@ -83,7 +83,7 @@ void DomStorageCachedArea::RemoveItem(int connection_id, |
void DomStorageCachedArea::Clear(int connection_id, const GURL& page_url) { |
// No need to prime the cache in this case. |
Reset(); |
- map_ = new dom_storage::DomStorageMap(dom_storage::kPerAreaQuota); |
+ map_ = new DOMStorageMap(kPerStorageAreaQuota); |
// Ignore all mutations until OnClearComplete time. |
ignore_all_mutations_ = true; |
@@ -101,8 +101,8 @@ void DomStorageCachedArea::ApplyMutation( |
if (key.is_null()) { |
// It's a clear event. |
- scoped_refptr<dom_storage::DomStorageMap> old = map_; |
- map_ = new dom_storage::DomStorageMap(dom_storage::kPerAreaQuota); |
+ scoped_refptr<DOMStorageMap> old = map_; |
+ map_ = new DOMStorageMap(kPerStorageAreaQuota); |
// We have to retain local additions which happened after this |
// clear operation from another process. |
@@ -136,7 +136,7 @@ void DomStorageCachedArea::ApplyMutation( |
base::NullableString16 unused; |
map_->set_quota(kint32max); |
map_->SetItem(key.string(), new_value.string(), &unused); |
- map_->set_quota(dom_storage::kPerAreaQuota); |
+ map_->set_quota(kPerStorageAreaQuota); |
} |
size_t DomStorageCachedArea::MemoryBytesUsedByCache() const { |
@@ -154,7 +154,7 @@ void DomStorageCachedArea::Prime(int connection_id) { |
// Ignore all mutations until OnLoadComplete time. |
ignore_all_mutations_ = true; |
- dom_storage::ValuesMap values; |
+ DOMStorageValuesMap values; |
base::TimeTicks before = base::TimeTicks::Now(); |
proxy_->LoadArea(connection_id, |
&values, |
@@ -165,7 +165,7 @@ void DomStorageCachedArea::Prime(int connection_id) { |
// to maintain histogram continuity. |
UMA_HISTOGRAM_TIMES("LocalStorage.TimeToPrimeLocalStorage", |
time_to_prime); |
- map_ = new dom_storage::DomStorageMap(dom_storage::kPerAreaQuota); |
+ map_ = new DOMStorageMap(kPerStorageAreaQuota); |
map_->SwapValues(&values); |
size_t local_storage_size_kb = map_->bytes_used() / 1024; |