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

Side by Side Diff: chrome/browser/extensions/api/webrtc_logging_private/webrtc_logging_private_api.cc

Issue 23885002: Add WebRTC logging extension API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 2 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 | Annotate | Revision Log
OLDNEW
(Empty)
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 #include "chrome/browser/extensions/api/webrtc_logging_private/webrtc_logging_pr ivate_api.h"
6
7 #include "base/logging.h"
8 #include "content/public/browser/browser_thread.h"
9
10 namespace extensions {
11
12 namespace SetMetaData = api::webrtc_logging_private::SetMetaData;
13 namespace SetUploadOnRenderClose =
14 api::webrtc_logging_private::SetUploadOnRenderClose;
15
16 WebrtcLoggingPrivateSetMetaDataFunction::
17 WebrtcLoggingPrivateSetMetaDataFunction() {}
18
19 WebrtcLoggingPrivateSetMetaDataFunction::
20 ~WebrtcLoggingPrivateSetMetaDataFunction() {}
21
22 bool WebrtcLoggingPrivateSetMetaDataFunction::RunImpl() {
23 scoped_ptr<SetMetaData::Params> params(SetMetaData::Params::Create(*args_));
24 EXTENSION_FUNCTION_VALIDATE(params.get());
25
26 // TODO(grunell): Implement.
27 NOTIMPLEMENTED();
28 return false;
29 }
30
31 WebrtcLoggingPrivateStartFunction::WebrtcLoggingPrivateStartFunction() {}
32
33 WebrtcLoggingPrivateStartFunction::~WebrtcLoggingPrivateStartFunction() {}
34
35 bool WebrtcLoggingPrivateStartFunction::RunImpl() {
36 // TODO(grunell): Implement.
37 NOTIMPLEMENTED();
38 return false;
39 }
40
41 void WebrtcLoggingPrivateStartFunction::StartCallback(bool success) {
42 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
43 // TODO(grunell): Implement set lastError.
44 NOTIMPLEMENTED();
45 SendResponse(success);
46 }
47
48 WebrtcLoggingPrivateSetUploadOnRenderCloseFunction::
49 WebrtcLoggingPrivateSetUploadOnRenderCloseFunction() {}
50
51 WebrtcLoggingPrivateSetUploadOnRenderCloseFunction::
52 ~WebrtcLoggingPrivateSetUploadOnRenderCloseFunction() {}
53
54 bool WebrtcLoggingPrivateSetUploadOnRenderCloseFunction::RunImpl() {
55 scoped_ptr<SetUploadOnRenderClose::Params> params(
56 SetUploadOnRenderClose::Params::Create(*args_));
57 EXTENSION_FUNCTION_VALIDATE(params.get());
58
59 // TODO(grunell): Implement.
60 NOTIMPLEMENTED();
61 return false;
62 }
63
64 WebrtcLoggingPrivateStopFunction::WebrtcLoggingPrivateStopFunction() {}
65
66 WebrtcLoggingPrivateStopFunction::~WebrtcLoggingPrivateStopFunction() {}
67
68 bool WebrtcLoggingPrivateStopFunction::RunImpl() {
69 // TODO(grunell): Implement.
70 NOTIMPLEMENTED();
71 return false;
72 }
73
74 void WebrtcLoggingPrivateStopFunction::StopCallback(bool success) {
75 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
76 // TODO(grunell): Implement set lastError.
77 NOTIMPLEMENTED();
78 SendResponse(success);
79 }
80
81 WebrtcLoggingPrivateUploadFunction::WebrtcLoggingPrivateUploadFunction() {}
82
83 WebrtcLoggingPrivateUploadFunction::~WebrtcLoggingPrivateUploadFunction() {}
84
85 bool WebrtcLoggingPrivateUploadFunction::RunImpl() {
86 // TODO(grunell): Implement.
87 NOTIMPLEMENTED();
88 return false;
89 }
90
91 void WebrtcLoggingPrivateUploadFunction::UploadCallback(
92 bool success, std::string report_id) {
93 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
94 api::webrtc_logging_private::UploadResult result;
95 result.report_id = report_id;
96 // TODO(grunell): Implement set lastError.
97 NOTIMPLEMENTED();
98 SendResponse(success);
99 }
100
101 WebrtcLoggingPrivateDiscardFunction::WebrtcLoggingPrivateDiscardFunction() {}
102
103 WebrtcLoggingPrivateDiscardFunction::~WebrtcLoggingPrivateDiscardFunction() {}
104
105 bool WebrtcLoggingPrivateDiscardFunction::RunImpl() {
106 // TODO(grunell): Implement.
107 NOTIMPLEMENTED();
108 return false;
109 }
110
111 void WebrtcLoggingPrivateDiscardFunction::DiscardCallback(bool success) {
112 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
113 // TODO(grunell): Implement set lastError.
114 NOTIMPLEMENTED();
115 SendResponse(success);
116 }
117
118 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698