OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 #ifndef CHROME_BROWSER_EXTENSIONS_API_RTC_PRIVATE_RTC_PRIVATE_API_H_ | 4 #ifndef CHROME_BROWSER_EXTENSIONS_API_RTC_PRIVATE_RTC_PRIVATE_API_H_ |
5 #define CHROME_BROWSER_EXTENSIONS_API_RTC_PRIVATE_RTC_PRIVATE_API_H_ | 5 #define CHROME_BROWSER_EXTENSIONS_API_RTC_PRIVATE_RTC_PRIVATE_API_H_ |
6 | 6 |
7 class Profile; | 7 class Profile; |
8 | 8 |
9 namespace contacts { | 9 namespace contacts { |
10 class Contact; | 10 class Contact; |
(...skipping 11 matching lines...) Expand all Loading... |
22 LAUNCH_VIDEO, | 22 LAUNCH_VIDEO, |
23 LAUNCH_VOICE, | 23 LAUNCH_VOICE, |
24 }; | 24 }; |
25 | 25 |
26 // Raises chrome.rtcPrivate.onLaunch event which is used to launch the default | 26 // Raises chrome.rtcPrivate.onLaunch event which is used to launch the default |
27 // RTC application in ChromeOS. |action| defines the context of the launch | 27 // RTC application in ChromeOS. |action| defines the context of the launch |
28 // event. Optional |contact| information is passed as event payload if launch | 28 // event. Optional |contact| information is passed as event payload if launch |
29 // event is related to a particilar contact. | 29 // event is related to a particilar contact. |
30 static void DispatchLaunchEvent(Profile* profile, | 30 static void DispatchLaunchEvent(Profile* profile, |
31 LaunchAction action, | 31 LaunchAction action, |
32 contacts::Contact* contact); | 32 const contacts::Contact* contact); |
33 }; | 33 }; |
34 | 34 |
35 } // namespace extensions | 35 } // namespace extensions |
36 | 36 |
37 #endif // CHROME_BROWSER_EXTENSIONS_API_RTC_PRIVATE_RTC_PRIVATE_API_H_ | 37 #endif // CHROME_BROWSER_EXTENSIONS_API_RTC_PRIVATE_RTC_PRIVATE_API_H_ |
OLD | NEW |