Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(723)

Unified Diff: webkit/renderer/dom_storage/dom_storage_cached_area.cc

Issue 16415016: Move nullable_string16.h to the string subdirectory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moar Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webkit/renderer/dom_storage/dom_storage_cached_area.cc
diff --git a/webkit/renderer/dom_storage/dom_storage_cached_area.cc b/webkit/renderer/dom_storage/dom_storage_cached_area.cc
index 8884fec71a073c9d9dd399fde8a082e1e2c4f16d..dd04b28e49da8b462f1b2defc85719e3800bd6ca 100644
--- a/webkit/renderer/dom_storage/dom_storage_cached_area.cc
+++ b/webkit/renderer/dom_storage/dom_storage_cached_area.cc
@@ -27,13 +27,13 @@ unsigned DomStorageCachedArea::GetLength(int connection_id) {
return map_->Length();
}
-NullableString16 DomStorageCachedArea::GetKey(
+base::NullableString16 DomStorageCachedArea::GetKey(
int connection_id, unsigned index) {
PrimeIfNeeded(connection_id);
return map_->Key(index);
}
-NullableString16 DomStorageCachedArea::GetItem(
+base::NullableString16 DomStorageCachedArea::GetItem(
int connection_id, const base::string16& key) {
PrimeIfNeeded(connection_id);
return map_->GetItem(key);
@@ -48,7 +48,7 @@ bool DomStorageCachedArea::SetItem(
return false;
PrimeIfNeeded(connection_id);
- NullableString16 unused;
+ base::NullableString16 unused;
if (!map_->SetItem(key, value, &unused))
return false;
@@ -90,7 +90,8 @@ void DomStorageCachedArea::Clear(int connection_id, const GURL& page_url) {
}
void DomStorageCachedArea::ApplyMutation(
- const NullableString16& key, const NullableString16& new_value) {
+ const base::NullableString16& key,
+ const base::NullableString16& new_value) {
if (!map_.get() || ignore_all_mutations_)
return;
@@ -104,9 +105,9 @@ void DomStorageCachedArea::ApplyMutation(
std::map<base::string16, int>::iterator iter =
ignore_key_mutations_.begin();
while (iter != ignore_key_mutations_.end()) {
- NullableString16 value = old->GetItem(iter->first);
+ base::NullableString16 value = old->GetItem(iter->first);
if (!value.is_null()) {
- NullableString16 unused;
+ base::NullableString16 unused;
map_->SetItem(iter->first, value.string(), &unused);
}
++iter;
@@ -128,7 +129,7 @@ void DomStorageCachedArea::ApplyMutation(
// It's a set item event.
// We turn off quota checking here to accomodate the over budget
// allowance that's provided in the browser process.
- NullableString16 unused;
+ base::NullableString16 unused;
map_->set_quota(kint32max);
map_->SetItem(key.string(), new_value.string(), &unused);
map_->set_quota(dom_storage::kPerAreaQuota);
« no previous file with comments | « webkit/renderer/dom_storage/dom_storage_cached_area.h ('k') | webkit/renderer/dom_storage/dom_storage_cached_area_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698