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

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

Issue 267623003: Adds StartRtpDump and StopRtpDump methods to webrtcLoggingPrivate API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 months 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
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 9bf13269f1d876816e6144c735cf4c4dc12d2156..117b5692dba464bcca8eecb1b9b2e3cd3f2feabf 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
@@ -125,6 +125,40 @@ class WebrtcLoggingPrivateDiscardFunction
void DiscardCallback(bool success, const std::string& error_message);
};
+class WebrtcLoggingPrivateStartRtpDumpFunction
+ : public WebrtcLoggingPrivateTabIdFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("webrtcLoggingPrivate.startRtpDump",
+ WEBRTCLOGGINGPRIVATE_STARTRTPDUMP)
+ WebrtcLoggingPrivateStartRtpDumpFunction();
+
+ private:
+ virtual ~WebrtcLoggingPrivateStartRtpDumpFunction();
+
+ // ExtensionFunction overrides.
+ virtual bool RunImpl() OVERRIDE;
+
+ // Must be called on UI thread.
+ void StartRtpDumpCallback(bool success, const std::string& error_message);
+};
+
+class WebrtcLoggingPrivateStopRtpDumpFunction
+ : public WebrtcLoggingPrivateTabIdFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("webrtcLoggingPrivate.stopRtpDump",
+ WEBRTCLOGGINGPRIVATE_STOPRTPDUMP)
+ WebrtcLoggingPrivateStopRtpDumpFunction();
+
+ private:
+ virtual ~WebrtcLoggingPrivateStopRtpDumpFunction();
+
+ // ExtensionFunction overrides.
+ virtual bool RunImpl() OVERRIDE;
+
+ // Must be called on UI thread.
+ void StopRtpDumpCallback(bool success, const std::string& error_message);
+};
+
} // namespace extensions
#endif // CHROME_BROWSER_EXTENSIONS_API_WEBRTC_LOGGING_PRIVATE_WEBRTC_LOGGING_PRIVATE_API_H_

Powered by Google App Engine
This is Rietveld 408576698