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

Side by Side Diff: chrome/browser/extensions/extension_data_deleter.cc

Issue 7470008: Improve IndexedDB's quota support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove NOTREACHED Created 9 years, 4 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
« no previous file with comments | « no previous file | content/browser/in_process_webkit/indexed_db_callbacks.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/extensions/extension_data_deleter.h" 5 #include "chrome/browser/extensions/extension_data_deleter.h"
6 6
7 #include "chrome/browser/profiles/profile.h" 7 #include "chrome/browser/profiles/profile.h"
8 #include "chrome/common/extensions/extension.h" 8 #include "chrome/common/extensions/extension.h"
9 #include "content/browser/in_process_webkit/webkit_context.h" 9 #include "content/browser/in_process_webkit/webkit_context.h"
10 #include "net/base/cookie_monster.h" 10 #include "net/base/cookie_monster.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 } 75 }
76 76
77 void ExtensionDataDeleter::DeleteLocalStorageOnWebkitThread() { 77 void ExtensionDataDeleter::DeleteLocalStorageOnWebkitThread() {
78 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::WEBKIT)); 78 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::WEBKIT));
79 webkit_context_->dom_storage_context()->DeleteLocalStorageForOrigin( 79 webkit_context_->dom_storage_context()->DeleteLocalStorageForOrigin(
80 origin_id_); 80 origin_id_);
81 } 81 }
82 82
83 void ExtensionDataDeleter::DeleteIndexedDBOnWebkitThread() { 83 void ExtensionDataDeleter::DeleteIndexedDBOnWebkitThread() {
84 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::WEBKIT)); 84 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::WEBKIT));
85 webkit_context_->indexed_db_context()->DeleteIndexedDBForOrigin(origin_id_); 85 webkit_context_->indexed_db_context()->DeleteIndexedDBForOrigin(
86 extension_url_);
86 } 87 }
87 88
88 void ExtensionDataDeleter::DeleteFileSystemOnFileThread() { 89 void ExtensionDataDeleter::DeleteFileSystemOnFileThread() {
89 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE)); 90 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
90 file_system_context_->DeleteDataForOriginOnFileThread(extension_url_); 91 file_system_context_->DeleteDataForOriginOnFileThread(extension_url_);
91 } 92 }
OLDNEW
« no previous file with comments | « no previous file | content/browser/in_process_webkit/indexed_db_callbacks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698