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

Unified Diff: chrome/browser/browsing_data_indexed_db_helper.h

Issue 7692016: Delete indexedDBs from the cookie tree ui. (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 | chrome/browser/browsing_data_indexed_db_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browsing_data_indexed_db_helper.h
===================================================================
--- chrome/browser/browsing_data_indexed_db_helper.h (revision 97928)
+++ chrome/browser/browsing_data_indexed_db_helper.h (working copy)
@@ -32,26 +32,16 @@
// Contains detailed information about an indexed database.
struct IndexedDBInfo {
IndexedDBInfo(
- const std::string& protocol,
- const std::string& host,
- unsigned short port,
- const std::string& database_identifier,
- const std::string& origin,
- const FilePath& file_path,
+ const GURL& origin,
int64 size,
base::Time last_modified);
~IndexedDBInfo();
bool IsFileSchemeData() {
- return protocol == chrome::kFileScheme;
+ return origin.SchemeIsFile();
}
- std::string protocol;
- std::string host;
- unsigned short port;
- std::string database_identifier;
- std::string origin;
- FilePath file_path;
+ GURL origin;
int64 size;
base::Time last_modified;
};
@@ -69,8 +59,8 @@
// longer exists).
// This must be called only in the UI thread.
virtual void CancelNotification() = 0;
- // Requests a single indexed database file to be deleted in the WEBKIT thread.
- virtual void DeleteIndexedDBFile(const FilePath& file_path) = 0;
+ // Requests a single indexed database to be deleted in the WEBKIT thread.
+ virtual void DeleteIndexedDB(const GURL& origin) = 0;
protected:
friend class base::RefCountedThreadSafe<BrowsingDataIndexedDBHelper>;
@@ -83,7 +73,7 @@
class CannedBrowsingDataIndexedDBHelper
: public BrowsingDataIndexedDBHelper {
public:
- explicit CannedBrowsingDataIndexedDBHelper(Profile* profile);
+ CannedBrowsingDataIndexedDBHelper();
// Return a copy of the IndexedDB helper. Only one consumer can use the
// StartFetching method at a time, so we need to create a copy of the helper
@@ -105,7 +95,7 @@
virtual void StartFetching(
Callback1<const std::list<IndexedDBInfo>& >::Type* callback);
virtual void CancelNotification();
- virtual void DeleteIndexedDBFile(const FilePath& file_path) {}
+ virtual void DeleteIndexedDB(const GURL& origin) {}
private:
struct PendingIndexedDBInfo {
@@ -124,8 +114,6 @@
void NotifyInUIThread();
- Profile* profile_;
-
// Lock to protect access to pending_indexed_db_info_;
mutable base::Lock lock_;
« no previous file with comments | « no previous file | chrome/browser/browsing_data_indexed_db_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698