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

Side by Side Diff: chrome/browser/services/gcm/push_messaging_service_impl.h

Issue 658783002: Split PushMessagingStatus enum according to use case (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update comment Created 6 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/services/gcm/push_messaging_service_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 int64 service_worker_registration_id, 54 int64 service_worker_registration_id,
55 const std::string& sender_id, 55 const std::string& sender_id,
56 int renderer_id, 56 int renderer_id,
57 int render_frame_id, 57 int render_frame_id,
58 bool user_gesture, 58 bool user_gesture,
59 const content::PushMessagingService::RegisterCallback& callback) override; 59 const content::PushMessagingService::RegisterCallback& callback) override;
60 60
61 private: 61 private:
62 void DeliverMessageCallback(const PushMessagingApplicationId& application_id, 62 void DeliverMessageCallback(const PushMessagingApplicationId& application_id,
63 const GCMClient::IncomingMessage& message, 63 const GCMClient::IncomingMessage& message,
64 content::PushMessagingStatus status); 64 content::PushDeliveryStatus status);
65 65
66 void RegisterEnd( 66 void RegisterEnd(
67 const content::PushMessagingService::RegisterCallback& callback, 67 const content::PushMessagingService::RegisterCallback& callback,
68 const std::string& registration_id, 68 const std::string& registration_id,
69 content::PushMessagingStatus status); 69 content::PushRegistrationStatus status);
70 70
71 void DidRegister( 71 void DidRegister(
72 const content::PushMessagingService::RegisterCallback& callback, 72 const content::PushMessagingService::RegisterCallback& callback,
73 const std::string& registration_id, 73 const std::string& registration_id,
74 GCMClient::Result result); 74 GCMClient::Result result);
75 75
76 void DidRequestPermission( 76 void DidRequestPermission(
77 const PushMessagingApplicationId& application_id, 77 const PushMessagingApplicationId& application_id,
78 const std::string& sender_id, 78 const std::string& sender_id,
79 const content::PushMessagingService::RegisterCallback& callback, 79 const content::PushMessagingService::RegisterCallback& callback,
80 bool allow); 80 bool allow);
81 81
82 GCMProfileService* gcm_profile_service_; // It owns us. 82 GCMProfileService* gcm_profile_service_; // It owns us.
83 83
84 Profile* profile_; // It owns our owner. 84 Profile* profile_; // It owns our owner.
85 85
86 base::WeakPtrFactory<PushMessagingServiceImpl> weak_factory_; 86 base::WeakPtrFactory<PushMessagingServiceImpl> weak_factory_;
87 87
88 DISALLOW_COPY_AND_ASSIGN(PushMessagingServiceImpl); 88 DISALLOW_COPY_AND_ASSIGN(PushMessagingServiceImpl);
89 }; 89 };
90 90
91 } // namespace gcm 91 } // namespace gcm
92 92
93 #endif // CHROME_BROWSER_SERVICES_GCM_PUSH_MESSAGING_SERVICE_IMPL_H_ 93 #endif // CHROME_BROWSER_SERVICES_GCM_PUSH_MESSAGING_SERVICE_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/services/gcm/push_messaging_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698