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

Side by Side Diff: webkit/dom_storage/dom_storage_context.cc

Issue 13219005: Replace string16 with base::string16 in src/webkit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #include "webkit/dom_storage/dom_storage_context.h" 5 #include "webkit/dom_storage/dom_storage_context.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/guid.h" 10 #include "base/guid.h"
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 void DomStorageContext::AddEventObserver(EventObserver* observer) { 203 void DomStorageContext::AddEventObserver(EventObserver* observer) {
204 event_observers_.AddObserver(observer); 204 event_observers_.AddObserver(observer);
205 } 205 }
206 206
207 void DomStorageContext::RemoveEventObserver(EventObserver* observer) { 207 void DomStorageContext::RemoveEventObserver(EventObserver* observer) {
208 event_observers_.RemoveObserver(observer); 208 event_observers_.RemoveObserver(observer);
209 } 209 }
210 210
211 void DomStorageContext::NotifyItemSet( 211 void DomStorageContext::NotifyItemSet(
212 const DomStorageArea* area, 212 const DomStorageArea* area,
213 const string16& key, 213 const base::string16& key,
214 const string16& new_value, 214 const base::string16& new_value,
215 const NullableString16& old_value, 215 const NullableString16& old_value,
216 const GURL& page_url) { 216 const GURL& page_url) {
217 FOR_EACH_OBSERVER( 217 FOR_EACH_OBSERVER(
218 EventObserver, event_observers_, 218 EventObserver, event_observers_,
219 OnDomStorageItemSet(area, key, new_value, old_value, page_url)); 219 OnDomStorageItemSet(area, key, new_value, old_value, page_url));
220 } 220 }
221 221
222 void DomStorageContext::NotifyItemRemoved( 222 void DomStorageContext::NotifyItemRemoved(
223 const DomStorageArea* area, 223 const DomStorageArea* area,
224 const string16& key, 224 const base::string16& key,
225 const string16& old_value, 225 const base::string16& old_value,
226 const GURL& page_url) { 226 const GURL& page_url) {
227 FOR_EACH_OBSERVER( 227 FOR_EACH_OBSERVER(
228 EventObserver, event_observers_, 228 EventObserver, event_observers_,
229 OnDomStorageItemRemoved(area, key, old_value, page_url)); 229 OnDomStorageItemRemoved(area, key, old_value, page_url));
230 } 230 }
231 231
232 void DomStorageContext::NotifyAreaCleared( 232 void DomStorageContext::NotifyAreaCleared(
233 const DomStorageArea* area, 233 const DomStorageArea* area,
234 const GURL& page_url) { 234 const GURL& page_url) {
235 FOR_EACH_OBSERVER( 235 FOR_EACH_OBSERVER(
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 if (!deletable_persistent_namespace_ids_.empty()) { 415 if (!deletable_persistent_namespace_ids_.empty()) {
416 task_runner_->PostDelayedTask( 416 task_runner_->PostDelayedTask(
417 FROM_HERE, base::Bind( 417 FROM_HERE, base::Bind(
418 &DomStorageContext::DeleteNextUnusedNamespace, 418 &DomStorageContext::DeleteNextUnusedNamespace,
419 this), 419 this),
420 base::TimeDelta::FromSeconds(kSessionStoraceScavengingSeconds)); 420 base::TimeDelta::FromSeconds(kSessionStoraceScavengingSeconds));
421 } 421 }
422 } 422 }
423 423
424 } // namespace dom_storage 424 } // namespace dom_storage
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698