| 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> |
| 11 | 11 |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "content/common/content_export.h" | 14 #include "content/common/content_export.h" |
| 15 #include "third_party/WebKit/public/platform/modules/background_sync/background_
sync.mojom.h" | 15 #include "third_party/WebKit/public/platform/modules/background_sync/background_
sync.mojom.h" |
| 16 | 16 |
| 17 namespace content { | 17 namespace content { |
| 18 | 18 |
| 19 class CONTENT_EXPORT BackgroundSyncClientImpl | 19 class CONTENT_EXPORT BackgroundSyncClientImpl |
| 20 : public NON_EXPORTED_BASE(blink::mojom::BackgroundSyncServiceClient) { | 20 : public NON_EXPORTED_BASE(blink::mojom::BackgroundSyncServiceClient) { |
| 21 public: | 21 public: |
| 22 static void Create(blink::mojom::BackgroundSyncServiceClientRequest request); | 22 static void Create(blink::mojom::BackgroundSyncServiceClientRequest request); |
| 23 | 23 |
| 24 ~BackgroundSyncClientImpl() override; | 24 ~BackgroundSyncClientImpl() override; |
| 25 | 25 |
| 26 private: | 26 private: |
| 27 BackgroundSyncClientImpl(); | 27 BackgroundSyncClientImpl(); |
| 28 | 28 |
| 29 // BackgroundSyncServiceClient methods: | 29 // BackgroundSyncServiceClient methods: |
| 30 void Sync(const mojo::String& tag, | 30 void Sync(const std::string& tag, |
| 31 blink::mojom::BackgroundSyncEventLastChance last_chance, | 31 blink::mojom::BackgroundSyncEventLastChance last_chance, |
| 32 const SyncCallback& callback) override; | 32 const SyncCallback& callback) override; |
| 33 | 33 |
| 34 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncClientImpl); | 34 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncClientImpl); |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 } // namespace content | 37 } // namespace content |
| 38 | 38 |
| 39 #endif // CONTENT_RENDERER_BACKGROUND_SYNC_BACKGROUND_SYNC_CLIENT_IMPL_H_ | 39 #endif // CONTENT_RENDERER_BACKGROUND_SYNC_BACKGROUND_SYNC_CLIENT_IMPL_H_ |
| OLD | NEW |