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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEBRTC_LOGGING_PRIVATE_WEBRTC_LOGGING_PRIV ATE_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEBRTC_LOGGING_PRIVATE_WEBRTC_LOGGING_PRIV ATE_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_WEBRTC_LOGGING_PRIVATE_WEBRTC_LOGGING_PRIV ATE_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_WEBRTC_LOGGING_PRIVATE_WEBRTC_LOGGING_PRIV ATE_API_H_
7 7
8 #include "chrome/browser/extensions/chrome_extension_function.h" 8 #include "chrome/browser/extensions/chrome_extension_function.h"
9 #include "chrome/common/extensions/api/webrtc_logging_private.h" 9 #include "chrome/common/extensions/api/webrtc_logging_private.h"
10 10
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 private: 118 private:
119 virtual ~WebrtcLoggingPrivateDiscardFunction(); 119 virtual ~WebrtcLoggingPrivateDiscardFunction();
120 120
121 // ExtensionFunction overrides. 121 // ExtensionFunction overrides.
122 virtual bool RunAsync() OVERRIDE; 122 virtual bool RunAsync() OVERRIDE;
123 123
124 // Must be called on UI thread. 124 // Must be called on UI thread.
125 void DiscardCallback(bool success, const std::string& error_message); 125 void DiscardCallback(bool success, const std::string& error_message);
126 }; 126 };
127 127
128 class WebrtcLoggingPrivateStartRtpDumpFunction
129 : public WebrtcLoggingPrivateTabIdFunction {
130 public:
131 DECLARE_EXTENSION_FUNCTION("webrtcLoggingPrivate.startRtpDump",
132 WEBRTCLOGGINGPRIVATE_STARTRTPDUMP)
133 WebrtcLoggingPrivateStartRtpDumpFunction();
134
135 private:
136 virtual ~WebrtcLoggingPrivateStartRtpDumpFunction();
137
138 // ExtensionFunction overrides.
139 virtual bool RunAsync() OVERRIDE;
140
141 // Must be called on UI thread.
142 void StartRtpDumpCallback(bool success, const std::string& error_message);
143 };
144
145 class WebrtcLoggingPrivateStopRtpDumpFunction
146 : public WebrtcLoggingPrivateTabIdFunction {
147 public:
148 DECLARE_EXTENSION_FUNCTION("webrtcLoggingPrivate.stopRtpDump",
149 WEBRTCLOGGINGPRIVATE_STOPRTPDUMP)
150 WebrtcLoggingPrivateStopRtpDumpFunction();
151
152 private:
153 virtual ~WebrtcLoggingPrivateStopRtpDumpFunction();
154
155 // ExtensionFunction overrides.
156 virtual bool RunAsync() OVERRIDE;
157
158 // Must be called on UI thread.
159 void StopRtpDumpCallback(bool success, const std::string& error_message);
160 };
161
128 } // namespace extensions 162 } // namespace extensions
129 163
130 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBRTC_LOGGING_PRIVATE_WEBRTC_LOGGING_P RIVATE_API_H_ 164 #endif // CHROME_BROWSER_EXTENSIONS_API_WEBRTC_LOGGING_PRIVATE_WEBRTC_LOGGING_P RIVATE_API_H_
OLDNEW
« 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