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

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

Issue 411973004: Stitch CacheStorage messages to implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cache_storage_stitch
Patch Set: Addresses all comments from PS5 Created 6 years, 4 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_VERSION_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 278
279 void ScheduleStopWorker(); 279 void ScheduleStopWorker();
280 void DoomInternal(); 280 void DoomInternal();
281 281
282 const int64 version_id_; 282 const int64 version_id_;
283 int64 registration_id_; 283 int64 registration_id_;
284 GURL script_url_; 284 GURL script_url_;
285 GURL scope_; 285 GURL scope_;
286 Status status_; 286 Status status_;
287 scoped_ptr<EmbeddedWorkerInstance> embedded_worker_; 287 scoped_ptr<EmbeddedWorkerInstance> embedded_worker_;
288 scoped_ptr<ServiceWorkerStoresListener> stores_listener_; 288 scoped_ptr<ServiceWorkerCacheListener> cache_listener_;
289 std::vector<StatusCallback> start_callbacks_; 289 std::vector<StatusCallback> start_callbacks_;
290 std::vector<StatusCallback> stop_callbacks_; 290 std::vector<StatusCallback> stop_callbacks_;
291 std::vector<base::Closure> status_change_callbacks_; 291 std::vector<base::Closure> status_change_callbacks_;
292 292
293 // Message callbacks. 293 // Message callbacks.
294 IDMap<StatusCallback, IDMapOwnPointer> activate_callbacks_; 294 IDMap<StatusCallback, IDMapOwnPointer> activate_callbacks_;
295 IDMap<StatusCallback, IDMapOwnPointer> install_callbacks_; 295 IDMap<StatusCallback, IDMapOwnPointer> install_callbacks_;
296 IDMap<FetchCallback, IDMapOwnPointer> fetch_callbacks_; 296 IDMap<FetchCallback, IDMapOwnPointer> fetch_callbacks_;
297 IDMap<StatusCallback, IDMapOwnPointer> sync_callbacks_; 297 IDMap<StatusCallback, IDMapOwnPointer> sync_callbacks_;
298 IDMap<StatusCallback, IDMapOwnPointer> push_callbacks_; 298 IDMap<StatusCallback, IDMapOwnPointer> push_callbacks_;
299 299
300 ControlleeMap controllee_map_; 300 ControlleeMap controllee_map_;
301 ControlleeByIDMap controllee_by_id_; 301 ControlleeByIDMap controllee_by_id_;
302 base::WeakPtr<ServiceWorkerContextCore> context_; 302 base::WeakPtr<ServiceWorkerContextCore> context_;
303 ObserverList<Listener> listeners_; 303 ObserverList<Listener> listeners_;
304 ServiceWorkerScriptCacheMap script_cache_map_; 304 ServiceWorkerScriptCacheMap script_cache_map_;
305 base::OneShotTimer<ServiceWorkerVersion> stop_worker_timer_; 305 base::OneShotTimer<ServiceWorkerVersion> stop_worker_timer_;
306 base::OneShotTimer<ServiceWorkerVersion> update_timer_; 306 base::OneShotTimer<ServiceWorkerVersion> update_timer_;
307 bool is_doomed_; 307 bool is_doomed_;
308 308
309 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; 309 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_;
310 310
311 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); 311 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion);
312 }; 312 };
313 313
314 } // namespace content 314 } // namespace content
315 315
316 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 316 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698