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 <map> | 8 #include <map> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "content/common/background_sync_service.mojom.h" | 12 #include "content/common/background_sync_service.mojom.h" |
13 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
14 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h" | 14 #include "mojo/public/cpp/bindings/strong_binding.h" |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 | 17 |
18 class CONTENT_EXPORT BackgroundSyncClientImpl | 18 class CONTENT_EXPORT BackgroundSyncClientImpl |
19 : public NON_EXPORTED_BASE(BackgroundSyncServiceClient) { | 19 : public NON_EXPORTED_BASE(BackgroundSyncServiceClient) { |
20 public: | 20 public: |
21 static void Create( | 21 static void Create( |
22 int64_t service_worker_registration_id, | 22 int64_t service_worker_registration_id, |
23 mojo::InterfaceRequest<BackgroundSyncServiceClient> request); | 23 mojo::InterfaceRequest<BackgroundSyncServiceClient> request); |
24 | 24 |
(...skipping 20 matching lines...) Expand all Loading... |
45 | 45 |
46 int64_t callback_seq_num_; | 46 int64_t callback_seq_num_; |
47 std::map<int64_t, SyncCallback> sync_callbacks_; | 47 std::map<int64_t, SyncCallback> sync_callbacks_; |
48 | 48 |
49 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncClientImpl); | 49 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncClientImpl); |
50 }; | 50 }; |
51 | 51 |
52 } // namespace content | 52 } // namespace content |
53 | 53 |
54 #endif // CONTENT_RENDERER_BACKGROUND_SYNC_BACKGROUND_SYNC_CLIENT_IMPL_H_ | 54 #endif // CONTENT_RENDERER_BACKGROUND_SYNC_BACKGROUND_SYNC_CLIENT_IMPL_H_ |
OLD | NEW |