Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1334)

Unified Diff: chrome/browser/extensions/api/webrtc_logging_private/webrtc_logging_private_api.h

Issue 1530863002: Allow audio debug recordings through a private API extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/api/webrtc_logging_private/webrtc_logging_private_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..ff5553b98f26ba1a79261650ff7f7648b3c928df 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,20 @@ class WebrtcLoggingPrivateFunctionWithUploadCallback
#endif
};
+class WebrtcLoggingPrivateFunctionWithAudioDebugRecordingsCallback
+ : public WebrtcLoggingPrivateFunction {
+ protected:
+ ~WebrtcLoggingPrivateFunctionWithAudioDebugRecordingsCallback() override {}
+
+#if defined(ENABLE_WEBRTC)
+ // Must be called on UI thread.
+ void FireErrorCallback(const std::string& error_message);
+ void FireCallback(const std::string& prefix_path,
+ bool did_stop,
+ bool did_manual_stop);
+#endif
+};
+
class WebrtcLoggingPrivateSetMetaDataFunction
: public WebrtcLoggingPrivateFunctionWithGenericCallback {
public:
@@ -209,6 +225,34 @@ class WebrtcLoggingPrivateStopRtpDumpFunction
bool RunAsync() override;
};
+class WebrtcLoggingPrivateStartAudioDebugRecordingsFunction
+ : public WebrtcLoggingPrivateFunctionWithAudioDebugRecordingsCallback {
+ public:
+ DECLARE_EXTENSION_FUNCTION("webrtcLoggingPrivate.startAudioDebugRecordings",
+ WEBRTCLOGGINGPRIVATE_STARTAUDIODEBUGRECORDINGS)
+ WebrtcLoggingPrivateStartAudioDebugRecordingsFunction() {}
+
+ private:
+ ~WebrtcLoggingPrivateStartAudioDebugRecordingsFunction() override {}
+
+ // ExtensionFunction overrides.
+ bool RunAsync() override;
+};
+
+class WebrtcLoggingPrivateStopAudioDebugRecordingsFunction
+ : public WebrtcLoggingPrivateFunctionWithAudioDebugRecordingsCallback {
+ public:
+ DECLARE_EXTENSION_FUNCTION("webrtcLoggingPrivate.stopAudioDebugRecordings",
+ WEBRTCLOGGINGPRIVATE_STOPAUDIODEBUGRECORDINGS)
+ WebrtcLoggingPrivateStopAudioDebugRecordingsFunction() {}
+
+ private:
+ ~WebrtcLoggingPrivateStopAudioDebugRecordingsFunction() override {}
+
+ // ExtensionFunction overrides.
+ bool RunAsync() override;
+};
+
} // namespace extensions
#endif // CHROME_BROWSER_EXTENSIONS_API_WEBRTC_LOGGING_PRIVATE_WEBRTC_LOGGING_PRIVATE_API_H_
« no previous file with comments | « no previous file | chrome/browser/extensions/api/webrtc_logging_private/webrtc_logging_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698