| Index: chrome/browser/extensions/api/webrtc_logging_private/webrtc_logging_private_api.h
|
| diff --git a/chrome/browser/extensions/api/webrtc_logging_private/webrtc_logging_private_api.h b/chrome/browser/extensions/api/webrtc_logging_private/webrtc_logging_private_api.h
|
| index 202c7276aecd1aacd791ccc72178e64248d8ecfc..b72a80b84503ad1631f55a71a32a27ab9e883803 100644
|
| --- a/chrome/browser/extensions/api/webrtc_logging_private/webrtc_logging_private_api.h
|
| +++ b/chrome/browser/extensions/api/webrtc_logging_private/webrtc_logging_private_api.h
|
| @@ -5,6 +5,8 @@
|
| #ifndef CHROME_BROWSER_EXTENSIONS_API_WEBRTC_LOGGING_PRIVATE_WEBRTC_LOGGING_PRIVATE_API_H_
|
| #define CHROME_BROWSER_EXTENSIONS_API_WEBRTC_LOGGING_PRIVATE_WEBRTC_LOGGING_PRIVATE_API_H_
|
|
|
| +#include <string>
|
| +
|
| #include "chrome/browser/extensions/chrome_extension_function.h"
|
| #if defined(ENABLE_WEBRTC)
|
| #include "chrome/browser/media/webrtc_logging_handler_host.h"
|
| @@ -69,6 +71,19 @@ class WebrtcLoggingPrivateFunctionWithUploadCallback
|
| #endif
|
| };
|
|
|
| +class WebrtcLoggingPrivateFunctionWithAecDumpStartedCallback
|
| + : public WebrtcLoggingPrivateFunction {
|
| + protected:
|
| + ~WebrtcLoggingPrivateFunctionWithAecDumpStartedCallback() override {}
|
| +
|
| +#if defined(ENABLE_WEBRTC)
|
| + // Must be called on UI thread.
|
| + void FireCallback(bool success,
|
| + const std::string& prefix_path,
|
| + const std::string& error_message);
|
| +#endif
|
| +};
|
| +
|
| class WebrtcLoggingPrivateSetMetaDataFunction
|
| : public WebrtcLoggingPrivateFunctionWithGenericCallback {
|
| public:
|
| @@ -209,6 +224,34 @@ class WebrtcLoggingPrivateStopRtpDumpFunction
|
| bool RunAsync() override;
|
| };
|
|
|
| +class WebrtcLoggingPrivateStartAecDumpFunction
|
| + : public WebrtcLoggingPrivateFunctionWithAecDumpStartedCallback {
|
| + public:
|
| + DECLARE_EXTENSION_FUNCTION("webrtcLoggingPrivate.startAecDump",
|
| + WEBRTCLOGGINGPRIVATE_STARTAECDUMP)
|
| + WebrtcLoggingPrivateStartAecDumpFunction() {}
|
| +
|
| + private:
|
| + ~WebrtcLoggingPrivateStartAecDumpFunction() override {}
|
| +
|
| + // ExtensionFunction overrides.
|
| + bool RunAsync() override;
|
| +};
|
| +
|
| +class WebrtcLoggingPrivateStopAecDumpFunction
|
| + : public WebrtcLoggingPrivateFunctionWithGenericCallback {
|
| + public:
|
| + DECLARE_EXTENSION_FUNCTION("webrtcLoggingPrivate.stopAecDump",
|
| + WEBRTCLOGGINGPRIVATE_STOPAECDUMP)
|
| + WebrtcLoggingPrivateStopAecDumpFunction() {}
|
| +
|
| + private:
|
| + ~WebrtcLoggingPrivateStopAecDumpFunction() override {}
|
| +
|
| + // ExtensionFunction overrides.
|
| + bool RunAsync() override;
|
| +};
|
| +
|
| } // namespace extensions
|
|
|
| #endif // CHROME_BROWSER_EXTENSIONS_API_WEBRTC_LOGGING_PRIVATE_WEBRTC_LOGGING_PRIVATE_API_H_
|
|
|