Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / extensions / api / webrtc_logging_private / webrtc_logging_private_api_stub.cc
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::
18 WebrtcLoggingPrivateSetMetaDataFunction() {}
19
20 WebrtcLoggingPrivateSetMetaDataFunction::
21 ~WebrtcLoggingPrivateSetMetaDataFunction() {}
22
23 bool WebrtcLoggingPrivateSetMetaDataFunction::RunAsync() {
24   SetError(kErrorNotSupported);
25   SendResponse(false);
26   return false;
27 }
28
29 void WebrtcLoggingPrivateSetMetaDataFunction::SetMetaDataCallback(
30     bool success, const std::string& error_message) {}
31
32 WebrtcLoggingPrivateStartFunction::WebrtcLoggingPrivateStartFunction() {}
33
34 WebrtcLoggingPrivateStartFunction::~WebrtcLoggingPrivateStartFunction() {}
35
36 bool WebrtcLoggingPrivateStartFunction::RunAsync() {
37   SetError(kErrorNotSupported);
38   SendResponse(false);
39   return false;
40 }
41
42 void WebrtcLoggingPrivateStartFunction::StartCallback(
43     bool success, const std::string& error_message) {}
44
45 WebrtcLoggingPrivateSetUploadOnRenderCloseFunction::
46 WebrtcLoggingPrivateSetUploadOnRenderCloseFunction() {}
47
48 WebrtcLoggingPrivateSetUploadOnRenderCloseFunction::
49 ~WebrtcLoggingPrivateSetUploadOnRenderCloseFunction() {}
50
51 bool WebrtcLoggingPrivateSetUploadOnRenderCloseFunction::RunAsync() {
52   SetError(kErrorNotSupported);
53   SendResponse(false);
54   return false;
55 }
56
57 WebrtcLoggingPrivateStopFunction::WebrtcLoggingPrivateStopFunction() {}
58
59 WebrtcLoggingPrivateStopFunction::~WebrtcLoggingPrivateStopFunction() {}
60
61 bool WebrtcLoggingPrivateStopFunction::RunAsync() {
62   SetError(kErrorNotSupported);
63   SendResponse(false);
64   return false;
65 }
66
67 void WebrtcLoggingPrivateStopFunction::StopCallback(
68     bool success, const std::string& error_message) {}
69
70 WebrtcLoggingPrivateUploadFunction::WebrtcLoggingPrivateUploadFunction() {}
71
72 WebrtcLoggingPrivateUploadFunction::~WebrtcLoggingPrivateUploadFunction() {}
73
74 bool WebrtcLoggingPrivateUploadFunction::RunAsync() {
75   SetError(kErrorNotSupported);
76   SendResponse(false);
77   return false;
78 }
79
80 void WebrtcLoggingPrivateUploadFunction::UploadCallback(
81     bool success, const std::string& report_id,
82     const std::string& error_message) {
83 }
84
85 WebrtcLoggingPrivateDiscardFunction::WebrtcLoggingPrivateDiscardFunction() {}
86
87 WebrtcLoggingPrivateDiscardFunction::~WebrtcLoggingPrivateDiscardFunction() {}
88
89 bool WebrtcLoggingPrivateDiscardFunction::RunAsync() {
90   SetError(kErrorNotSupported);
91   SendResponse(false);
92   return false;
93 }
94
95 void WebrtcLoggingPrivateDiscardFunction::DiscardCallback(
96     bool success, const std::string& error_message) {}
97
98 WebrtcLoggingPrivateStartRtpDumpFunction::
99     WebrtcLoggingPrivateStartRtpDumpFunction() {
100 }
101
102 WebrtcLoggingPrivateStartRtpDumpFunction::
103     ~WebrtcLoggingPrivateStartRtpDumpFunction() {
104 }
105
106 bool WebrtcLoggingPrivateStartRtpDumpFunction::RunAsync() {
107   SetError(kErrorNotSupported);
108   SendResponse(false);
109   return false;
110 }
111
112 void WebrtcLoggingPrivateStartRtpDumpFunction::StartRtpDumpCallback(
113     bool success,
114     const std::string& error_message) {
115 }
116
117 WebrtcLoggingPrivateStopRtpDumpFunction::
118     WebrtcLoggingPrivateStopRtpDumpFunction() {
119 }
120
121 WebrtcLoggingPrivateStopRtpDumpFunction::
122     ~WebrtcLoggingPrivateStopRtpDumpFunction() {
123 }
124
125 bool WebrtcLoggingPrivateStopRtpDumpFunction::RunAsync() {
126   SetError(kErrorNotSupported);
127   SendResponse(false);
128   return false;
129 }
130
131 void WebrtcLoggingPrivateStopRtpDumpFunction::StopRtpDumpCallback(
132     bool success,
133     const std::string& error_message) {
134 }
135
136 }  // namespace extensions