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

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: sync Created 6 years, 7 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
« 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 c6b6606bd3fd3ad88a1c4232fd367086a0bbf690..3f80538624186dfaaf307a9572dea63cee85288f 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 RunAsync() 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 RunAsync() 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_
« 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