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

Side by Side Diff: content/browser/service_worker/service_worker_storage.h

Issue 998173002: Revise ServiceWorker DevTools protocols. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use DCHECK_CURRENTLY_ON 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 20 matching lines...) Expand all
31 namespace storage { 31 namespace storage {
32 class QuotaManagerProxy; 32 class QuotaManagerProxy;
33 class SpecialStoragePolicy; 33 class SpecialStoragePolicy;
34 } 34 }
35 35
36 namespace content { 36 namespace content {
37 37
38 class ServiceWorkerContextCore; 38 class ServiceWorkerContextCore;
39 class ServiceWorkerDiskCache; 39 class ServiceWorkerDiskCache;
40 class ServiceWorkerRegistration; 40 class ServiceWorkerRegistration;
41 class ServiceWorkerRegistrationInfo;
42 class ServiceWorkerResponseMetadataWriter; 41 class ServiceWorkerResponseMetadataWriter;
43 class ServiceWorkerResponseReader; 42 class ServiceWorkerResponseReader;
44 class ServiceWorkerResponseWriter; 43 class ServiceWorkerResponseWriter;
44 struct ServiceWorkerRegistrationInfo;
45 45
46 // This class provides an interface to store and retrieve ServiceWorker 46 // This class provides an interface to store and retrieve ServiceWorker
47 // registration data. 47 // registration data.
48 class CONTENT_EXPORT ServiceWorkerStorage 48 class CONTENT_EXPORT ServiceWorkerStorage
49 : NON_EXPORTED_BASE(public ServiceWorkerVersion::Listener) { 49 : NON_EXPORTED_BASE(public ServiceWorkerVersion::Listener) {
50 public: 50 public:
51 typedef std::vector<ServiceWorkerDatabase::ResourceRecord> ResourceList; 51 typedef std::vector<ServiceWorkerDatabase::ResourceRecord> ResourceList;
52 typedef base::Callback<void(ServiceWorkerStatusCode status)> StatusCallback; 52 typedef base::Callback<void(ServiceWorkerStatusCode status)> StatusCallback;
53 typedef base::Callback<void(ServiceWorkerStatusCode status, 53 typedef base::Callback<void(ServiceWorkerStatusCode status,
54 const scoped_refptr<ServiceWorkerRegistration>& 54 const scoped_refptr<ServiceWorkerRegistration>&
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 std::set<int64> pending_deletions_; 490 std::set<int64> pending_deletions_;
491 491
492 base::WeakPtrFactory<ServiceWorkerStorage> weak_factory_; 492 base::WeakPtrFactory<ServiceWorkerStorage> weak_factory_;
493 493
494 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerStorage); 494 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerStorage);
495 }; 495 };
496 496
497 } // namespace content 497 } // namespace content
498 498
499 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_ 499 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698