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

Side by Side Diff: chrome/browser/push_messaging/push_messaging_service_impl.h

Issue 1133083002: Reject the permissionState promise with NotSupported Exception (2/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix failing test Created 5 years, 7 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
OLDNEW
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 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 const content::PushMessagingService::RegisterCallback& callback) override; 79 const content::PushMessagingService::RegisterCallback& callback) override;
80 void Unregister( 80 void Unregister(
81 const GURL& requesting_origin, 81 const GURL& requesting_origin,
82 int64 service_worker_registration_id, 82 int64 service_worker_registration_id,
83 const std::string& sender_id, 83 const std::string& sender_id,
84 const content::PushMessagingService::UnregisterCallback&) override; 84 const content::PushMessagingService::UnregisterCallback&) override;
85 blink::WebPushPermissionStatus GetPermissionStatus( 85 blink::WebPushPermissionStatus GetPermissionStatus(
86 const GURL& requesting_origin, 86 const GURL& requesting_origin,
87 const GURL& embedding_origin, 87 const GURL& embedding_origin,
88 bool user_visible) override; 88 bool user_visible) override;
89 bool SupportNonVisibleMessages() override;
90
89 91
90 // content_settings::Observer implementation. 92 // content_settings::Observer implementation.
91 void OnContentSettingChanged(const ContentSettingsPattern& primary_pattern, 93 void OnContentSettingChanged(const ContentSettingsPattern& primary_pattern,
92 const ContentSettingsPattern& secondary_pattern, 94 const ContentSettingsPattern& secondary_pattern,
93 ContentSettingsType content_type, 95 ContentSettingsType content_type,
94 std::string resource_identifier) override; 96 std::string resource_identifier) override;
95 97
96 // KeyedService implementation. 98 // KeyedService implementation.
97 void Shutdown() override; 99 void Shutdown() override;
98 100
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 #if defined(ENABLE_NOTIFICATIONS) 172 #if defined(ENABLE_NOTIFICATIONS)
171 PushMessagingNotificationManager notification_manager_; 173 PushMessagingNotificationManager notification_manager_;
172 #endif 174 #endif
173 175
174 base::WeakPtrFactory<PushMessagingServiceImpl> weak_factory_; 176 base::WeakPtrFactory<PushMessagingServiceImpl> weak_factory_;
175 177
176 DISALLOW_COPY_AND_ASSIGN(PushMessagingServiceImpl); 178 DISALLOW_COPY_AND_ASSIGN(PushMessagingServiceImpl);
177 }; 179 };
178 180
179 #endif // CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_SERVICE_IMPL_H_ 181 #endif // CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_SERVICE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698