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_RENDERER_BACKGROUND_SYNC_BACKGROUND_SYNC_CLIENT_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_BACKGROUND_SYNC_BACKGROUND_SYNC_CLIENT_IMPL_H_ |
6 #define CONTENT_RENDERER_BACKGROUND_SYNC_BACKGROUND_SYNC_CLIENT_IMPL_H_ | 6 #define CONTENT_RENDERER_BACKGROUND_SYNC_BACKGROUND_SYNC_CLIENT_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 24 matching lines...) Expand all Loading... |
35 // BackgroundSyncServiceClient methods: | 35 // BackgroundSyncServiceClient methods: |
36 void Sync(int64_t handle_id, | 36 void Sync(int64_t handle_id, |
37 content::BackgroundSyncEventLastChance last_chance, | 37 content::BackgroundSyncEventLastChance last_chance, |
38 const SyncCallback& callback) override; | 38 const SyncCallback& callback) override; |
39 void SyncDidGetRegistration( | 39 void SyncDidGetRegistration( |
40 int64_t callback_id, | 40 int64_t callback_id, |
41 content::BackgroundSyncEventLastChance last_chance, | 41 content::BackgroundSyncEventLastChance last_chance, |
42 BackgroundSyncError error, | 42 BackgroundSyncError error, |
43 SyncRegistrationPtr registration); | 43 SyncRegistrationPtr registration); |
44 | 44 |
45 int64_t service_worker_registration_id_; | |
46 mojo::StrongBinding<BackgroundSyncServiceClient> binding_; | 45 mojo::StrongBinding<BackgroundSyncServiceClient> binding_; |
47 | 46 |
48 int64_t callback_seq_num_; | 47 int64_t callback_seq_num_; |
49 std::map<int64_t, SyncCallback> sync_callbacks_; | 48 std::map<int64_t, SyncCallback> sync_callbacks_; |
50 | 49 |
51 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncClientImpl); | 50 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncClientImpl); |
52 }; | 51 }; |
53 | 52 |
54 } // namespace content | 53 } // namespace content |
55 | 54 |
56 #endif // CONTENT_RENDERER_BACKGROUND_SYNC_BACKGROUND_SYNC_CLIENT_IMPL_H_ | 55 #endif // CONTENT_RENDERER_BACKGROUND_SYNC_BACKGROUND_SYNC_CLIENT_IMPL_H_ |
OLD | NEW |