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

Unified Diff: content/common/indexed_db/indexed_db_messages.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/common/indexed_db/indexed_db_messages.h
diff --git a/content/common/indexed_db/indexed_db_messages.h b/content/common/indexed_db/indexed_db_messages.h
index 4e8fd88a8944bca0a636c53b8aa90f90e8c8ba86..c34b7e650a504e5bb4ae7ad6d93ca087eebbbca2 100644
--- a/content/common/indexed_db/indexed_db_messages.h
+++ b/content/common/indexed_db/indexed_db_messages.h
@@ -4,62 +4,6 @@
// Message definition file, included multiple times, hence no include guard.
-#include <stdint.h>
-
-#include <map>
-#include <string>
-#include <utility>
-#include <vector>
-
-#include "content/common/indexed_db/indexed_db_key.h"
-#include "content/common/indexed_db/indexed_db_key_path.h"
-#include "content/common/indexed_db/indexed_db_key_range.h"
-#include "content/common/indexed_db/indexed_db_param_traits.h"
-#include "content/public/common/common_param_traits.h"
-#include "content/public/common/common_param_traits_macros.h"
#include "ipc/ipc_message_macros.h"
-#include "ipc/ipc_message_utils.h"
-#include "ipc/ipc_param_traits.h"
-#include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBTypes.h"
-
-// Singly-included section for typedefs in multiply-included file.
-#ifndef CONTENT_COMMON_INDEXED_DB_INDEXED_DB_MESSAGES_H_
-#define CONTENT_COMMON_INDEXED_DB_INDEXED_DB_MESSAGES_H_
-// IPC_MESSAGE macros fail on the std::map, when expanding. We need to define
-// a type to avoid that.
-// Map observer_id to corresponding set of indices in observations.
-typedef std::map<int32_t, std::vector<int32_t>> ObservationIndex;
-
-#endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_MESSAGES_H_
-
-#undef IPC_MESSAGE_EXPORT
-#define IPC_MESSAGE_EXPORT CONTENT_EXPORT
#define IPC_MESSAGE_START IndexedDBMsgStart
-
-// Argument structures used in messages
-
-IPC_ENUM_TRAITS_MAX_VALUE(blink::WebIDBOperationType,
- blink::WebIDBOperationTypeLast)
-
-IPC_STRUCT_BEGIN(IndexedDBMsg_Observation)
- IPC_STRUCT_MEMBER(int64_t, object_store_id)
- IPC_STRUCT_MEMBER(blink::WebIDBOperationType, type)
- IPC_STRUCT_MEMBER(content::IndexedDBKeyRange, key_range)
-IPC_STRUCT_END()
-
-IPC_STRUCT_BEGIN(IndexedDBMsg_ObserverChanges)
- IPC_STRUCT_MEMBER(ObservationIndex, observation_index)
- IPC_STRUCT_MEMBER(std::vector<IndexedDBMsg_Observation>, observations)
-IPC_STRUCT_END()
-
-// Indexed DB messages sent from the browser to the renderer.
-
-// The thread_id needs to be the first parameter in these messages. In the IO
-// thread on the renderer/client process, an IDB message filter assumes the
-// thread_id is the first int.
-
-// IDBDatabaseCallback message handlers
-IPC_MESSAGE_CONTROL2(IndexedDBMsg_DatabaseCallbacksChanges,
- int32_t, /* ipc_thread_id */
- IndexedDBMsg_ObserverChanges)
« no previous file with comments | « content/common/indexed_db/indexed_db_enum_traits.cc ('k') | content/common/indexed_db/indexed_db_param_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698