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

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

Issue 287843002: ServiceWorker: DB functions should return status code instead of boolean (2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 ServiceWorkerStatusCode status); 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 ServiceWorkerStatusCode status);
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 ServiceWorkerStatusCode status);
152 void DidReadRegistrationForId( 152 void DidReadRegistrationForId(
153 const FindRegistrationCallback& callback, 153 const FindRegistrationCallback& callback,
154 const ServiceWorkerDatabase::RegistrationData& registration, 154 const ServiceWorkerDatabase::RegistrationData& registration,
155 const ResourceList& resources, 155 const ResourceList& resources,
156 ServiceWorkerStatusCode status); 156 ServiceWorkerStatusCode status);
157 void DidGetAllRegistrations( 157 void DidGetAllRegistrations(
158 const GetAllRegistrationInfosCallback& callback, 158 const GetAllRegistrationInfosCallback& callback,
159 RegistrationList* registrations, 159 RegistrationList* registrations,
160 bool success); 160 ServiceWorkerStatusCode status);
161 void DidStoreRegistration( 161 void DidStoreRegistration(
162 const GURL& origin, 162 const GURL& origin,
163 const StatusCallback& callback, 163 const StatusCallback& callback,
164 bool success); 164 bool success);
165 void DidDeleteRegistration( 165 void DidDeleteRegistration(
166 const GURL& origin, 166 const GURL& origin,
167 const StatusCallback& callback, 167 const StatusCallback& callback,
168 bool origin_is_deletable, 168 bool origin_is_deletable,
169 ServiceWorkerStatusCode status); 169 ServiceWorkerStatusCode status);
170 170
(...skipping 44 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