Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(457)

Side by Side Diff: Source/web/NotificationPresenterImpl.h

Issue 393863002: Switch Blink to the new Web Notifications permission path. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 NotificationPresenterImpl() : m_presenter(0) { } 44 NotificationPresenterImpl() : m_presenter(0) { }
45 45
46 void initialize(WebNotificationPresenter* presenter); 46 void initialize(WebNotificationPresenter* presenter);
47 bool isInitialized(); 47 bool isInitialized();
48 48
49 // blink::NotificationPresenter implementation. 49 // blink::NotificationPresenter implementation.
50 virtual bool show(blink::Notification*) OVERRIDE; 50 virtual bool show(blink::Notification*) OVERRIDE;
51 virtual void close(blink::Notification*) OVERRIDE; 51 virtual void close(blink::Notification*) OVERRIDE;
52 virtual void notificationObjectDestroyed(blink::Notification*) OVERRIDE; 52 virtual void notificationObjectDestroyed(blink::Notification*) OVERRIDE;
53 virtual blink::NotificationClient::Permission checkPermission(blink::Executi onContext*) OVERRIDE; 53 virtual blink::NotificationClient::Permission checkPermission(blink::Executi onContext*) OVERRIDE;
54 virtual void requestPermission(blink::ExecutionContext*, WTF::PassOwnPtr<bli nk::NotificationPermissionCallback>) OVERRIDE;
55 54
56 private: 55 private:
57 // WebNotificationPresenter that this object delegates to. 56 // WebNotificationPresenter that this object delegates to.
58 WebNotificationPresenter* m_presenter; 57 WebNotificationPresenter* m_presenter;
59 }; 58 };
60 59
61 } // namespace blink 60 } // namespace blink
62 61
63 #endif // NotificationPresenterImpl_h 62 #endif // NotificationPresenterImpl_h
OLDNEW
« no previous file with comments | « Source/web/NotificationPermissionClientImpl.cpp ('k') | Source/web/NotificationPresenterImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698