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

Side by Side Diff: content/browser/background_sync/background_sync_manager.h

Issue 1039763002: Cache Storage: Move files to content/*/cache_storage, rename classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: GN fix Created 5 years, 9 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
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/cache_storage/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_MANAGER_H_
6 #define CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_MANAGER_H_ 6 #define CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_MANAGER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 10
11 #include "base/callback_forward.h" 11 #include "base/callback_forward.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "content/browser/service_worker/service_worker_cache_scheduler.h" 14 #include "content/browser/cache_storage/cache_storage_scheduler.h"
15 #include "content/browser/service_worker/service_worker_storage.h" 15 #include "content/browser/service_worker/service_worker_storage.h"
16 #include "content/common/content_export.h" 16 #include "content/common/content_export.h"
17 #include "content/common/service_worker/service_worker_status_code.h" 17 #include "content/common/service_worker/service_worker_status_code.h"
18 #include "url/gurl.h" 18 #include "url/gurl.h"
19 19
20 namespace content { 20 namespace content {
21 21
22 class ServiceWorkerContextWrapper; 22 class ServiceWorkerContextWrapper;
23 23
24 // BackgroundSyncManager manages and stores the set of background sync 24 // BackgroundSyncManager manages and stores the set of background sync
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 const StatusAndRegistrationCallback& callback); 201 const StatusAndRegistrationCallback& callback);
202 202
203 // Operation Scheduling callbacks 203 // Operation Scheduling callbacks
204 void PendingStatusAndRegistrationCallback( 204 void PendingStatusAndRegistrationCallback(
205 const StatusAndRegistrationCallback& callback, 205 const StatusAndRegistrationCallback& callback,
206 ErrorType error, 206 ErrorType error,
207 const BackgroundSyncRegistration& sync_registration); 207 const BackgroundSyncRegistration& sync_registration);
208 void PendingStatusCallback(const StatusCallback& callback, ErrorType error); 208 void PendingStatusCallback(const StatusCallback& callback, ErrorType error);
209 209
210 SWIdToRegistrationsMap sw_to_registrations_map_; 210 SWIdToRegistrationsMap sw_to_registrations_map_;
211 ServiceWorkerCacheScheduler op_scheduler_; 211 CacheStorageScheduler op_scheduler_;
212 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_; 212 scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_;
213 213
214 base::WeakPtrFactory<BackgroundSyncManager> weak_ptr_factory_; 214 base::WeakPtrFactory<BackgroundSyncManager> weak_ptr_factory_;
215 215
216 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncManager); 216 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncManager);
217 }; 217 };
218 218
219 } // namespace content 219 } // namespace content
220 220
221 #endif // CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_MANAGER_H_ 221 #endif // CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_MANAGER_H_
OLDNEW
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/cache_storage/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698