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

Unified Diff: webkit/database/database_tracker.h

Issue 7748025: Cleanup: Remove a DCHECK about an empty database name that should not be there. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webkit/database/database_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/database/database_tracker.h
===================================================================
--- webkit/database/database_tracker.h (revision 98166)
+++ webkit/database/database_tracker.h (working copy)
@@ -221,15 +221,27 @@
int64 estimated_size);
void ClearAllCachedOriginInfo();
- CachedOriginInfo* GetCachedOriginInfo(const string16& origin_identifier);
+ CachedOriginInfo* MaybeGetCachedOriginInfo(const string16& origin_identifier,
+ bool create_if_needed);
+ CachedOriginInfo* GetCachedOriginInfo(const string16& origin_identifier) {
+ return MaybeGetCachedOriginInfo(origin_identifier, true);
+ }
int64 GetDBFileSize(const string16& origin_identifier,
const string16& database_name);
- int64 SeedOpenDatabaseSize(const string16& origin_identifier,
- const string16& database_name);
+ int64 SeedOpenDatabaseInfo(const string16& origin_identifier,
+ const string16& database_name,
+ const string16& description);
+ int64 UpdateOpenDatabaseInfoAndNotify(const string16& origin_identifier,
+ const string16& database_name,
+ const string16* opt_description);
int64 UpdateOpenDatabaseSizeAndNotify(const string16& origin_identifier,
- const string16& database_name);
+ const string16& database_name) {
+ return UpdateOpenDatabaseInfoAndNotify(
+ origin_identifier, database_name, NULL);
+ }
+
void ScheduleDatabaseForDeletion(const string16& origin_identifier,
const string16& database_name);
// Schedule a set of open databases for deletion. If non-null, callback is
« no previous file with comments | « no previous file | webkit/database/database_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698