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
3 // found in the LICENSE file.
5 // Stub implementation used when WebRTC is not enabled.
7 #include "chrome/browser/extensions/api/webrtc_logging_private/webrtc_logging_private_api.h"
13 const char kErrorNotSupported[] = "Not supported";
17 WebrtcLoggingPrivateSetMetaDataFunction::
18 WebrtcLoggingPrivateSetMetaDataFunction() {}
20 WebrtcLoggingPrivateSetMetaDataFunction::
21 ~WebrtcLoggingPrivateSetMetaDataFunction() {}
23 bool WebrtcLoggingPrivateSetMetaDataFunction::RunAsync() {
24 SetError(kErrorNotSupported);
29 void WebrtcLoggingPrivateSetMetaDataFunction::SetMetaDataCallback(
30 bool success, const std::string& error_message) {}
32 WebrtcLoggingPrivateStartFunction::WebrtcLoggingPrivateStartFunction() {}
34 WebrtcLoggingPrivateStartFunction::~WebrtcLoggingPrivateStartFunction() {}
36 bool WebrtcLoggingPrivateStartFunction::RunAsync() {
37 SetError(kErrorNotSupported);
42 void WebrtcLoggingPrivateStartFunction::StartCallback(
43 bool success, const std::string& error_message) {}
45 WebrtcLoggingPrivateSetUploadOnRenderCloseFunction::
46 WebrtcLoggingPrivateSetUploadOnRenderCloseFunction() {}
48 WebrtcLoggingPrivateSetUploadOnRenderCloseFunction::
49 ~WebrtcLoggingPrivateSetUploadOnRenderCloseFunction() {}
51 bool WebrtcLoggingPrivateSetUploadOnRenderCloseFunction::RunAsync() {
52 SetError(kErrorNotSupported);
57 WebrtcLoggingPrivateStopFunction::WebrtcLoggingPrivateStopFunction() {}
59 WebrtcLoggingPrivateStopFunction::~WebrtcLoggingPrivateStopFunction() {}
61 bool WebrtcLoggingPrivateStopFunction::RunAsync() {
62 SetError(kErrorNotSupported);
67 void WebrtcLoggingPrivateStopFunction::StopCallback(
68 bool success, const std::string& error_message) {}
70 WebrtcLoggingPrivateUploadFunction::WebrtcLoggingPrivateUploadFunction() {}
72 WebrtcLoggingPrivateUploadFunction::~WebrtcLoggingPrivateUploadFunction() {}
74 bool WebrtcLoggingPrivateUploadFunction::RunAsync() {
75 SetError(kErrorNotSupported);
80 void WebrtcLoggingPrivateUploadFunction::UploadCallback(
81 bool success, const std::string& report_id,
82 const std::string& error_message) {
85 WebrtcLoggingPrivateDiscardFunction::WebrtcLoggingPrivateDiscardFunction() {}
87 WebrtcLoggingPrivateDiscardFunction::~WebrtcLoggingPrivateDiscardFunction() {}
89 bool WebrtcLoggingPrivateDiscardFunction::RunAsync() {
90 SetError(kErrorNotSupported);
95 void WebrtcLoggingPrivateDiscardFunction::DiscardCallback(
96 bool success, const std::string& error_message) {}
98 WebrtcLoggingPrivateStartRtpDumpFunction::
99 WebrtcLoggingPrivateStartRtpDumpFunction() {
102 WebrtcLoggingPrivateStartRtpDumpFunction::
103 ~WebrtcLoggingPrivateStartRtpDumpFunction() {
106 bool WebrtcLoggingPrivateStartRtpDumpFunction::RunAsync() {
107 SetError(kErrorNotSupported);
112 void WebrtcLoggingPrivateStartRtpDumpFunction::StartRtpDumpCallback(
114 const std::string& error_message) {
117 WebrtcLoggingPrivateStopRtpDumpFunction::
118 WebrtcLoggingPrivateStopRtpDumpFunction() {
121 WebrtcLoggingPrivateStopRtpDumpFunction::
122 ~WebrtcLoggingPrivateStopRtpDumpFunction() {
125 bool WebrtcLoggingPrivateStopRtpDumpFunction::RunAsync() {
126 SetError(kErrorNotSupported);
131 void WebrtcLoggingPrivateStopRtpDumpFunction::StopRtpDumpCallback(
133 const std::string& error_message) {
136 } // namespace extensions