summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/blink/renderer/modules/webaudio/inspector_helper_mixin.cc
blob: 594676284e5857345b635d57a79afbeef75bbe3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "third_party/blink/renderer/modules/webaudio/inspector_helper_mixin.h"

#include "third_party/blink/renderer/platform/wtf/uuid.h"
#include "third_party/blink/renderer/modules/webaudio/audio_graph_tracer.h"

namespace blink {

InspectorHelperMixin::InspectorHelperMixin(
    AudioGraphTracer& graph_tracer, const String& parent_uuid)
    : graph_tracer_(graph_tracer),
      uuid_(WTF::CreateCanonicalUUIDString()),
      parent_uuid_(parent_uuid) {}

void InspectorHelperMixin::Trace(Visitor* visitor) const {
  visitor->Trace(graph_tracer_);
}

}  // namespace blink