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 | 4 |
5 #include "chrome/browser/extensions/api/rtc_private/rtc_private_api.h" | 5 #include "chrome/browser/extensions/api/rtc_private/rtc_private_api.h" |
6 | 6 |
7 #include "base/json/json_writer.h" | 7 #include "base/json/json_writer.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "base/stringprintf.h" | 9 #include "base/stringprintf.h" |
| 10 #include "base/strings/utf_string_conversions.h" |
10 #include "base/time.h" | 11 #include "base/time.h" |
11 #include "base/utf_string_conversions.h" | |
12 #include "base/value_conversions.h" | 12 #include "base/value_conversions.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "chrome/browser/chromeos/contacts/contact.pb.h" | 14 #include "chrome/browser/chromeos/contacts/contact.pb.h" |
15 #include "chrome/browser/extensions/event_router.h" | 15 #include "chrome/browser/extensions/event_router.h" |
16 #include "chrome/browser/extensions/extension_service.h" | 16 #include "chrome/browser/extensions/extension_service.h" |
17 #include "chrome/browser/extensions/extension_system.h" | 17 #include "chrome/browser/extensions/extension_system.h" |
18 #include "chrome/browser/extensions/state_store.h" | 18 #include "chrome/browser/extensions/state_store.h" |
19 #include "chrome/browser/profiles/profile.h" | 19 #include "chrome/browser/profiles/profile.h" |
20 #include "chrome/common/chrome_notification_types.h" | 20 #include "chrome/common/chrome_notification_types.h" |
21 #include "chrome/common/extensions/api/rtc_private.h" | 21 #include "chrome/common/extensions/api/rtc_private.h" |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 &launch_data.intent.data.additional_properties); | 103 &launch_data.intent.data.additional_properties); |
104 launch_data.intent.type = kMimeTypeJson; | 104 launch_data.intent.type = kMimeTypeJson; |
105 scoped_ptr<Event> event(new Event( | 105 scoped_ptr<Event> event(new Event( |
106 kOnLaunchEvent, api::rtc_private::OnLaunch::Create(launch_data))); | 106 kOnLaunchEvent, api::rtc_private::OnLaunch::Create(launch_data))); |
107 event->restrict_to_profile = profile; | 107 event->restrict_to_profile = profile; |
108 ExtensionSystem::Get(profile)->event_router()->BroadcastEvent(event.Pass()); | 108 ExtensionSystem::Get(profile)->event_router()->BroadcastEvent(event.Pass()); |
109 } | 109 } |
110 } | 110 } |
111 | 111 |
112 } // namespace extensions | 112 } // namespace extensions |
OLD | NEW |