| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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_SERVICES_GCM_PUSH_MESSAGING_PERMISSION_CONTEXT_H_ | 5 #ifndef CHROME_BROWSER_SERVICES_GCM_PUSH_MESSAGING_PERMISSION_CONTEXT_H_ |
| 6 #define CHROME_BROWSER_SERVICES_GCM_PUSH_MESSAGING_PERMISSION_CONTEXT_H_ | 6 #define CHROME_BROWSER_SERVICES_GCM_PUSH_MESSAGING_PERMISSION_CONTEXT_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/content_settings/permission_context_base.h" | 8 #include "chrome/browser/content_settings/permission_context_base.h" |
| 9 | 9 |
| 10 namespace gcm { | 10 namespace gcm { |
| 11 | 11 |
| 12 // Permission context for push messages. | 12 // Permission context for push messages. |
| 13 class PushMessagingPermissionContext : public PermissionContextBase { | 13 class PushMessagingPermissionContext : public PermissionContextBase { |
| 14 public: | 14 public: |
| 15 explicit PushMessagingPermissionContext(Profile* profile); | 15 explicit PushMessagingPermissionContext(Profile* profile); |
| 16 virtual ~PushMessagingPermissionContext(); | 16 ~PushMessagingPermissionContext() override; |
| 17 | 17 |
| 18 private: | 18 private: |
| 19 DISALLOW_COPY_AND_ASSIGN(PushMessagingPermissionContext); | 19 DISALLOW_COPY_AND_ASSIGN(PushMessagingPermissionContext); |
| 20 }; | 20 }; |
| 21 | 21 |
| 22 } // namespace gcm | 22 } // namespace gcm |
| 23 #endif // CHROME_BROWSER_SERVICES_GCM_PUSH_MESSAGING_PERMISSION_CONTEXT_H_ | 23 #endif // CHROME_BROWSER_SERVICES_GCM_PUSH_MESSAGING_PERMISSION_CONTEXT_H_ |
| OLD | NEW |