This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
zhuyujia-webhopper/collector/adg-linux/gen/components/ui_devtools/Forward.h

94 lines
2.6 KiB
C
Raw Normal View History

2022-05-05 20:41:28 +08:00
// Copyright 2016 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 ui_devtools_protocol_Forward_h
#define ui_devtools_protocol_Forward_h
#include "components/ui_devtools/devtools_export.h"
#include "components/ui_devtools/string_util.h"
#include <vector>
namespace ui_devtools {
namespace protocol {
template<typename T> class Array;
class DictionaryValue;
class DispatchResponse;
class ErrorSupport;
class FundamentalValue;
class ListValue;
template<typename T> class Maybe;
class Object;
using Response = DispatchResponse;
class SerializedValue;
class StringValue;
class UberDispatcher;
class Value;
} // namespace ui_devtools
} // namespace protocol
#endif // !defined(ui_devtools_protocol_Forward_h)
// Copyright 2016 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 ui_devtools_protocol_Allocator_h
#define ui_devtools_protocol_Allocator_h
namespace ui_devtools {
namespace protocol {
enum NotNullTagEnum { NotNullLiteral };
#define PROTOCOL_DISALLOW_NEW() \
private: \
void* operator new(size_t) = delete; \
void* operator new(size_t, NotNullTagEnum, void*) = delete; \
void* operator new(size_t, void*) = delete; \
public:
#define PROTOCOL_DISALLOW_COPY(ClassName) \
private: \
ClassName(const ClassName&) = delete; \
ClassName& operator=(const ClassName&) = delete
} // namespace ui_devtools
} // namespace protocol
#endif // !defined(ui_devtools_protocol_Allocator_h)
// Copyright 2016 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 ui_devtools_protocol_FrontendChannel_h
#define ui_devtools_protocol_FrontendChannel_h
namespace ui_devtools {
namespace protocol {
class UI_DEVTOOLS_EXPORT Serializable {
public:
virtual String serialize() = 0;
virtual ~Serializable() = default;
};
class UI_DEVTOOLS_EXPORT FrontendChannel {
public:
virtual ~FrontendChannel() { }
virtual void sendProtocolResponse(int callId, std::unique_ptr<Serializable> message) = 0;
virtual void sendProtocolNotification(std::unique_ptr<Serializable> message) = 0;
virtual void flushProtocolNotifications() = 0;
};
} // namespace ui_devtools
} // namespace protocol
#endif // !defined(ui_devtools_protocol_FrontendChannel_h)