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

Side by Side Diff: content/public/browser/push_messaging_service.h

Issue 914693002: Push API: Fix unsubscribing from GCM on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address peter & jianli's review comments Created 5 years, 10 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 CONTENT_PUBLIC_BROWSER_PUSH_MESSAGING_SERVICE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_PUSH_MESSAGING_SERVICE_H_
6 #define CONTENT_PUBLIC_BROWSER_PUSH_MESSAGING_SERVICE_H_ 6 #define CONTENT_PUBLIC_BROWSER_PUSH_MESSAGING_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // request should fail. 70 // request should fail.
71 virtual void RegisterFromWorker(const GURL& requesting_origin, 71 virtual void RegisterFromWorker(const GURL& requesting_origin,
72 int64 service_worker_registration_id, 72 int64 service_worker_registration_id,
73 const std::string& sender_id, 73 const std::string& sender_id,
74 const RegisterCallback& callback) = 0; 74 const RegisterCallback& callback) = 0;
75 75
76 // Unregister an origin and its associated service worker registration id from 76 // Unregister an origin and its associated service worker registration id from
77 // the push service. 77 // the push service.
78 virtual void Unregister(const GURL& requesting_origin, 78 virtual void Unregister(const GURL& requesting_origin,
79 int64 service_worker_registration_id, 79 int64 service_worker_registration_id,
80 const std::string& sender_id,
80 bool retry_on_failure, 81 bool retry_on_failure,
81 const UnregisterCallback& callback) = 0; 82 const UnregisterCallback& callback) = 0;
82 83
83 // Checks the permission status for the requesting origin. Permission is only 84 // Checks the permission status for the requesting origin. Permission is only
84 // ever granted when the requesting origin matches the top level embedding 85 // ever granted when the requesting origin matches the top level embedding
85 // origin. 86 // origin.
86 virtual blink::WebPushPermissionStatus GetPermissionStatus( 87 virtual blink::WebPushPermissionStatus GetPermissionStatus(
87 const GURL& requesting_origin, 88 const GURL& requesting_origin,
88 const GURL& embedding_origin) = 0; 89 const GURL& embedding_origin) = 0;
89 }; 90 };
90 91
91 } // namespace content 92 } // namespace content
92 93
93 #endif // CONTENT_PUBLIC_BROWSER_PUSH_MESSAGING_SERVICE_H_ 94 #endif // CONTENT_PUBLIC_BROWSER_PUSH_MESSAGING_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698