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

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

Issue 1575763002: Make `content` target build without unused data members on Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@use_disallow_copy_assign_linux_only
Patch Set: no deps Created 4 years, 11 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
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 #include "content/renderer/background_sync/background_sync_client_impl.h" 5 #include "content/renderer/background_sync/background_sync_client_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "content/child/background_sync/background_sync_provider.h" 9 #include "content/child/background_sync/background_sync_provider.h"
10 #include "content/child/background_sync/background_sync_type_converters.h" 10 #include "content/child/background_sync/background_sync_type_converters.h"
(...skipping 10 matching lines...) Expand all
21 void BackgroundSyncClientImpl::Create( 21 void BackgroundSyncClientImpl::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 new BackgroundSyncClientImpl(service_worker_registration_id, 24 new BackgroundSyncClientImpl(service_worker_registration_id,
25 std::move(request)); 25 std::move(request));
26 } 26 }
27 27
28 BackgroundSyncClientImpl::~BackgroundSyncClientImpl() {} 28 BackgroundSyncClientImpl::~BackgroundSyncClientImpl() {}
29 29
30 BackgroundSyncClientImpl::BackgroundSyncClientImpl( 30 BackgroundSyncClientImpl::BackgroundSyncClientImpl(
31 int64_t service_worker_registration_id, 31 int64_t service_worker_registration_id,
jam 2016/01/13 16:17:50 ditto
mlamouri (slow - plz ping) 2016/01/14 20:13:39 Done.
32 mojo::InterfaceRequest<BackgroundSyncServiceClient> request) 32 mojo::InterfaceRequest<BackgroundSyncServiceClient> request)
33 : service_worker_registration_id_(service_worker_registration_id), 33 : binding_(this, std::move(request)), callback_seq_num_(0) {}
34 binding_(this, std::move(request)),
35 callback_seq_num_(0) {}
36 34
37 void BackgroundSyncClientImpl::Sync( 35 void BackgroundSyncClientImpl::Sync(
38 int64_t handle_id, 36 int64_t handle_id,
39 content::BackgroundSyncEventLastChance last_chance, 37 content::BackgroundSyncEventLastChance last_chance,
40 const SyncCallback& callback) { 38 const SyncCallback& callback) {
41 DCHECK(!blink::Platform::current()->mainThread()->isCurrentThread()); 39 DCHECK(!blink::Platform::current()->mainThread()->isCurrentThread());
42 // Get a registration for the given handle_id from the provider. This way 40 // Get a registration for the given handle_id from the provider. This way
43 // the provider knows about the handle and can delete it once Blink releases 41 // the provider knows about the handle and can delete it once Blink releases
44 // it. 42 // it.
45 // TODO(jkarlin): Change the WebSyncPlatform to support 43 // TODO(jkarlin): Change the WebSyncPlatform to support
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 mojo::ConvertTo<scoped_ptr<blink::WebSyncRegistration>>(registration); 89 mojo::ConvertTo<scoped_ptr<blink::WebSyncRegistration>>(registration);
92 90
93 blink::WebServiceWorkerContextProxy::LastChanceOption web_last_chance = 91 blink::WebServiceWorkerContextProxy::LastChanceOption web_last_chance =
94 mojo::ConvertTo<blink::WebServiceWorkerContextProxy::LastChanceOption>( 92 mojo::ConvertTo<blink::WebServiceWorkerContextProxy::LastChanceOption>(
95 last_chance); 93 last_chance);
96 94
97 client->DispatchSyncEvent(*web_registration, web_last_chance, callback); 95 client->DispatchSyncEvent(*web_registration, web_last_chance, callback);
98 } 96 }
99 97
100 } // namespace content 98 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698