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

Unified Diff: Source/modules/mediastream/MediaDevices.cpp

Issue 1217463003: Oilpan: fix build after r197920 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add trace()s, needed 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/mediastream/MediaDevices.cpp
diff --git a/Source/modules/mediastream/MediaDevices.cpp b/Source/modules/mediastream/MediaDevices.cpp
index 1e91ee4e8c3956a74dad9c2fbdd12e831644bd9b..10c2377dd40d53e3553fc49793c8bde59e4a24fb 100644
--- a/Source/modules/mediastream/MediaDevices.cpp
+++ b/Source/modules/mediastream/MediaDevices.cpp
@@ -32,7 +32,7 @@ ScriptPromise MediaDevices::enumerateDevices(ScriptState* scriptState)
namespace {
-class PromiseSuccessCallback : public NavigatorUserMediaSuccessCallback {
+class PromiseSuccessCallback final : public NavigatorUserMediaSuccessCallback {
public:
PromiseSuccessCallback(PassRefPtrWillBeRawPtr<ScriptPromiseResolver> resolver)
: m_resolver(resolver)
@@ -47,11 +47,18 @@ public:
{
m_resolver->resolve(stream);
}
+
+ DEFINE_INLINE_VIRTUAL_TRACE()
+ {
+ visitor->trace(m_resolver);
+ NavigatorUserMediaSuccessCallback::trace(visitor);
+ }
+
private:
- RefPtrWillBeRawPtr<ScriptPromiseResolver> m_resolver;
+ RefPtrWillBeMember<ScriptPromiseResolver> m_resolver;
};
-class PromiseErrorCallback : public NavigatorUserMediaErrorCallback {
+class PromiseErrorCallback final : public NavigatorUserMediaErrorCallback {
public:
PromiseErrorCallback(PassRefPtrWillBeRawPtr<ScriptPromiseResolver> resolver)
: m_resolver(resolver)
@@ -66,8 +73,15 @@ public:
{
m_resolver->reject(error);
}
+
+ DEFINE_INLINE_VIRTUAL_TRACE()
+ {
+ visitor->trace(m_resolver);
+ NavigatorUserMediaErrorCallback::trace(visitor);
+ }
+
private:
- RefPtrWillBeRawPtr<ScriptPromiseResolver> m_resolver;
+ RefPtrWillBeMember<ScriptPromiseResolver> m_resolver;
};
} // namespace
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698