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

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

Issue 275103004: ServiceWorker: Database functions should return status code instead of boolean (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
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 <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 private: 131 private:
132 friend class ServiceWorkerStorageTest; 132 friend class ServiceWorkerStorageTest;
133 133
134 typedef std::vector<ServiceWorkerDatabase::RegistrationData> RegistrationList; 134 typedef std::vector<ServiceWorkerDatabase::RegistrationData> RegistrationList;
135 typedef std::vector<ServiceWorkerDatabase::ResourceRecord> ResourceList; 135 typedef std::vector<ServiceWorkerDatabase::ResourceRecord> ResourceList;
136 136
137 bool LazyInitialize( 137 bool LazyInitialize(
138 const base::Closure& callback); 138 const base::Closure& callback);
139 void DidReadInitialData( 139 void DidReadInitialData(
140 InitialData* data, 140 InitialData* data,
141 bool success); 141 ServiceWorkerStatusCode status);
142 void DidGetRegistrationsForPattern( 142 void DidGetRegistrationsForPattern(
143 const GURL& scope, 143 const GURL& scope,
144 const FindRegistrationCallback& callback, 144 const FindRegistrationCallback& callback,
145 RegistrationList* registrations, 145 RegistrationList* registrations,
146 bool succcess); 146 bool succcess);
147 void DidGetRegistrationsForDocument( 147 void DidGetRegistrationsForDocument(
148 const GURL& scope, 148 const GURL& scope,
149 const FindRegistrationCallback& callback, 149 const FindRegistrationCallback& callback,
150 RegistrationList* registrations, 150 RegistrationList* registrations,
151 bool succcess); 151 bool succcess);
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 scoped_ptr<ServiceWorkerDiskCache> disk_cache_; 215 scoped_ptr<ServiceWorkerDiskCache> disk_cache_;
216 216
217 base::WeakPtrFactory<ServiceWorkerStorage> weak_factory_; 217 base::WeakPtrFactory<ServiceWorkerStorage> weak_factory_;
218 218
219 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerStorage); 219 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerStorage);
220 }; 220 };
221 221
222 } // namespace content 222 } // namespace content
223 223
224 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_ 224 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_STORAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698