blob: 586a3919e36a691cc24978dafd5f1b7c857b49e4 (
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
|
// Copyright 2017 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_AUDITS_AGENT_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_INSPECTOR_INSPECTOR_AUDITS_AGENT_H_
#include "base/macros.h"
#include "third_party/blink/renderer/core/core_export.h"
#include "third_party/blink/renderer/core/inspector/inspector_base_agent.h"
#include "third_party/blink/renderer/core/inspector/protocol/Audits.h"
namespace blink {
class InspectorIssue;
class InspectorIssueStorage;
class CORE_EXPORT InspectorAuditsAgent final
: public InspectorBaseAgent<protocol::Audits::Metainfo> {
public:
explicit InspectorAuditsAgent(InspectorNetworkAgent*, InspectorIssueStorage*);
~InspectorAuditsAgent() override;
void Trace(Visitor*) const override;
void InspectorIssueAdded(InspectorIssue*);
// Protocol methods.
protocol::Response enable() override;
protocol::Response disable() override;
void Restore() override;
protocol::Response getEncodedResponse(
const String& request_id,
const String& encoding,
protocol::Maybe<double> quality,
protocol::Maybe<bool> size_only,
protocol::Maybe<protocol::Binary>* out_body,
int* out_original_size,
int* out_encoded_size) override;
private:
void InnerEnable();
Member<InspectorIssueStorage> inspector_issue_storage_;
InspectorAgentState::Boolean enabled_;
Member<InspectorNetworkAgent> network_agent_;
DISALLOW_COPY_AND_ASSIGN(InspectorAuditsAgent);
};
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_CORE_INSPECTOR_INSPECTOR_AUDITS_AGENT_H_
|