OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |