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

Side by Side Diff: content/browser/background_sync/background_sync_service_impl.cc

Issue 1613053004: [Background Sync Cleanup] Remove mention of oneshot (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@purge_periodic
Patch Set: Nit 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/browser/background_sync/background_sync_service_impl.h" 5 #include "content/browser/background_sync/background_sync_service_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "background_sync_registration_handle.h" 9 #include "background_sync_registration_handle.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 base::Bind(&BackgroundSyncServiceImpl::OnGetRegistrationsResult, 155 base::Bind(&BackgroundSyncServiceImpl::OnGetRegistrationsResult,
156 weak_ptr_factory_.GetWeakPtr(), callback)); 156 weak_ptr_factory_.GetWeakPtr(), callback));
157 } 157 }
158 158
159 void BackgroundSyncServiceImpl::GetPermissionStatus( 159 void BackgroundSyncServiceImpl::GetPermissionStatus(
160 int64_t sw_registration_id, 160 int64_t sw_registration_id,
161 const GetPermissionStatusCallback& callback) { 161 const GetPermissionStatusCallback& callback) {
162 DCHECK_CURRENTLY_ON(BrowserThread::IO); 162 DCHECK_CURRENTLY_ON(BrowserThread::IO);
163 163
164 // TODO(iclelland): Implement a real policy. This is a stub implementation. 164 // TODO(iclelland): Implement a real policy. This is a stub implementation.
165 // OneShot: crbug.com/482091 165 // See https://crbug.com/482091.
166 callback.Run(BackgroundSyncError::NONE, PermissionStatus::GRANTED); 166 callback.Run(BackgroundSyncError::NONE, PermissionStatus::GRANTED);
167 } 167 }
168 168
169 void BackgroundSyncServiceImpl::DuplicateRegistrationHandle( 169 void BackgroundSyncServiceImpl::DuplicateRegistrationHandle(
170 BackgroundSyncRegistrationHandle::HandleId handle_id, 170 BackgroundSyncRegistrationHandle::HandleId handle_id,
171 const DuplicateRegistrationHandleCallback& callback) { 171 const DuplicateRegistrationHandleCallback& callback) {
172 DCHECK_CURRENTLY_ON(BrowserThread::IO); 172 DCHECK_CURRENTLY_ON(BrowserThread::IO);
173 BackgroundSyncManager* background_sync_manager = 173 BackgroundSyncManager* background_sync_manager =
174 background_sync_context_->background_sync_manager(); 174 background_sync_context_->background_sync_manager();
175 DCHECK(background_sync_manager); 175 DCHECK(background_sync_manager);
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 267
268 void BackgroundSyncServiceImpl::OnNotifyWhenFinishedResult( 268 void BackgroundSyncServiceImpl::OnNotifyWhenFinishedResult(
269 const NotifyWhenFinishedCallback& callback, 269 const NotifyWhenFinishedCallback& callback,
270 BackgroundSyncStatus status, 270 BackgroundSyncStatus status,
271 BackgroundSyncState sync_state) { 271 BackgroundSyncState sync_state) {
272 DCHECK_CURRENTLY_ON(BrowserThread::IO); 272 DCHECK_CURRENTLY_ON(BrowserThread::IO);
273 callback.Run(static_cast<content::BackgroundSyncError>(status), sync_state); 273 callback.Run(static_cast<content::BackgroundSyncError>(status), sync_state);
274 } 274 }
275 275
276 } // namespace content 276 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698