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

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: Add connection error handler; make type converter safer. 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/memory/ref_counted.h"
jkarlin 2015/07/20 17:17:26 needed?
iclelland 2015/07/20 18:05:21 It provided two macros: NON_EXPORTED_BASE and DISA
9 #include "content/common/background_sync_service.mojom.h"
10 #include "content/common/content_export.h"
11 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h"
12
13 namespace content {
14
15 class CONTENT_EXPORT BackgroundSyncClientImpl
16 : public NON_EXPORTED_BASE(BackgroundSyncServiceClient) {
17 public:
18 static void Create(
19 mojo::InterfaceRequest<BackgroundSyncServiceClient> request);
20
21 ~BackgroundSyncClientImpl() override;
22
23 private:
24 using SyncCallback = mojo::Callback<void(ServiceWorkerEventStatus)>;
25 explicit BackgroundSyncClientImpl(
26 mojo::InterfaceRequest<BackgroundSyncServiceClient> request);
27
28 // BackgroundSyncClient methods:
jkarlin 2015/07/20 17:17:25 BackgruondSyncServiceClient
iclelland 2015/07/20 18:05:21 I spent 5 minutes looking for the typo, before I s
29 void Sync(content::SyncRegistrationPtr registration,
30 const SyncCallback& callback) override;
31
32 mojo::StrongBinding<BackgroundSyncServiceClient> binding_;
33
34 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncClientImpl);
35 };
36
37 } // namespace content
38
39 #endif // CONTENT_RENDERER_BACKGROUND_SYNC_BACKGROUND_SYNC_CLIENT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698