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

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

Issue 1163253003: Clean up macros around DEFINE_EVENT_TARGET_REFCOUNTING (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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/filesystem/FileWriter.h ('k') | Source/modules/indexeddb/IDBRequest.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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 namespace blink { 49 namespace blink {
50 50
51 class DOMError; 51 class DOMError;
52 class ExceptionState; 52 class ExceptionState;
53 class ExecutionContext; 53 class ExecutionContext;
54 54
55 class MODULES_EXPORT IDBDatabase final 55 class MODULES_EXPORT IDBDatabase final
56 : public RefCountedGarbageCollectedEventTargetWithInlineData<IDBDatabase> 56 : public RefCountedGarbageCollectedEventTargetWithInlineData<IDBDatabase>
57 , public ActiveDOMObject { 57 , public ActiveDOMObject {
58 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<I DBDatabase>); 58 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(IDBDatabase);
59 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(IDBDatabase); 59 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(IDBDatabase);
60 DEFINE_WRAPPERTYPEINFO(); 60 DEFINE_WRAPPERTYPEINFO();
61 public: 61 public:
62 static IDBDatabase* create(ExecutionContext*, PassOwnPtr<WebIDBDatabase>, ID BDatabaseCallbacks*); 62 static IDBDatabase* create(ExecutionContext*, PassOwnPtr<WebIDBDatabase>, ID BDatabaseCallbacks*);
63 virtual ~IDBDatabase(); 63 virtual ~IDBDatabase();
64 DECLARE_VIRTUAL_TRACE(); 64 DECLARE_VIRTUAL_TRACE();
65 65
66 void setMetadata(const IDBDatabaseMetadata& metadata) { m_metadata = metadat a; } 66 void setMetadata(const IDBDatabaseMetadata& metadata) { m_metadata = metadat a; }
67 void indexCreated(int64_t objectStoreId, const IDBIndexMetadata&); 67 void indexCreated(int64_t objectStoreId, const IDBIndexMetadata&);
68 void indexDeleted(int64_t objectStoreId, int64_t indexId); 68 void indexDeleted(int64_t objectStoreId, int64_t indexId);
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 // Keep track of the versionchange events waiting to be fired on this 151 // Keep track of the versionchange events waiting to be fired on this
152 // database so that we can cancel them if the database closes. 152 // database so that we can cancel them if the database closes.
153 WillBeHeapVector<RefPtrWillBeMember<Event>> m_enqueuedEvents; 153 WillBeHeapVector<RefPtrWillBeMember<Event>> m_enqueuedEvents;
154 154
155 Member<IDBDatabaseCallbacks> m_databaseCallbacks; 155 Member<IDBDatabaseCallbacks> m_databaseCallbacks;
156 }; 156 };
157 157
158 } // namespace blink 158 } // namespace blink
159 159
160 #endif // IDBDatabase_h 160 #endif // IDBDatabase_h
OLDNEW
« no previous file with comments | « Source/modules/filesystem/FileWriter.h ('k') | Source/modules/indexeddb/IDBRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698