• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
4 //
5 // Stub implementation used when WebRTC is not enabled.
6 
7 #include "chrome/browser/extensions/api/webrtc_logging_private/webrtc_logging_private_api.h"
8 
9 namespace extensions {
10 
11 namespace {
12 
13 const char kErrorNotSupported[] = "Not supported";
14 
15 }  // namespace
16 
17 WebrtcLoggingPrivateSetMetaDataFunction::
WebrtcLoggingPrivateSetMetaDataFunction()18 WebrtcLoggingPrivateSetMetaDataFunction() {}
19 
20 WebrtcLoggingPrivateSetMetaDataFunction::
~WebrtcLoggingPrivateSetMetaDataFunction()21 ~WebrtcLoggingPrivateSetMetaDataFunction() {}
22 
RunAsync()23 bool WebrtcLoggingPrivateSetMetaDataFunction::RunAsync() {
24   SetError(kErrorNotSupported);
25   SendResponse(false);
26   return false;
27 }
28 
SetMetaDataCallback(bool success,const std::string & error_message)29 void WebrtcLoggingPrivateSetMetaDataFunction::SetMetaDataCallback(
30     bool success, const std::string& error_message) {}
31 
WebrtcLoggingPrivateStartFunction()32 WebrtcLoggingPrivateStartFunction::WebrtcLoggingPrivateStartFunction() {}
33 
~WebrtcLoggingPrivateStartFunction()34 WebrtcLoggingPrivateStartFunction::~WebrtcLoggingPrivateStartFunction() {}
35 
RunAsync()36 bool WebrtcLoggingPrivateStartFunction::RunAsync() {
37   SetError(kErrorNotSupported);
38   SendResponse(false);
39   return false;
40 }
41 
StartCallback(bool success,const std::string & error_message)42 void WebrtcLoggingPrivateStartFunction::StartCallback(
43     bool success, const std::string& error_message) {}
44 
45 WebrtcLoggingPrivateSetUploadOnRenderCloseFunction::
WebrtcLoggingPrivateSetUploadOnRenderCloseFunction()46 WebrtcLoggingPrivateSetUploadOnRenderCloseFunction() {}
47 
48 WebrtcLoggingPrivateSetUploadOnRenderCloseFunction::
~WebrtcLoggingPrivateSetUploadOnRenderCloseFunction()49 ~WebrtcLoggingPrivateSetUploadOnRenderCloseFunction() {}
50 
RunAsync()51 bool WebrtcLoggingPrivateSetUploadOnRenderCloseFunction::RunAsync() {
52   SetError(kErrorNotSupported);
53   SendResponse(false);
54   return false;
55 }
56 
WebrtcLoggingPrivateStopFunction()57 WebrtcLoggingPrivateStopFunction::WebrtcLoggingPrivateStopFunction() {}
58 
~WebrtcLoggingPrivateStopFunction()59 WebrtcLoggingPrivateStopFunction::~WebrtcLoggingPrivateStopFunction() {}
60 
RunAsync()61 bool WebrtcLoggingPrivateStopFunction::RunAsync() {
62   SetError(kErrorNotSupported);
63   SendResponse(false);
64   return false;
65 }
66 
StopCallback(bool success,const std::string & error_message)67 void WebrtcLoggingPrivateStopFunction::StopCallback(
68     bool success, const std::string& error_message) {}
69 
WebrtcLoggingPrivateUploadFunction()70 WebrtcLoggingPrivateUploadFunction::WebrtcLoggingPrivateUploadFunction() {}
71 
~WebrtcLoggingPrivateUploadFunction()72 WebrtcLoggingPrivateUploadFunction::~WebrtcLoggingPrivateUploadFunction() {}
73 
RunAsync()74 bool WebrtcLoggingPrivateUploadFunction::RunAsync() {
75   SetError(kErrorNotSupported);
76   SendResponse(false);
77   return false;
78 }
79 
UploadCallback(bool success,const std::string & report_id,const std::string & error_message)80 void WebrtcLoggingPrivateUploadFunction::UploadCallback(
81     bool success, const std::string& report_id,
82     const std::string& error_message) {
83 }
84 
WebrtcLoggingPrivateDiscardFunction()85 WebrtcLoggingPrivateDiscardFunction::WebrtcLoggingPrivateDiscardFunction() {}
86 
~WebrtcLoggingPrivateDiscardFunction()87 WebrtcLoggingPrivateDiscardFunction::~WebrtcLoggingPrivateDiscardFunction() {}
88 
RunAsync()89 bool WebrtcLoggingPrivateDiscardFunction::RunAsync() {
90   SetError(kErrorNotSupported);
91   SendResponse(false);
92   return false;
93 }
94 
DiscardCallback(bool success,const std::string & error_message)95 void WebrtcLoggingPrivateDiscardFunction::DiscardCallback(
96     bool success, const std::string& error_message) {}
97 
98 WebrtcLoggingPrivateStartRtpDumpFunction::
WebrtcLoggingPrivateStartRtpDumpFunction()99     WebrtcLoggingPrivateStartRtpDumpFunction() {
100 }
101 
102 WebrtcLoggingPrivateStartRtpDumpFunction::
~WebrtcLoggingPrivateStartRtpDumpFunction()103     ~WebrtcLoggingPrivateStartRtpDumpFunction() {
104 }
105 
RunAsync()106 bool WebrtcLoggingPrivateStartRtpDumpFunction::RunAsync() {
107   SetError(kErrorNotSupported);
108   SendResponse(false);
109   return false;
110 }
111 
StartRtpDumpCallback(bool success,const std::string & error_message)112 void WebrtcLoggingPrivateStartRtpDumpFunction::StartRtpDumpCallback(
113     bool success,
114     const std::string& error_message) {
115 }
116 
117 WebrtcLoggingPrivateStopRtpDumpFunction::
WebrtcLoggingPrivateStopRtpDumpFunction()118     WebrtcLoggingPrivateStopRtpDumpFunction() {
119 }
120 
121 WebrtcLoggingPrivateStopRtpDumpFunction::
~WebrtcLoggingPrivateStopRtpDumpFunction()122     ~WebrtcLoggingPrivateStopRtpDumpFunction() {
123 }
124 
RunAsync()125 bool WebrtcLoggingPrivateStopRtpDumpFunction::RunAsync() {
126   SetError(kErrorNotSupported);
127   SendResponse(false);
128   return false;
129 }
130 
StopRtpDumpCallback(bool success,const std::string & error_message)131 void WebrtcLoggingPrivateStopRtpDumpFunction::StopRtpDumpCallback(
132     bool success,
133     const std::string& error_message) {
134 }
135 
136 }  // namespace extensions
137