WebPageDiagnosticLoggingClient.h [plain text]
#ifndef WebPageDiagnosticLoggingClient_h
#define WebPageDiagnosticLoggingClient_h
#include "APIClient.h"
#include "APIDiagnosticLoggingClient.h"
#include "WKPage.h"
#include <WebCore/DiagnosticLoggingResultType.h>
#include <wtf/Forward.h>
namespace API {
template<> struct ClientTraits<WKPageDiagnosticLoggingClientBase> {
typedef std::tuple<WKPageDiagnosticLoggingClientV0, WKPageDiagnosticLoggingClientV1> Versions;
};
}
namespace WebKit {
class WebPageProxy;
class WebPageDiagnosticLoggingClient final : public API::Client<WKPageDiagnosticLoggingClientBase>, public API::DiagnosticLoggingClient {
public:
explicit WebPageDiagnosticLoggingClient(const WKPageDiagnosticLoggingClientBase*);
void logDiagnosticMessage(WebPageProxy*, const String& message, const String& description) override;
void logDiagnosticMessageWithResult(WebPageProxy*, const String& message, const String& description, WebCore::DiagnosticLoggingResultType) override;
void logDiagnosticMessageWithValue(WebPageProxy*, const String& message, const String& description, const String& value) override;
void logDiagnosticMessageWithEnhancedPrivacy(WebPageProxy*, const String& message, const String& description) override;
void logDiagnosticMessageWithValueDictionary(WebKit::WebPageProxy*, const WTF::String& message, const WTF::String& description, Ref<API::Dictionary>&&) override { }
};
}
#endif // WebPageDiagnosticLoggingClient_h