| OLD | NEW | 
| (Empty) |  | 
 |   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 | 
 |   3 // found in the LICENSE file. | 
 |   4  | 
 |   5 #ifndef WebNotificationManager_h | 
 |   6 #define WebNotificationManager_h | 
 |   7  | 
 |   8 #include "WebNotificationPermission.h" | 
 |   9  | 
 |  10 namespace blink { | 
 |  11  | 
 |  12 struct WebNotificationData; | 
 |  13 class WebNotificationDelegate; | 
 |  14 class WebSerializedOrigin; | 
 |  15  | 
 |  16 // Provides the services to show platform notifications to the user. | 
 |  17 class WebNotificationManager { | 
 |  18 public: | 
 |  19     virtual ~WebNotificationManager() { } | 
 |  20  | 
 |  21     // Shows a notification on the user's system. | 
 |  22     virtual void show(const blink::WebSerializedOrigin&, const WebNotificationDa
    ta&, WebNotificationDelegate*) = 0; | 
 |  23  | 
 |  24     // Closes a notification previously shown, and removes it if being shown. | 
 |  25     virtual void close(WebNotificationDelegate*) = 0; | 
 |  26  | 
 |  27     // Indicates that the delegate object is being destroyed, and must no longer | 
 |  28     // be used by the embedder to dispatch events. | 
 |  29     virtual void notifyDelegateDestroyed(WebNotificationDelegate*) = 0; | 
 |  30  | 
 |  31     // Synchronously checks the permission level for the given origin. | 
 |  32     virtual WebNotificationPermission checkPermission(const WebSerializedOrigin&
    ) = 0; | 
 |  33 }; | 
 |  34  | 
 |  35 } // namespace blink | 
 |  36  | 
 |  37 #endif // WebNotificationManager_h | 
| OLD | NEW |