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

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

Issue 1373883003: Move geolocation and permission mojoms into components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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 <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "chrome/browser/background/background_trigger.h" 15 #include "chrome/browser/background/background_trigger.h"
16 #include "components/content_settings/core/browser/content_settings_observer.h" 16 #include "components/content_settings/core/browser/content_settings_observer.h"
17 #include "components/content_settings/core/common/content_settings.h" 17 #include "components/content_settings/core/common/content_settings.h"
18 #include "components/gcm_driver/common/gcm_messages.h" 18 #include "components/gcm_driver/common/gcm_messages.h"
19 #include "components/gcm_driver/gcm_app_handler.h" 19 #include "components/gcm_driver/gcm_app_handler.h"
20 #include "components/gcm_driver/gcm_client.h" 20 #include "components/gcm_driver/gcm_client.h"
21 #include "components/keyed_service/core/keyed_service.h" 21 #include "components/keyed_service/core/keyed_service.h"
22 #include "components/permission/public/interfaces/permission_status.mojom.h"
22 #include "content/public/browser/push_messaging_service.h" 23 #include "content/public/browser/push_messaging_service.h"
23 #include "content/public/common/permission_status.mojom.h"
24 #include "content/public/common/push_messaging_status.h" 24 #include "content/public/common/push_messaging_status.h"
25 #include "third_party/WebKit/public/platform/modules/push_messaging/WebPushPermi ssionStatus.h" 25 #include "third_party/WebKit/public/platform/modules/push_messaging/WebPushPermi ssionStatus.h"
26 26
27 #if defined(ENABLE_NOTIFICATIONS) 27 #if defined(ENABLE_NOTIFICATIONS)
28 #include "chrome/browser/push_messaging/push_messaging_notification_manager.h" 28 #include "chrome/browser/push_messaging/push_messaging_notification_manager.h"
29 #endif 29 #endif
30 30
31 class Profile; 31 class Profile;
32 class PushMessagingAppIdentifier; 32 class PushMessagingAppIdentifier;
33 33
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 void DidSubscribeWithPublicKey( 153 void DidSubscribeWithPublicKey(
154 const PushMessagingAppIdentifier& app_identifier, 154 const PushMessagingAppIdentifier& app_identifier,
155 const content::PushMessagingService::RegisterCallback& callback, 155 const content::PushMessagingService::RegisterCallback& callback,
156 const std::string& subscription_id, 156 const std::string& subscription_id,
157 const std::string& public_key); 157 const std::string& public_key);
158 158
159 void DidRequestPermission( 159 void DidRequestPermission(
160 const PushMessagingAppIdentifier& app_identifier, 160 const PushMessagingAppIdentifier& app_identifier,
161 const std::string& sender_id, 161 const std::string& sender_id,
162 const content::PushMessagingService::RegisterCallback& callback, 162 const content::PushMessagingService::RegisterCallback& callback,
163 content::PermissionStatus permission_status); 163 permission::Status permission_status);
164 164
165 // GetPublicEncryptionKey method --------------------------------------------- 165 // GetPublicEncryptionKey method ---------------------------------------------
166 166
167 void DidGetPublicKey( 167 void DidGetPublicKey(
168 const PushMessagingService::PublicKeyCallback& callback, 168 const PushMessagingService::PublicKeyCallback& callback,
169 const std::string& public_key) const; 169 const std::string& public_key) const;
170 170
171 171
172 // Unsubscribe methods ------------------------------------------------------- 172 // Unsubscribe methods -------------------------------------------------------
173 173
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 // A multiset containing one entry for each in-flight push message delivery, 213 // A multiset containing one entry for each in-flight push message delivery,
214 // keyed by the receiver's app id. 214 // keyed by the receiver's app id.
215 std::multiset<std::string> in_flight_message_deliveries_; 215 std::multiset<std::string> in_flight_message_deliveries_;
216 216
217 base::WeakPtrFactory<PushMessagingServiceImpl> weak_factory_; 217 base::WeakPtrFactory<PushMessagingServiceImpl> weak_factory_;
218 218
219 DISALLOW_COPY_AND_ASSIGN(PushMessagingServiceImpl); 219 DISALLOW_COPY_AND_ASSIGN(PushMessagingServiceImpl);
220 }; 220 };
221 221
222 #endif // CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_SERVICE_IMPL_H_ 222 #endif // CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_SERVICE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698