Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 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 CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PERMISSION_CONTEXT_H_ | |
| 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PERMISSION_CONTEXT_H_ | |
| 7 | |
| 8 #include "chrome/browser/content_settings/permission_context_base.h" | |
| 9 #include "components/content_settings/core/common/content_settings.h" | |
| 10 | |
| 11 class GURL; | |
| 12 class Profile; | |
| 13 | |
| 14 class NotificationPermissionContext : public PermissionContextBase { | |
| 15 public: | |
| 16 explicit NotificationPermissionContext(Profile* profile); | |
| 17 ~NotificationPermissionContext() override; | |
| 18 | |
| 19 private: | |
| 20 // PermissionContextBase implementation. | |
|
mlamouri (slow - plz ping)
2015/06/29 10:57:42
Could you implement ResetPermission() by calling D
Peter Beverloo
2015/06/29 12:54:21
Done.
| |
| 21 void UpdateContentSetting(const GURL& requesting_origin, | |
| 22 const GURL& embedder_origin, | |
| 23 ContentSetting content_setting) override; | |
| 24 bool IsRestrictedToSecureOrigins() const override; | |
| 25 }; | |
| 26 | |
| 27 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_PERMISSION_CONTEXT_H_ | |
| OLD | NEW |