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

Side by Side Diff: third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 void releasePeerConnectionHandler() override; 182 void releasePeerConnectionHandler() override;
183 void closePeerConnection() override; 183 void closePeerConnection() override;
184 184
185 // EventTarget 185 // EventTarget
186 const AtomicString& interfaceName() const override; 186 const AtomicString& interfaceName() const override;
187 ExecutionContext* getExecutionContext() const override; 187 ExecutionContext* getExecutionContext() const override;
188 188
189 // SuspendableObject 189 // SuspendableObject
190 void suspend() override; 190 void suspend() override;
191 void resume() override; 191 void resume() override;
192 void contextDestroyed() override; 192 void contextDestroyed(ExecutionContext*) override;
193 193
194 // ScriptWrappable 194 // ScriptWrappable
195 // We keep the this object alive until either stopped or closed. 195 // We keep the this object alive until either stopped or closed.
196 bool hasPendingActivity() const final { return !m_closed && !m_stopped; } 196 bool hasPendingActivity() const final { return !m_closed && !m_stopped; }
197 197
198 DECLARE_VIRTUAL_TRACE(); 198 DECLARE_VIRTUAL_TRACE();
199 199
200 private: 200 private:
201 typedef Function<bool()> BoolFunction; 201 typedef Function<bool()> BoolFunction;
202 class EventWrapper : public GarbageCollectedFinalized<EventWrapper> { 202 class EventWrapper : public GarbageCollectedFinalized<EventWrapper> {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 255
256 bool m_stopped; 256 bool m_stopped;
257 bool m_closed; 257 bool m_closed;
258 258
259 bool m_hasDataChannels; // For RAPPOR metrics 259 bool m_hasDataChannels; // For RAPPOR metrics
260 }; 260 };
261 261
262 } // namespace blink 262 } // namespace blink
263 263
264 #endif // RTCPeerConnection_h 264 #endif // RTCPeerConnection_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698