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

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

Issue 770023002: Push registration should read a "gcm_user_visible_only" key from the Manifest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment fix Created 6 years 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 12 matching lines...) Expand all
23 const std::string& /* registration_id */, 23 const std::string& /* registration_id */,
24 PushRegistrationStatus /* status */)> 24 PushRegistrationStatus /* status */)>
25 RegisterCallback; 25 RegisterCallback;
26 26
27 virtual ~PushMessagingService() {} 27 virtual ~PushMessagingService() {}
28 28
29 // Register the given |sender_id| with GCM. 29 // Register the given |sender_id| with GCM.
30 virtual void Register(const GURL& origin, 30 virtual void Register(const GURL& origin,
31 int64 service_worker_registration_id, 31 int64 service_worker_registration_id,
32 const std::string& sender_id, 32 const std::string& sender_id,
33 bool user_visible_only,
33 int renderer_id, 34 int renderer_id,
34 int render_frame_id, 35 int render_frame_id,
35 bool user_gesture, 36 bool user_gesture,
36 const RegisterCallback& callback) = 0; 37 const RegisterCallback& callback) = 0;
37 38
38 // Check whether the requester has permission to register for Push 39 // Check whether the requester has permission to register for Push
39 // Messages 40 // Messages
40 virtual blink::WebPushPermissionStatus GetPermissionStatus( 41 virtual blink::WebPushPermissionStatus GetPermissionStatus(
41 const GURL& requesting_origin, 42 const GURL& requesting_origin,
42 int renderer_id, 43 int renderer_id,
43 int render_frame_id) = 0; 44 int render_frame_id) = 0;
44 }; 45 };
45 46
46 } // namespace content 47 } // namespace content
47 48
48 #endif // CONTENT_PUBLIC_BROWSER_PUSH_MESSAGING_SERVICE_H_ 49 #endif // CONTENT_PUBLIC_BROWSER_PUSH_MESSAGING_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698