OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_CHILD_BACKGROUND_SYNC_BACKGROUND_SYNC_PROVIDER_H_ | 5 #ifndef CONTENT_CHILD_BACKGROUND_SYNC_BACKGROUND_SYNC_PROVIDER_H_ |
6 #define CONTENT_CHILD_BACKGROUND_SYNC_BACKGROUND_SYNC_PROVIDER_H_ | 6 #define CONTENT_CHILD_BACKGROUND_SYNC_BACKGROUND_SYNC_PROVIDER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 scoped_ptr<blink::WebSyncRegistrationCallbacks> callbacks, | 74 scoped_ptr<blink::WebSyncRegistrationCallbacks> callbacks, |
75 BackgroundSyncError error, | 75 BackgroundSyncError error, |
76 const SyncRegistrationPtr& options); | 76 const SyncRegistrationPtr& options); |
77 void GetRegistrationsCallback( | 77 void GetRegistrationsCallback( |
78 scoped_ptr<blink::WebSyncGetRegistrationsCallbacks> callbacks, | 78 scoped_ptr<blink::WebSyncGetRegistrationsCallbacks> callbacks, |
79 BackgroundSyncError error, | 79 BackgroundSyncError error, |
80 const mojo::Array<SyncRegistrationPtr>& registrations); | 80 const mojo::Array<SyncRegistrationPtr>& registrations); |
81 void GetPermissionStatusCallback( | 81 void GetPermissionStatusCallback( |
82 scoped_ptr<blink::WebSyncGetPermissionStatusCallbacks> callbacks, | 82 scoped_ptr<blink::WebSyncGetPermissionStatusCallbacks> callbacks, |
83 BackgroundSyncError error, | 83 BackgroundSyncError error, |
84 PermissionStatus status); | 84 permission::Status status); |
85 void NotifyWhenDoneCallback( | 85 void NotifyWhenDoneCallback( |
86 scoped_ptr<blink::WebSyncNotifyWhenDoneCallbacks> callbacks, | 86 scoped_ptr<blink::WebSyncNotifyWhenDoneCallbacks> callbacks, |
87 BackgroundSyncError error, | 87 BackgroundSyncError error, |
88 BackgroundSyncState state); | 88 BackgroundSyncState state); |
89 | 89 |
90 // Helper method that returns an initialized BackgroundSyncServicePtr. | 90 // Helper method that returns an initialized BackgroundSyncServicePtr. |
91 BackgroundSyncServicePtr& GetBackgroundSyncServicePtr(); | 91 BackgroundSyncServicePtr& GetBackgroundSyncServicePtr(); |
92 | 92 |
93 ServiceRegistry* service_registry_; | 93 ServiceRegistry* service_registry_; |
94 BackgroundSyncServicePtr background_sync_service_; | 94 BackgroundSyncServicePtr background_sync_service_; |
95 | 95 |
96 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncProvider); | 96 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncProvider); |
97 }; | 97 }; |
98 | 98 |
99 } // namespace content | 99 } // namespace content |
100 | 100 |
101 #endif // CONTENT_CHILD_BACKGROUND_SYNC_BACKGROUND_SYNC_PROVIDER_H_ | 101 #endif // CONTENT_CHILD_BACKGROUND_SYNC_BACKGROUND_SYNC_PROVIDER_H_ |
OLD | NEW |