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_SERVICE_IMPL_H_ | 5 #ifndef CHROME_BROWSER_SERVICES_GCM_PUSH_MESSAGING_SERVICE_IMPL_H_ |
6 #define CHROME_BROWSER_SERVICES_GCM_PUSH_MESSAGING_SERVICE_IMPL_H_ | 6 #define CHROME_BROWSER_SERVICES_GCM_PUSH_MESSAGING_SERVICE_IMPL_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "components/gcm_driver/gcm_app_handler.h" | 10 #include "components/gcm_driver/gcm_app_handler.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 bool CanHandle(const std::string& app_id) const override; | 50 bool CanHandle(const std::string& app_id) const override; |
51 | 51 |
52 // content::PushMessagingService implementation: | 52 // content::PushMessagingService implementation: |
53 GURL PushEndpoint() override; | 53 GURL PushEndpoint() override; |
54 void RegisterFromDocument( | 54 void RegisterFromDocument( |
55 const GURL& requesting_origin, | 55 const GURL& requesting_origin, |
56 int64 service_worker_registration_id, | 56 int64 service_worker_registration_id, |
57 const std::string& sender_id, | 57 const std::string& sender_id, |
58 int renderer_id, | 58 int renderer_id, |
59 int render_frame_id, | 59 int render_frame_id, |
60 bool user_gesture, | 60 bool user_visible_only, |
61 const content::PushMessagingService::RegisterCallback& callback) override; | 61 const content::PushMessagingService::RegisterCallback& callback) override; |
62 void RegisterFromWorker( | 62 void RegisterFromWorker( |
63 const GURL& requesting_origin, | 63 const GURL& requesting_origin, |
64 int64 service_worker_registration_id, | 64 int64 service_worker_registration_id, |
65 const std::string& sender_id, | 65 const std::string& sender_id, |
66 const content::PushMessagingService::RegisterCallback& callback) override; | 66 const content::PushMessagingService::RegisterCallback& callback) override; |
67 // TODO(mvanouwerkerk): Delete once the Push API flows through platform. | 67 // TODO(mvanouwerkerk): Delete once the Push API flows through platform. |
68 // https://crbug.com/389194 | 68 // https://crbug.com/389194 |
69 blink::WebPushPermissionStatus GetPermissionStatus( | 69 blink::WebPushPermissionStatus GetPermissionStatus( |
70 const GURL& requesting_origin, | 70 const GURL& requesting_origin, |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 int push_registration_count_; | 120 int push_registration_count_; |
121 | 121 |
122 base::WeakPtrFactory<PushMessagingServiceImpl> weak_factory_; | 122 base::WeakPtrFactory<PushMessagingServiceImpl> weak_factory_; |
123 | 123 |
124 DISALLOW_COPY_AND_ASSIGN(PushMessagingServiceImpl); | 124 DISALLOW_COPY_AND_ASSIGN(PushMessagingServiceImpl); |
125 }; | 125 }; |
126 | 126 |
127 } // namespace gcm | 127 } // namespace gcm |
128 | 128 |
129 #endif // CHROME_BROWSER_SERVICES_GCM_PUSH_MESSAGING_SERVICE_IMPL_H_ | 129 #endif // CHROME_BROWSER_SERVICES_GCM_PUSH_MESSAGING_SERVICE_IMPL_H_ |
OLD | NEW |