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

Unified Diff: content/browser/indexed_db/indexed_db_metadata.h

Issue 2370643004: Port messages sent by WebIDBFactoryImpl to Mojo. (Closed)
Patch Set: Require explicit wrapping when discarding map keys. Created 4 years, 2 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/browser/indexed_db/indexed_db_metadata.h
diff --git a/content/browser/indexed_db/indexed_db_metadata.h b/content/browser/indexed_db/indexed_db_metadata.h
deleted file mode 100644
index 9d4f0993d9b0ad6cf99fd13369baaf3637467bcb..0000000000000000000000000000000000000000
--- a/content/browser/indexed_db/indexed_db_metadata.h
+++ /dev/null
@@ -1,83 +0,0 @@
-// Copyright (c) 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_BROWSER_INDEXED_DB_INDEXED_DB_METADATA_H_
-#define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_METADATA_H_
-
-#include <stdint.h>
-
-#include <map>
-
-#include "base/strings/string16.h"
-#include "content/common/indexed_db/indexed_db_key_path.h"
-
-namespace content {
-
-struct CONTENT_EXPORT IndexedDBIndexMetadata {
- static const int64_t kInvalidId = -1;
-
- IndexedDBIndexMetadata();
- IndexedDBIndexMetadata(const base::string16& name,
- int64_t id,
- const IndexedDBKeyPath& key_path,
- bool unique,
- bool multi_entry);
- IndexedDBIndexMetadata(const IndexedDBIndexMetadata& other);
- ~IndexedDBIndexMetadata();
- IndexedDBIndexMetadata& operator=(const IndexedDBIndexMetadata& other);
-
- base::string16 name;
- int64_t id;
- IndexedDBKeyPath key_path;
- bool unique;
- bool multi_entry;
-};
-
-struct CONTENT_EXPORT IndexedDBObjectStoreMetadata {
-
- static const int64_t kInvalidId = -1;
-
- IndexedDBObjectStoreMetadata();
- IndexedDBObjectStoreMetadata(const base::string16& name,
- int64_t id,
- const IndexedDBKeyPath& key_path,
- bool auto_increment,
- int64_t max_index_id);
- IndexedDBObjectStoreMetadata(const IndexedDBObjectStoreMetadata& other);
- ~IndexedDBObjectStoreMetadata();
- IndexedDBObjectStoreMetadata& operator=(
- const IndexedDBObjectStoreMetadata& other);
-
- base::string16 name;
- int64_t id;
- IndexedDBKeyPath key_path;
- bool auto_increment;
- int64_t max_index_id;
-
- std::map<int64_t, IndexedDBIndexMetadata> indexes;
-};
-
-struct CONTENT_EXPORT IndexedDBDatabaseMetadata {
- // TODO(jsbell): These can probably be collapsed into 0.
- enum { NO_VERSION = -1, DEFAULT_VERSION = 0 };
-
- IndexedDBDatabaseMetadata();
- IndexedDBDatabaseMetadata(const base::string16& name,
- int64_t id,
- int64_t version,
- int64_t max_object_store_id);
- IndexedDBDatabaseMetadata(const IndexedDBDatabaseMetadata& other);
- ~IndexedDBDatabaseMetadata();
- IndexedDBDatabaseMetadata& operator=(IndexedDBDatabaseMetadata& other);
-
- base::string16 name;
- int64_t id;
- int64_t version;
- int64_t max_object_store_id;
-
- std::map<int64_t, IndexedDBObjectStoreMetadata> object_stores;
-};
-} // namespace content
-
-#endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_METADATA_H_

Powered by Google App Engine
This is Rietveld 408576698