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

Side by Side Diff: Source/modules/indexeddb/IDBIndex.h

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/modules/indexeddb/IDBFactory.h ('k') | Source/modules/indexeddb/IDBKeyRange.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 26 matching lines...) Expand all
37 #include "public/platform/WebIDBTypes.h" 37 #include "public/platform/WebIDBTypes.h"
38 #include "wtf/Forward.h" 38 #include "wtf/Forward.h"
39 #include "wtf/text/WTFString.h" 39 #include "wtf/text/WTFString.h"
40 40
41 namespace blink { 41 namespace blink {
42 42
43 class ExceptionState; 43 class ExceptionState;
44 class IDBObjectStore; 44 class IDBObjectStore;
45 45
46 class IDBIndex : public GarbageCollectedFinalized<IDBIndex>, public ScriptWrappa ble { 46 class IDBIndex : public GarbageCollectedFinalized<IDBIndex>, public ScriptWrappa ble {
47 DEFINE_WRAPPERTYPEINFO();
47 public: 48 public:
48 static IDBIndex* create(const IDBIndexMetadata& metadata, IDBObjectStore* ob jectStore, IDBTransaction* transaction) 49 static IDBIndex* create(const IDBIndexMetadata& metadata, IDBObjectStore* ob jectStore, IDBTransaction* transaction)
49 { 50 {
50 return new IDBIndex(metadata, objectStore, transaction); 51 return new IDBIndex(metadata, objectStore, transaction);
51 } 52 }
52 ~IDBIndex(); 53 ~IDBIndex();
53 void trace(Visitor*); 54 void trace(Visitor*);
54 55
55 // Implement the IDL 56 // Implement the IDL
56 const String& name() const { return m_metadata.name; } 57 const String& name() const { return m_metadata.name; }
(...skipping 23 matching lines...) Expand all
80 81
81 IDBIndexMetadata m_metadata; 82 IDBIndexMetadata m_metadata;
82 Member<IDBObjectStore> m_objectStore; 83 Member<IDBObjectStore> m_objectStore;
83 Member<IDBTransaction> m_transaction; 84 Member<IDBTransaction> m_transaction;
84 bool m_deleted; 85 bool m_deleted;
85 }; 86 };
86 87
87 } // namespace blink 88 } // namespace blink
88 89
89 #endif // IDBIndex_h 90 #endif // IDBIndex_h
OLDNEW
« no previous file with comments | « Source/modules/indexeddb/IDBFactory.h ('k') | Source/modules/indexeddb/IDBKeyRange.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698