| OLD | NEW | 
|   1 // Copyright 2016 The Chromium Authors. All rights reserved. |   1 // Copyright 2016 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 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_DISPLAY_SERVICE_H_ |   5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_DISPLAY_SERVICE_H_ | 
|   6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_DISPLAY_SERVICE_H_ |   6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_DISPLAY_SERVICE_H_ | 
|   7  |   7  | 
|   8 #include <set> |   8 #include <set> | 
|   9 #include <string> |   9 #include <string> | 
|  10  |  10  | 
|  11 #include "base/macros.h" |  11 #include "base/macros.h" | 
|  12 #include "chrome/browser/notifications/notification_common.h" |  12 #include "chrome/browser/notifications/notification_common.h" | 
|  13 #include "components/keyed_service/core/keyed_service.h" |  13 #include "components/keyed_service/core/keyed_service.h" | 
|  14  |  14  | 
|  15 class Notification; |  15 class Notification; | 
|  16 class NotificationPlatformBridge; |  | 
|  17 class Profile; |  16 class Profile; | 
|  18  |  17  | 
|  19 // Profile-bound service that enables notifications to be displayed and |  18 // Profile-bound service that enables notifications to be displayed and | 
|  20 // interacted with on the user's screen, orthogonal of whether this |  19 // interacted with on the user's screen, orthogonal of whether this | 
|  21 // functionality is provided by the browser or by the operating system. An |  20 // functionality is provided by the browser or by the operating system. An | 
|  22 // instance can be retrieved through the NotificationDisplayServiceFactory. |  21 // instance can be retrieved through the NotificationDisplayServiceFactory. | 
|  23 // |  22 // | 
|  24 // TODO(peter): Add a NotificationHandler mechanism for registering listeners. |  23 // TODO(peter): Add a NotificationHandler mechanism for registering listeners. | 
|  25 // TODO(miguelg): Remove the SupportsNotificationCenter method. |  24 // TODO(miguelg): Remove the SupportsNotificationCenter method. | 
|  26 class NotificationDisplayService : public KeyedService { |  25 class NotificationDisplayService : public KeyedService { | 
| (...skipping 12 matching lines...) Expand all  Loading... | 
|  39  |  38  | 
|  40   // Returns whether the implementation can retrieve a list of currently visible |  39   // Returns whether the implementation can retrieve a list of currently visible | 
|  41   // notifications and stores them in |*notification_ids| when possible. |  40   // notifications and stores them in |*notification_ids| when possible. | 
|  42   virtual bool GetDisplayed(std::set<std::string>* notifications) const = 0; |  41   virtual bool GetDisplayed(std::set<std::string>* notifications) const = 0; | 
|  43  |  42  | 
|  44  private: |  43  private: | 
|  45   DISALLOW_COPY_AND_ASSIGN(NotificationDisplayService); |  44   DISALLOW_COPY_AND_ASSIGN(NotificationDisplayService); | 
|  46 }; |  45 }; | 
|  47  |  46  | 
|  48 #endif  // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_DISPLAY_SERVICE_H_ |  47 #endif  // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_DISPLAY_SERVICE_H_ | 
| OLD | NEW |