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

Unified Diff: content/public/browser/indexed_db_context.h

Issue 13954002: Refactor IndexedDBInfo out of browsingdata (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix performance_ui_tests too 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/indexed_db_context.h
diff --git a/content/public/browser/indexed_db_context.h b/content/public/browser/indexed_db_context.h
index 9d87444f09209a2d7c847b8997c0a1db7b85e996..5bba28a9c0be29face7f55c15acc5336ef13e070 100644
--- a/content/public/browser/indexed_db_context.h
+++ b/content/public/browser/indexed_db_context.h
@@ -8,23 +8,28 @@
#include <vector>
#include "base/basictypes.h"
+#include "base/files/file_path.h"
michaeln 2013/04/10 00:47:26 is this one needed?
alecflett 2013/04/10 17:17:17 It is actually - it was implicitly included before
#include "base/memory/ref_counted.h"
+#include "base/time.h"
#include "content/common/content_export.h"
-
-class GURL;
-
-namespace base {
-class Time;
-}
+#include "googleurl/src/gurl.h"
namespace content {
+struct IndexedDBInfo {
+ GURL origin;
+ int64 size;
+ base::Time last_modified;
+};
+
// Represents the per-BrowserContext IndexedDB data.
// Call these methods only on the WebKit thread.
class IndexedDBContext : public base::RefCountedThreadSafe<IndexedDBContext> {
public:
+
// Methods used in response to QuotaManager requests.
virtual std::vector<GURL> GetAllOrigins() = 0;
+ virtual std::vector<IndexedDBInfo> GetAllOriginsInfo() = 0;
virtual int64 GetOriginDiskUsage(const GURL& origin_url) = 0;
virtual base::Time GetOriginLastModified(const GURL& origin_url) = 0;

Powered by Google App Engine
This is Rietveld 408576698