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

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp

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 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 BaseAudioContext* BaseAudioContext::create(Document& document, 82 BaseAudioContext* BaseAudioContext::create(Document& document,
83 ExceptionState& exceptionState) { 83 ExceptionState& exceptionState) {
84 return AudioContext::create(document, exceptionState); 84 return AudioContext::create(document, exceptionState);
85 } 85 }
86 86
87 // FIXME(dominicc): Devolve these constructors to AudioContext 87 // FIXME(dominicc): Devolve these constructors to AudioContext
88 // and OfflineAudioContext respectively. 88 // and OfflineAudioContext respectively.
89 89
90 // Constructor for rendering to the audio hardware. 90 // Constructor for rendering to the audio hardware.
91 BaseAudioContext::BaseAudioContext(Document* document) 91 BaseAudioContext::BaseAudioContext(Document* document)
92 : ActiveScriptWrappable(this), 92 : ActiveScriptWrappable<BaseAudioContext>(this),
93 SuspendableObject(document), 93 SuspendableObject(document),
94 m_destinationNode(nullptr), 94 m_destinationNode(nullptr),
95 m_isCleared(false), 95 m_isCleared(false),
96 m_isResolvingResumePromises(false), 96 m_isResolvingResumePromises(false),
97 m_userGestureRequired(false), 97 m_userGestureRequired(false),
98 m_connectionCount(0), 98 m_connectionCount(0),
99 m_deferredTaskHandler(DeferredTaskHandler::create()), 99 m_deferredTaskHandler(DeferredTaskHandler::create()),
100 m_contextState(Suspended), 100 m_contextState(Suspended),
101 m_closedContextSampleRate(-1), 101 m_closedContextSampleRate(-1),
102 m_periodicWaveSine(nullptr), 102 m_periodicWaveSine(nullptr),
(...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after
881 } 881 }
882 882
883 SecurityOrigin* BaseAudioContext::getSecurityOrigin() const { 883 SecurityOrigin* BaseAudioContext::getSecurityOrigin() const {
884 if (getExecutionContext()) 884 if (getExecutionContext())
885 return getExecutionContext()->getSecurityOrigin(); 885 return getExecutionContext()->getSecurityOrigin();
886 886
887 return nullptr; 887 return nullptr;
888 } 888 }
889 889
890 } // namespace blink 890 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698