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

Unified Diff: chrome/browser/extensions/api/rtc_private/rtc_private_api.h

Issue 10919086: Wired chrome.rtcPrivate API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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/rtc_private/rtc_private_api.h
diff --git a/chrome/browser/extensions/api/rtc_private/rtc_private_api.h b/chrome/browser/extensions/api/rtc_private/rtc_private_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..d04d2ba7143eb8c0793afbfdf2a47617696d61fb
--- /dev/null
+++ b/chrome/browser/extensions/api/rtc_private/rtc_private_api.h
@@ -0,0 +1,37 @@
+// Copyright (c) 2012 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_RTC_PRIVATE_RTC_PRIVATE_API_H_
+#define CHROME_BROWSER_EXTENSIONS_API_RTC_PRIVATE_RTC_PRIVATE_API_H_
+
+class Profile;
+
+namespace contacts {
+class Contact;
+}
+
+namespace extensions {
+
+// Implementation of chrome.rtcPrivate API.
+class RtcPrivateApi {
+ public:
+ // Contact launch intent action.
+ enum LaunchAction {
+ LAUNCH_ACTIVATE,
+ LAUNCH_CHAT,
+ LAUNCH_VIDEO,
+ LAUNCH_VOICE,
+ };
+
+ // Raises chrome.rtcPrivate.onLaunch event which is used to launch the default
+ // RTC application in ChromeOS. |action| defines the context of the launch
+ // event. Optional |contact| information is passed as event payload if launch
+ // event is related to a particilar contact.
+ static void RaiseLaunchEvent(Profile* profile,
+ LaunchAction action,
+ contacts::Contact* contact);
+};
+
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_API_RTC_PRIVATE_RTC_PRIVATE_API_H_

Powered by Google App Engine
This is Rietveld 408576698