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

Side by Side Diff: Source/modules/indexeddb/IDBTransaction.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/IDBRequest.h ('k') | Source/modules/indexeddb/IDBVersionChangeEvent.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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 class IDBDatabase; 46 class IDBDatabase;
47 class IDBObjectStore; 47 class IDBObjectStore;
48 class IDBOpenDBRequest; 48 class IDBOpenDBRequest;
49 struct IDBObjectStoreMetadata; 49 struct IDBObjectStoreMetadata;
50 50
51 class IDBTransaction FINAL 51 class IDBTransaction FINAL
52 : public RefCountedGarbageCollectedWillBeGarbageCollectedFinalized<IDBTransa ction> 52 : public RefCountedGarbageCollectedWillBeGarbageCollectedFinalized<IDBTransa ction>
53 , public EventTargetWithInlineData 53 , public EventTargetWithInlineData
54 , public ActiveDOMObject { 54 , public ActiveDOMObject {
55 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<I DBTransaction>); 55 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<I DBTransaction>);
56 DEFINE_WRAPPERTYPEINFO();
56 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(IDBTransaction); 57 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(IDBTransaction);
57 public: 58 public:
58 static IDBTransaction* create(ExecutionContext*, int64_t, const Vector<Strin g>& objectStoreNames, WebIDBTransactionMode, IDBDatabase*); 59 static IDBTransaction* create(ExecutionContext*, int64_t, const Vector<Strin g>& objectStoreNames, WebIDBTransactionMode, IDBDatabase*);
59 static IDBTransaction* create(ExecutionContext*, int64_t, IDBDatabase*, IDBO penDBRequest*, const IDBDatabaseMetadata& previousMetadata); 60 static IDBTransaction* create(ExecutionContext*, int64_t, IDBDatabase*, IDBO penDBRequest*, const IDBDatabaseMetadata& previousMetadata);
60 virtual ~IDBTransaction(); 61 virtual ~IDBTransaction();
61 virtual void trace(Visitor*) OVERRIDE; 62 virtual void trace(Visitor*) OVERRIDE;
62 63
63 static WebIDBTransactionMode stringToMode(const String&, ExceptionState&); 64 static WebIDBTransactionMode stringToMode(const String&, ExceptionState&);
64 65
65 // When the connection is closed backend will be 0. 66 // When the connection is closed backend will be 0.
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 IDBObjectStoreSet m_deletedObjectStores; 136 IDBObjectStoreSet m_deletedObjectStores;
136 137
137 typedef HeapHashMap<Member<IDBObjectStore>, IDBObjectStoreMetadata> IDBObjec tStoreMetadataMap; 138 typedef HeapHashMap<Member<IDBObjectStore>, IDBObjectStoreMetadata> IDBObjec tStoreMetadataMap;
138 IDBObjectStoreMetadataMap m_objectStoreCleanupMap; 139 IDBObjectStoreMetadataMap m_objectStoreCleanupMap;
139 IDBDatabaseMetadata m_previousMetadata; 140 IDBDatabaseMetadata m_previousMetadata;
140 }; 141 };
141 142
142 } // namespace blink 143 } // namespace blink
143 144
144 #endif // IDBTransaction_h 145 #endif // IDBTransaction_h
OLDNEW
« no previous file with comments | « Source/modules/indexeddb/IDBRequest.h ('k') | Source/modules/indexeddb/IDBVersionChangeEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698