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

Unified Diff: Source/modules/indexeddb/IDBMetadata.h

Issue 1318793005: [part 2] Make classes and structures in modules fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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 | « Source/modules/indexeddb/IDBKeyPath.h ('k') | Source/modules/indexeddb/WebIDBCallbacksImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/indexeddb/IDBMetadata.h
diff --git a/Source/modules/indexeddb/IDBMetadata.h b/Source/modules/indexeddb/IDBMetadata.h
index 2a22792f53fda9bb0c66547752d0afb81f2f958f..f08079f01b92d089bafe11b9898a919b3249b65a 100644
--- a/Source/modules/indexeddb/IDBMetadata.h
+++ b/Source/modules/indexeddb/IDBMetadata.h
@@ -31,6 +31,7 @@
#include "modules/indexeddb/IDBKeyPath.h"
#include "public/platform/modules/indexeddb/WebIDBMetadata.h"
+#include "wtf/Allocator.h"
#include "wtf/HashMap.h"
#include "wtf/text/StringHash.h"
#include "wtf/text/WTFString.h"
@@ -38,6 +39,7 @@
namespace blink {
struct IDBIndexMetadata {
+ ALLOW_ONLY_INLINE_ALLOCATION();
IDBIndexMetadata() { }
IDBIndexMetadata(const String& name, int64_t id, const IDBKeyPath& keyPath, bool unique, bool multiEntry)
: name(name)
@@ -55,6 +57,7 @@ struct IDBIndexMetadata {
};
struct IDBObjectStoreMetadata {
+ ALLOW_ONLY_INLINE_ALLOCATION();
IDBObjectStoreMetadata() { }
IDBObjectStoreMetadata(const String& name, int64_t id, const IDBKeyPath& keyPath, bool autoIncrement, int64_t maxIndexId)
: name(name)
@@ -77,6 +80,7 @@ struct IDBObjectStoreMetadata {
};
struct IDBDatabaseMetadata {
+ DISALLOW_ALLOCATION();
// FIXME: These can probably be collapsed into 0.
enum {
NoIntVersion = -1,
« no previous file with comments | « Source/modules/indexeddb/IDBKeyPath.h ('k') | Source/modules/indexeddb/WebIDBCallbacksImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698