OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/notification_provider/notification_provi der_api.h" | 5 #include "chrome/browser/extensions/api/notification_provider/notification_provi der_api.h" |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
8 #include "base/guid.h" | 8 #include "base/guid.h" |
9 #include "base/rand_util.h" | 9 #include "base/rand_util.h" |
10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "chrome/browser/browser_process.h" | 12 #include "chrome/browser/browser_process.h" |
13 #include "chrome/browser/notifications/desktop_notification_service.h" | 13 #include "chrome/browser/notifications/desktop_notification_service.h" |
14 #include "chrome/browser/notifications/desktop_notification_service_factory.h" | 14 #include "chrome/browser/notifications/desktop_notification_service_factory.h" |
15 #include "chrome/browser/notifications/notification.h" | 15 #include "chrome/browser/notifications/notification.h" |
16 #include "chrome/browser/notifications/notification_ui_manager.h" | 16 #include "chrome/browser/notifications/notification_ui_manager.h" |
17 #include "chrome/common/chrome_version_info.h" | 17 #include "chrome/common/channel_info.h" |
brettw
2015/07/31 21:13:15
Ditto
| |
18 #include "extensions/browser/event_router.h" | 18 #include "extensions/browser/event_router.h" |
19 #include "extensions/common/extension.h" | 19 #include "extensions/common/extension.h" |
20 #include "extensions/common/features/feature.h" | 20 #include "extensions/common/features/feature.h" |
21 #include "ui/base/layout.h" | 21 #include "ui/base/layout.h" |
22 #include "ui/message_center/message_center.h" | 22 #include "ui/message_center/message_center.h" |
23 #include "ui/message_center/notifier_settings.h" | 23 #include "ui/message_center/notifier_settings.h" |
24 #include "url/gurl.h" | 24 #include "url/gurl.h" |
25 | 25 |
26 namespace extensions { | 26 namespace extensions { |
27 | 27 |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
295 | 295 |
296 ExtensionFunction::ResponseAction | 296 ExtensionFunction::ResponseAction |
297 NotificationProviderGetAllNotifiersFunction::Run() { | 297 NotificationProviderGetAllNotifiersFunction::Run() { |
298 std::vector<linked_ptr<api::notification_provider::Notifier> > notifiers; | 298 std::vector<linked_ptr<api::notification_provider::Notifier> > notifiers; |
299 | 299 |
300 return RespondNow(ArgumentList( | 300 return RespondNow(ArgumentList( |
301 api::notification_provider::GetAllNotifiers::Results::Create(notifiers))); | 301 api::notification_provider::GetAllNotifiers::Results::Create(notifiers))); |
302 } | 302 } |
303 | 303 |
304 } // namespace extensions | 304 } // namespace extensions |
OLD | NEW |