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

Unified Diff: content/child/indexed_db/webidbdatabase_impl.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
Index: content/child/indexed_db/webidbdatabase_impl.h
diff --git a/content/child/indexed_db/webidbdatabase_impl.h b/content/child/indexed_db/webidbdatabase_impl.h
deleted file mode 100644
index 85710030a8b3778bfbbafed2e865ee2a97b61ab6..0000000000000000000000000000000000000000
--- a/content/child/indexed_db/webidbdatabase_impl.h
+++ /dev/null
@@ -1,130 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CONTENT_CHILD_INDEXED_DB_WEBIDBDATABASE_IMPL_H_
-#define CONTENT_CHILD_INDEXED_DB_WEBIDBDATABASE_IMPL_H_
-
-#include <stdint.h>
-
-#include <set>
-
-#include "base/memory/ref_counted.h"
-#include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBCursor.h"
-#include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBDatabase.h"
-#include "third_party/WebKit/public/platform/modules/indexeddb/WebIDBTypes.h"
-
-namespace blink {
-class WebBlobInfo;
-class WebIDBCallbacks;
-class WebIDBDatabaseCallbacks;
-class WebIDBObserver;
-class WebString;
-}
-
-namespace content {
-class ThreadSafeSender;
-
-class WebIDBDatabaseImpl : public blink::WebIDBDatabase {
- public:
- WebIDBDatabaseImpl(int32_t ipc_database_id,
- int32_t ipc_database_callbacks_id,
- ThreadSafeSender* thread_safe_sender);
- ~WebIDBDatabaseImpl() override;
-
- // blink::WebIDBDatabase
- void createObjectStore(long long transaction_id,
- long long objectstore_id,
- const blink::WebString& name,
- const blink::WebIDBKeyPath& key_path,
- bool auto_increment) override;
- void deleteObjectStore(long long transaction_id,
- long long object_store_id) override;
- void createTransaction(long long transaction_id,
- blink::WebIDBDatabaseCallbacks* callbacks,
- const blink::WebVector<long long>& scope,
- blink::WebIDBTransactionMode mode) override;
-
- void close() override;
- void versionChangeIgnored() override;
-
- int32_t addObserver(std::unique_ptr<blink::WebIDBObserver>,
- long long transactionId) override;
- void removeObservers(
- const blink::WebVector<int32_t>& observer_ids_to_remove) override;
-
- void get(long long transactionId,
- long long objectStoreId,
- long long indexId,
- const blink::WebIDBKeyRange&,
- bool keyOnly,
- blink::WebIDBCallbacks*) override;
- void getAll(long long transactionId,
- long long objectStoreId,
- long long indexId,
- const blink::WebIDBKeyRange&,
- long long maxCount,
- bool keyOnly,
- blink::WebIDBCallbacks*) override;
- void put(long long transactionId,
- long long objectStoreId,
- const blink::WebData& value,
- const blink::WebVector<blink::WebBlobInfo>& webBlobInfo,
- const blink::WebIDBKey&,
- blink::WebIDBPutMode,
- blink::WebIDBCallbacks*,
- const blink::WebVector<long long>& indexIds,
- const blink::WebVector<WebIndexKeys>&) override;
- void setIndexKeys(long long transactionId,
- long long objectStoreId,
- const blink::WebIDBKey&,
- const blink::WebVector<long long>& indexIds,
- const blink::WebVector<WebIndexKeys>&) override;
- void setIndexesReady(long long transactionId,
- long long objectStoreId,
- const blink::WebVector<long long>& indexIds) override;
- void openCursor(long long transactionId,
- long long objectStoreId,
- long long indexId,
- const blink::WebIDBKeyRange&,
- blink::WebIDBCursorDirection direction,
- bool keyOnly,
- blink::WebIDBTaskType,
- blink::WebIDBCallbacks*) override;
- void count(long long transactionId,
- long long objectStoreId,
- long long indexId,
- const blink::WebIDBKeyRange&,
- blink::WebIDBCallbacks*) override;
- void deleteRange(long long transactionId,
- long long objectStoreId,
- const blink::WebIDBKeyRange&,
- blink::WebIDBCallbacks*) override;
- void clear(long long transactionId,
- long long objectStoreId,
- blink::WebIDBCallbacks*) override;
- void createIndex(long long transactionId,
- long long objectStoreId,
- long long indexId,
- const blink::WebString& name,
- const blink::WebIDBKeyPath&,
- bool unique,
- bool multiEntry) override;
- void deleteIndex(long long transactionId,
- long long objectStoreId,
- long long indexId) override;
- void abort(long long transaction_id) override;
- void commit(long long transaction_id) override;
- void ackReceivedBlobs(
- const blink::WebVector<blink::WebString>& uuids) override;
-
- private:
- int32_t ipc_database_id_;
- int32_t ipc_database_callbacks_id_;
- std::set<int32_t> observer_ids_;
- scoped_refptr<ThreadSafeSender> thread_safe_sender_;
-};
-
-} // namespace content
-
-#endif // CONTENT_CHILD_INDEXED_DB_WEBIDBDATABASE_IMPL_H_
« no previous file with comments | « content/child/indexed_db/webidbcursor_impl_unittest.cc ('k') | content/child/indexed_db/webidbdatabase_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698