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_PUSH_MESSAGING_PUSH_MESSAGING_SERVICE_IMPL_H_ | 5 #ifndef CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_SERVICE_IMPL_H_ |
6 #define CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_SERVICE_IMPL_H_ | 6 #define CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_SERVICE_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <set> | 9 #include <set> |
10 #include <vector> | 10 #include <vector> |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 const content::PushMessagingService::UnregisterCallback&) override; | 96 const content::PushMessagingService::UnregisterCallback&) override; |
97 blink::WebPushPermissionStatus GetPermissionStatus( | 97 blink::WebPushPermissionStatus GetPermissionStatus( |
98 const GURL& origin, | 98 const GURL& origin, |
99 bool user_visible) override; | 99 bool user_visible) override; |
100 bool SupportNonVisibleMessages() override; | 100 bool SupportNonVisibleMessages() override; |
101 | 101 |
102 // content_settings::Observer implementation. | 102 // content_settings::Observer implementation. |
103 void OnContentSettingChanged(const ContentSettingsPattern& primary_pattern, | 103 void OnContentSettingChanged(const ContentSettingsPattern& primary_pattern, |
104 const ContentSettingsPattern& secondary_pattern, | 104 const ContentSettingsPattern& secondary_pattern, |
105 ContentSettingsType content_type, | 105 ContentSettingsType content_type, |
| 106 ContentSetting previous_value, |
106 std::string resource_identifier) override; | 107 std::string resource_identifier) override; |
107 | 108 |
108 // KeyedService implementation. | 109 // KeyedService implementation. |
109 void Shutdown() override; | 110 void Shutdown() override; |
110 | 111 |
111 // BackgroundTrigger implementation. | 112 // BackgroundTrigger implementation. |
112 base::string16 GetName() override; | 113 base::string16 GetName() override; |
113 gfx::ImageSkia* GetIcon() override; | 114 gfx::ImageSkia* GetIcon() override; |
114 void OnMenuClick() override; | 115 void OnMenuClick() override; |
115 | 116 |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 MessageDispatchedCallback message_dispatched_callback_for_testing_; | 236 MessageDispatchedCallback message_dispatched_callback_for_testing_; |
236 | 237 |
237 scoped_ptr<PushMessagingServiceObserver> push_messaging_service_observer_; | 238 scoped_ptr<PushMessagingServiceObserver> push_messaging_service_observer_; |
238 | 239 |
239 base::WeakPtrFactory<PushMessagingServiceImpl> weak_factory_; | 240 base::WeakPtrFactory<PushMessagingServiceImpl> weak_factory_; |
240 | 241 |
241 DISALLOW_COPY_AND_ASSIGN(PushMessagingServiceImpl); | 242 DISALLOW_COPY_AND_ASSIGN(PushMessagingServiceImpl); |
242 }; | 243 }; |
243 | 244 |
244 #endif // CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_SERVICE_IMPL_H_ | 245 #endif // CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_SERVICE_IMPL_H_ |
OLD | NEW |