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 // The ChromeNotifierService works together with sync to maintain the state of | 5 // The ChromeNotifierService works together with sync to maintain the state of |
6 // user notifications, which can then be presented in the notification center, | 6 // user notifications, which can then be presented in the notification center, |
7 // via the Notification UI Manager. | 7 // via the Notification UI Manager. |
8 | 8 |
9 #include "chrome/browser/notifications/sync_notifier/chrome_notifier_service.h" | 9 #include "chrome/browser/notifications/sync_notifier/chrome_notifier_service.h" |
10 | 10 |
11 #include "chrome/browser/notifications/desktop_notification_service.h" | 11 #include "chrome/browser/notifications/desktop_notification_service.h" |
12 #include "chrome/browser/notifications/desktop_notification_service_factory.h" | 12 #include "chrome/browser/notifications/desktop_notification_service_factory.h" |
13 #include "chrome/browser/notifications/notification.h" | 13 #include "chrome/browser/notifications/notification.h" |
14 #include "chrome/browser/notifications/notification_ui_manager.h" | 14 #include "chrome/browser/notifications/notification_ui_manager.h" |
15 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
16 #include "googleurl/src/gurl.h" | |
17 #include "grit/ui_strings.h" | 16 #include "grit/ui_strings.h" |
18 #include "sync/api/sync_change.h" | 17 #include "sync/api/sync_change.h" |
19 #include "sync/api/sync_change_processor.h" | 18 #include "sync/api/sync_change_processor.h" |
20 #include "sync/api/sync_error_factory.h" | 19 #include "sync/api/sync_error_factory.h" |
21 #include "sync/protocol/sync.pb.h" | 20 #include "sync/protocol/sync.pb.h" |
22 #include "sync/protocol/synced_notification_specifics.pb.h" | 21 #include "sync/protocol/synced_notification_specifics.pb.h" |
23 #include "third_party/WebKit/public/web/WebTextDirection.h" | 22 #include "third_party/WebKit/public/web/WebTextDirection.h" |
24 #include "ui/base/l10n/l10n_util.h" | 23 #include "ui/base/l10n/l10n_util.h" |
25 #include "ui/message_center/notifier_settings.h" | 24 #include "ui/message_center/notifier_settings.h" |
26 #include "url/gurl.h" | 25 #include "url/gurl.h" |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 // either arrives or times out. | 334 // either arrives or times out. |
336 notification->StartBitmapFetch(); | 335 notification->StartBitmapFetch(); |
337 } | 336 } |
338 | 337 |
339 void ChromeNotifierService::OnSyncedNotificationServiceEnabled( | 338 void ChromeNotifierService::OnSyncedNotificationServiceEnabled( |
340 const std::string& notifier_id, bool enabled) { | 339 const std::string& notifier_id, bool enabled) { |
341 // TODO(petewil): start/stop syncing | 340 // TODO(petewil): start/stop syncing |
342 } | 341 } |
343 | 342 |
344 } // namespace notifier | 343 } // namespace notifier |
OLD | NEW |