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

Unified Diff: content/child/indexed_db/indexed_db_dispatcher.h

Issue 2511403003: Send IndexedDB observations through IDBDatabaseCallbacks. (Closed)
Patch Set: Remove unnecessary forward declaration. Created 4 years, 1 month 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/child/indexed_db/indexed_db_dispatcher.h
diff --git a/content/child/indexed_db/indexed_db_dispatcher.h b/content/child/indexed_db/indexed_db_dispatcher.h
index d93efd67d61e861b5cceef283ef4179ebebd4352..cf0ffcc125ed9401f6e732affb4ac0b0c893dc24 100644
--- a/content/child/indexed_db/indexed_db_dispatcher.h
+++ b/content/child/indexed_db/indexed_db_dispatcher.h
@@ -8,14 +8,8 @@
#include <stddef.h>
#include <stdint.h>
-#include <map>
-#include <string>
-#include <vector>
-
#include "base/gtest_prod_util.h"
-#include "base/id_map.h"
#include "base/macros.h"
-#include "base/memory/ref_counted.h"
#include "base/strings/nullable_string16.h"
#include "content/child/indexed_db/indexed_db_callbacks_impl.h"
#include "content/child/indexed_db/indexed_db_database_callbacks_impl.h"
@@ -24,17 +18,9 @@
#include "content/public/child/worker_thread.h"
#include "ipc/ipc_sync_message_filter.h"
#include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBCallbacks.h"
-#include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBObserver.h"
#include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBTypes.h"
#include "url/origin.h"
-struct IndexedDBMsg_Observation;
-struct IndexedDBMsg_ObserverChanges;
-
-namespace blink {
-struct WebIDBObservation;
-}
-
namespace content {
class WebIDBCursorImpl;
@@ -54,18 +40,6 @@ class CONTENT_EXPORT IndexedDBDispatcher : public WorkerThread::Observer {
// WorkerThread::Observer implementation.
void WillStopCurrentWorkerThread() override;
- static std::vector<blink::WebIDBObservation> ConvertObservations(
- const std::vector<IndexedDBMsg_Observation>& idb_observation);
-
- void OnMessageReceived(const IPC::Message& msg);
-
- int32_t RegisterObserver(std::unique_ptr<blink::WebIDBObserver> observer);
-
- // Removes observers from our local map observers_.
- void RemoveObservers(const std::vector<int32_t>& observer_ids_to_remove);
-
- enum { kAllCursors = -1 };
-
void RegisterCursor(WebIDBCursorImpl* cursor);
void UnregisterCursor(WebIDBCursorImpl* cursor);
// Reset cursor prefetch caches for all cursors except exception_cursor.
@@ -97,11 +71,6 @@ class CONTENT_EXPORT IndexedDBDispatcher : public WorkerThread::Observer {
static int32_t CurrentWorkerId() { return WorkerThread::GetCurrentId(); }
- // IDBCallback message handlers.
- void OnDatabaseChanges(int32_t ipc_thread_id,
- const IndexedDBMsg_ObserverChanges&);
-
- IDMap<blink::WebIDBObserver, IDMapOwnPointer> observers_;
std::unordered_set<WebIDBCursorImpl*> cursors_;
// Holds pointers to the worker-thread owned state of IndexedDBCallbacksImpl
« no previous file with comments | « content/child/indexed_db/indexed_db_database_callbacks_impl.cc ('k') | content/child/indexed_db/indexed_db_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698