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

Side by Side Diff: content/renderer/background_sync/background_sync_client_impl.h

Issue 1220943003: [Background Sync] Use Mojo IPC to fire background sync events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mek
Patch Set: Addressing post-lgtm review comments Created 5 years, 5 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_RENDERER_BACKGROUND_SYNC_BACKGROUND_SYNC_CLIENT_IMPL_H_
6 #define CONTENT_RENDERER_BACKGROUND_SYNC_BACKGROUND_SYNC_CLIENT_IMPL_H_
7
8 #include "base/compiler_specific.h"
9 #include "base/macros.h"
10 #include "content/common/background_sync_service.mojom.h"
11 #include "content/common/content_export.h"
12 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h"
13
14 namespace content {
15
16 class CONTENT_EXPORT BackgroundSyncClientImpl
17 : public NON_EXPORTED_BASE(BackgroundSyncServiceClient) {
18 public:
19 static void Create(
20 mojo::InterfaceRequest<BackgroundSyncServiceClient> request);
21
22 ~BackgroundSyncClientImpl() override;
23
24 private:
25 using SyncCallback = mojo::Callback<void(ServiceWorkerEventStatus)>;
26 explicit BackgroundSyncClientImpl(
27 mojo::InterfaceRequest<BackgroundSyncServiceClient> request);
28
29 // BackgroundSyncServiceClient methods:
30 void Sync(content::SyncRegistrationPtr registration,
31 const SyncCallback& callback) override;
32
33 mojo::StrongBinding<BackgroundSyncServiceClient> binding_;
34
35 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncClientImpl);
36 };
37
38 } // namespace content
39
40 #endif // CONTENT_RENDERER_BACKGROUND_SYNC_BACKGROUND_SYNC_CLIENT_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/background_sync/PRESUBMIT.py ('k') | content/renderer/background_sync/background_sync_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698