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

Unified Diff: chrome/browser/extensions/api/webrtc_logging_private/webrtc_logging_private_api.h

Issue 23885002: Add WebRTC logging extension API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Small fix. Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/webrtc_logging_private/webrtc_logging_private_api.h
diff --git a/chrome/browser/extensions/api/webrtc_logging_private/webrtc_logging_private_api.h b/chrome/browser/extensions/api/webrtc_logging_private/webrtc_logging_private_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..506ab236956472f122710e3bfc868428bcab06f8
--- /dev/null
+++ b/chrome/browser/extensions/api/webrtc_logging_private/webrtc_logging_private_api.h
@@ -0,0 +1,55 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_EXTENSIONS_API_WEBRTC_LOGGING_PRIVATE_WEBRTC_LOGGING_PRIVATE_API_H_
Finnur 2013/09/03 14:28:32 We've been asked to add an OWNERS file for the API
Henrik Grunell 2013/09/04 13:13:53 Done. Put myself there.
+#define CHROME_BROWSER_EXTENSIONS_API_WEBRTC_LOGGING_PRIVATE_WEBRTC_LOGGING_PRIVATE_API_H_
+
+#include "chrome/browser/extensions/extension_function.h"
+#include "chrome/common/extensions/api/webrtc_logging_private.h"
+
+namespace extensions {
+
+class WebrtcLoggingPrivateStartFunction : public AsyncExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("webrtcLoggingPrivate.start",
+ WEBRTCLOGGINGPRIVATE_START)
+ WebrtcLoggingPrivateStartFunction();
+
+ private:
+ virtual ~WebrtcLoggingPrivateStartFunction();
+
+ // ExtensionFunction overrides.
+ virtual bool RunImpl() OVERRIDE;
+};
+
+class WebrtcLoggingPrivateSetUploadOnRenderCloseFunction
Finnur 2013/09/03 14:28:32 I know this isn't pertinent (yet), but what is the
+ : public AsyncExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("webrtcLoggingPrivate.setUploadOnRenderClose",
+ WEBRTCLOGGINGPRIVATE_SETUPLOADONRENDERCLOSE)
+ WebrtcLoggingPrivateSetUploadOnRenderCloseFunction();
+
+ private:
+ virtual ~WebrtcLoggingPrivateSetUploadOnRenderCloseFunction();
+
+ // ExtensionFunction overrides.
+ virtual bool RunImpl() OVERRIDE;
+};
+
+class WebrtcLoggingPrivateStopFunction : public AsyncExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("webrtcLoggingPrivate.stop",
+ WEBRTCLOGGINGPRIVATE_STOP)
+ WebrtcLoggingPrivateStopFunction();
+
+ private:
+ virtual ~WebrtcLoggingPrivateStopFunction();
+
+ // ExtensionFunction overrides.
+ virtual bool RunImpl() OVERRIDE;
+};
+
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_API_WEBRTC_LOGGING_PRIVATE_WEBRTC_LOGGING_PRIVATE_API_H_

Powered by Google App Engine
This is Rietveld 408576698