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

Side by Side Diff: third_party/WebKit/Source/modules/indexeddb/IDBRequest.h

Issue 2577053002: ActiveScriptWrappable: GC wrappers in detached ExecutionContexts. (Closed)
Patch Set: component build fix(msvc) Created 4 years 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
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 namespace blink { 51 namespace blink {
52 52
53 class DOMException; 53 class DOMException;
54 class ExceptionState; 54 class ExceptionState;
55 class IDBCursor; 55 class IDBCursor;
56 struct IDBDatabaseMetadata; 56 struct IDBDatabaseMetadata;
57 class IDBValue; 57 class IDBValue;
58 58
59 class MODULES_EXPORT IDBRequest : public EventTargetWithInlineData, 59 class MODULES_EXPORT IDBRequest : public EventTargetWithInlineData,
60 public ActiveScriptWrappable, 60 public ActiveScriptWrappable<IDBRequest>,
61 public SuspendableObject { 61 public SuspendableObject {
62 DEFINE_WRAPPERTYPEINFO(); 62 DEFINE_WRAPPERTYPEINFO();
63 USING_GARBAGE_COLLECTED_MIXIN(IDBRequest); 63 USING_GARBAGE_COLLECTED_MIXIN(IDBRequest);
64 64
65 public: 65 public:
66 static IDBRequest* create(ScriptState*, IDBAny* source, IDBTransaction*); 66 static IDBRequest* create(ScriptState*, IDBAny* source, IDBTransaction*);
67 ~IDBRequest() override; 67 ~IDBRequest() override;
68 DECLARE_VIRTUAL_TRACE(); 68 DECLARE_VIRTUAL_TRACE();
69 69
70 ScriptValue result(ScriptState*, ExceptionState&); 70 ScriptValue result(ScriptState*, ExceptionState&);
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 bool m_resultDirty = true; 188 bool m_resultDirty = true;
189 189
190 // Pointer back to the WebIDBCallbacks that holds a persistent reference to 190 // Pointer back to the WebIDBCallbacks that holds a persistent reference to
191 // this object. 191 // this object.
192 WebIDBCallbacks* m_webCallbacks = nullptr; 192 WebIDBCallbacks* m_webCallbacks = nullptr;
193 }; 193 };
194 194
195 } // namespace blink 195 } // namespace blink
196 196
197 #endif // IDBRequest_h 197 #endif // IDBRequest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698