blob: babbe58fc167840d799320114759a149e19da4e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
// 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.
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_INSPECTOR_INSPECTOR_MEDIA_AGENT_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_INSPECTOR_INSPECTOR_MEDIA_AGENT_H_
#include <memory>
#include <vector>
#include "third_party/blink/public/web/web_media_inspector.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/inspector/inspected_frames.h"
#include "third_party/blink/renderer/core/inspector/inspector_base_agent.h"
#include "third_party/blink/renderer/core/inspector/protocol/Media.h"
namespace blink {
class CORE_EXPORT InspectorMediaAgent final
: public InspectorBaseAgent<protocol::Media::Metainfo> {
public:
explicit InspectorMediaAgent(InspectedFrames*);
~InspectorMediaAgent() override;
// BaseAgent methods.
void Restore() override;
// Protocol receive messages.
protocol::Response enable() override;
protocol::Response disable() override;
// Protocol send messages.
void PlayerErrorsRaised(const WebString&,
const Vector<InspectorPlayerError>&);
void PlayerEventsAdded(const WebString&, const Vector<InspectorPlayerEvent>&);
void PlayerMessagesLogged(const WebString&,
const Vector<InspectorPlayerMessage>&);
void PlayerPropertiesChanged(const WebString&,
const Vector<InspectorPlayerProperty>&);
void PlayersCreated(const Vector<WebString>&);
// blink-gc methods.
void Trace(Visitor*) const override;
private:
void RegisterAgent();
Member<LocalFrame> local_frame_;
InspectorAgentState::Boolean enabled_;
DISALLOW_COPY_AND_ASSIGN(InspectorMediaAgent);
};
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_CORE_INSPECTOR_INSPECTOR_MEDIA_AGENT_H_
|