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

Unified Diff: content/browser/in_process_webkit/dom_storage_context_impl.cc

Issue 9726022: Revert 127573 - DOMStorageContextImpl that's implemented in terms of the new dom_storage classes. A… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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: content/browser/in_process_webkit/dom_storage_context_impl.cc
===================================================================
--- content/browser/in_process_webkit/dom_storage_context_impl.cc (revision 127574)
+++ content/browser/in_process_webkit/dom_storage_context_impl.cc (working copy)
@@ -198,13 +198,6 @@
}
void DOMStorageContextImpl::PurgeMemory() {
- if (!webkit_message_loop_->RunsTasksOnCurrentThread()) {
- webkit_message_loop_->PostTask(
- FROM_HERE,
- base::Bind(&DOMStorageContextImpl::PurgeMemory, this));
- return;
- }
-
// It is only safe to purge the memory from the LocalStorage namespace,
// because it is backed by disk and can be reloaded later. If we purge a
// SessionStorage namespace, its data will be gone forever, because it isn't
@@ -284,28 +277,6 @@
}
}
-void DOMStorageContextImpl::SetClearLocalState(bool clear_local_state) {
- if (!webkit_message_loop_->RunsTasksOnCurrentThread()) {
- webkit_message_loop_->PostTask(
- FROM_HERE,
- base::Bind(
- &DOMStorageContextImpl::SetClearLocalState,
- this, clear_local_state));
- return;
- }
- clear_local_state_on_exit_ = clear_local_state;
-}
-
-void DOMStorageContextImpl::SaveSessionState() {
- if (!webkit_message_loop_->RunsTasksOnCurrentThread()) {
- webkit_message_loop_->PostTask(
- FROM_HERE,
- base::Bind(&DOMStorageContextImpl::SaveSessionState, this));
- return;
- }
- save_session_state_ = true;
-}
-
DOMStorageNamespace* DOMStorageContextImpl::CreateLocalStorage() {
FilePath dir_path;
if (!data_path_.empty())
@@ -345,7 +316,6 @@
void DOMStorageContextImpl::GetAllStorageFiles(
const GetAllStorageFilesCallback& callback) {
if (!webkit_message_loop_->RunsTasksOnCurrentThread()) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
webkit_message_loop_->PostTask(
FROM_HERE,
base::Bind(
@@ -382,3 +352,4 @@
}
#endif // ENABLE_NEW_DOM_STORAGE_BACKEND
+
« no previous file with comments | « content/browser/in_process_webkit/dom_storage_context_impl.h ('k') | content/browser/in_process_webkit/dom_storage_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698