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/notifications/notifications_api.h" | 5 #include "chrome/browser/extensions/api/notifications/notifications_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 "base/time/time.h" | 12 #include "base/time/time.h" |
13 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
14 #include "chrome/browser/notifications/desktop_notification_service.h" | 14 #include "chrome/browser/notifications/desktop_notification_service.h" |
15 #include "chrome/browser/notifications/desktop_notification_service_factory.h" | 15 #include "chrome/browser/notifications/desktop_notification_service_factory.h" |
16 #include "chrome/browser/notifications/notification.h" | 16 #include "chrome/browser/notifications/notification.h" |
17 #include "chrome/browser/notifications/notification_conversion_helper.h" | 17 #include "chrome/browser/notifications/notification_conversion_helper.h" |
18 #include "chrome/browser/notifications/notification_ui_manager.h" | 18 #include "chrome/browser/notifications/notification_ui_manager.h" |
19 #include "chrome/browser/profiles/profile.h" | 19 #include "chrome/browser/profiles/profile.h" |
20 #include "chrome/common/chrome_version_info.h" | 20 #include "chrome/common/channel_info.h" |
brettw
2015/07/31 21:13:15
Ditto
| |
21 #include "chrome/common/extensions/api/notifications/notification_style.h" | 21 #include "chrome/common/extensions/api/notifications/notification_style.h" |
22 #include "components/keyed_service/content/browser_context_keyed_service_shutdow n_notifier_factory.h" | 22 #include "components/keyed_service/content/browser_context_keyed_service_shutdow n_notifier_factory.h" |
23 #include "components/keyed_service/core/keyed_service_shutdown_notifier.h" | 23 #include "components/keyed_service/core/keyed_service_shutdown_notifier.h" |
24 #include "content/public/browser/render_process_host.h" | 24 #include "content/public/browser/render_process_host.h" |
25 #include "content/public/browser/render_view_host.h" | 25 #include "content/public/browser/render_view_host.h" |
26 #include "content/public/browser/web_contents.h" | 26 #include "content/public/browser/web_contents.h" |
27 #include "extensions/browser/event_router.h" | 27 #include "extensions/browser/event_router.h" |
28 #include "extensions/browser/extension_system_provider.h" | 28 #include "extensions/browser/extension_system_provider.h" |
29 #include "extensions/browser/extensions_browser_client.h" | 29 #include "extensions/browser/extensions_browser_client.h" |
30 #include "extensions/common/extension.h" | 30 #include "extensions/common/extension.h" |
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
685 ? api::notifications::PERMISSION_LEVEL_GRANTED | 685 ? api::notifications::PERMISSION_LEVEL_GRANTED |
686 : api::notifications::PERMISSION_LEVEL_DENIED; | 686 : api::notifications::PERMISSION_LEVEL_DENIED; |
687 | 687 |
688 SetResult(new base::StringValue(api::notifications::ToString(result))); | 688 SetResult(new base::StringValue(api::notifications::ToString(result))); |
689 SendResponse(true); | 689 SendResponse(true); |
690 | 690 |
691 return true; | 691 return true; |
692 } | 692 } |
693 | 693 |
694 } // namespace extensions | 694 } // namespace extensions |
OLD | NEW |