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

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

Issue 1931843002: Ship Web Push subscription restrictions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 const gcm::IncomingMessage& message) override; 66 const gcm::IncomingMessage& message) override;
67 void OnMessagesDeleted(const std::string& app_id) override; 67 void OnMessagesDeleted(const std::string& app_id) override;
68 void OnSendError( 68 void OnSendError(
69 const std::string& app_id, 69 const std::string& app_id,
70 const gcm::GCMClient::SendErrorDetails& send_error_details) override; 70 const gcm::GCMClient::SendErrorDetails& send_error_details) override;
71 void OnSendAcknowledged(const std::string& app_id, 71 void OnSendAcknowledged(const std::string& app_id,
72 const std::string& message_id) override; 72 const std::string& message_id) override;
73 bool CanHandle(const std::string& app_id) const override; 73 bool CanHandle(const std::string& app_id) const override;
74 74
75 // content::PushMessagingService implementation: 75 // content::PushMessagingService implementation:
76 GURL GetPushEndpoint() override; 76 GURL GetEndpoint(bool standard_protocol) const override;
77 void SubscribeFromDocument( 77 void SubscribeFromDocument(
78 const GURL& requesting_origin, 78 const GURL& requesting_origin,
79 int64_t service_worker_registration_id, 79 int64_t service_worker_registration_id,
80 int renderer_id, 80 int renderer_id,
81 int render_frame_id, 81 int render_frame_id,
82 const content::PushSubscriptionOptions& options, 82 const content::PushSubscriptionOptions& options,
83 const content::PushMessagingService::RegisterCallback& callback) override; 83 const content::PushMessagingService::RegisterCallback& callback) override;
84 void SubscribeFromWorker( 84 void SubscribeFromWorker(
85 const GURL& requesting_origin, 85 const GURL& requesting_origin,
86 int64_t service_worker_registration_id, 86 int64_t service_worker_registration_id,
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 // we can finish processing them without being interrupted. 250 // we can finish processing them without being interrupted.
251 std::unique_ptr<ScopedKeepAlive> in_flight_keep_alive_; 251 std::unique_ptr<ScopedKeepAlive> in_flight_keep_alive_;
252 #endif 252 #endif
253 253
254 base::WeakPtrFactory<PushMessagingServiceImpl> weak_factory_; 254 base::WeakPtrFactory<PushMessagingServiceImpl> weak_factory_;
255 255
256 DISALLOW_COPY_AND_ASSIGN(PushMessagingServiceImpl); 256 DISALLOW_COPY_AND_ASSIGN(PushMessagingServiceImpl);
257 }; 257 };
258 258
259 #endif // CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_SERVICE_IMPL_H_ 259 #endif // CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_SERVICE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698