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

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

Issue 2629593004: Disambiguate LifecycleObserver::contextDestroyed (Closed)
Patch Set: temp Created 3 years, 11 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
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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 void onAbort(int64_t, DOMException*); 117 void onAbort(int64_t, DOMException*);
118 void onComplete(int64_t); 118 void onComplete(int64_t);
119 void onChanges(const std::unordered_map<int32_t, std::vector<int32_t>>& 119 void onChanges(const std::unordered_map<int32_t, std::vector<int32_t>>&
120 observation_index_map, 120 observation_index_map,
121 const WebVector<WebIDBObservation>& observations); 121 const WebVector<WebIDBObservation>& observations);
122 122
123 // ScriptWrappable 123 // ScriptWrappable
124 bool hasPendingActivity() const final; 124 bool hasPendingActivity() const final;
125 125
126 // ContextLifecycleObserver 126 // ContextLifecycleObserver
127 void contextDestroyed() override; 127 void contextDestroyed(ExecutionContext*) override;
128 128
129 // EventTarget 129 // EventTarget
130 const AtomicString& interfaceName() const override; 130 const AtomicString& interfaceName() const override;
131 ExecutionContext* getExecutionContext() const override; 131 ExecutionContext* getExecutionContext() const override;
132 132
133 bool isClosePending() const { return m_closePending; } 133 bool isClosePending() const { return m_closePending; }
134 void forceClose(); 134 void forceClose();
135 const IDBDatabaseMetadata& metadata() const { return m_metadata; } 135 const IDBDatabaseMetadata& metadata() const { return m_metadata; }
136 void enqueueEvent(Event*); 136 void enqueueEvent(Event*);
137 137
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 // Keep track of the versionchange events waiting to be fired on this 195 // Keep track of the versionchange events waiting to be fired on this
196 // database so that we can cancel them if the database closes. 196 // database so that we can cancel them if the database closes.
197 HeapVector<Member<Event>> m_enqueuedEvents; 197 HeapVector<Member<Event>> m_enqueuedEvents;
198 198
199 Member<IDBDatabaseCallbacks> m_databaseCallbacks; 199 Member<IDBDatabaseCallbacks> m_databaseCallbacks;
200 }; 200 };
201 201
202 } // namespace blink 202 } // namespace blink
203 203
204 #endif // IDBDatabase_h 204 #endif // IDBDatabase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698