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

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

Issue 1963293002: Replacing Indexed DB Chromium IPC with Mojo Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactoring after Passing URLRequestContextGetter. Created 4 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 | « content/content_tests.gypi ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>;
« no previous file with comments | « content/content_tests.gypi ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698