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 ef9d61f441b0621320594688cbf3d133921bbb15..9cfb65a8fac43ac53ef5e7eac053318235fe8cf6 100644 |
--- a/content/public/browser/indexed_db_context.h |
+++ b/content/public/browser/indexed_db_context.h |
@@ -16,7 +16,15 @@ |
#include "content/public/browser/indexed_db_info.h" |
namespace base { |
-class SequencedTaskRunner; |
+class SingleThreadTaskRunner; |
+} |
+ |
+namespace storage { |
+class QuotaManagerProxy; |
+} |
+ |
+namespace url { |
+class Origin; |
} |
namespace content { |
@@ -26,7 +34,7 @@ namespace content { |
class IndexedDBContext : public base::RefCountedThreadSafe<IndexedDBContext> { |
public: |
// Only call the below methods by posting to this TaskRunner. |
- virtual base::SequencedTaskRunner* TaskRunner() const = 0; |
+ virtual base::SingleThreadTaskRunner* TaskRunner() const = 0; |
// Methods used in response to QuotaManager requests. |
virtual std::vector<IndexedDBInfo> GetAllOriginsInfo() = 0; |
@@ -46,7 +54,13 @@ class IndexedDBContext : public base::RefCountedThreadSafe<IndexedDBContext> { |
// Set the task runner for tests if browser main loop is not initialized. |
virtual void SetTaskRunnerForTesting( |
- base::SequencedTaskRunner* task_runner) = 0; |
+ base::SingleThreadTaskRunner* task_runner) = 0; |
+ |
+ // Will be null in unit tests. |
+ virtual storage::QuotaManagerProxy* quota_manager_proxy() const = 0; |
+ |
+ // A transaction on the given origin was just completed. |
+ virtual void TransactionComplete(const url::Origin& origin) = 0; |
protected: |
friend class base::RefCountedThreadSafe<IndexedDBContext>; |