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

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

Issue 633273002: Added quota client for serviceworker. Enables 'clear past <time> data'. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/callback.h" 13 #include "base/callback.h"
14 #include "base/gtest_prod_util.h" 14 #include "base/gtest_prod_util.h"
15 #include "base/id_map.h" 15 #include "base/id_map.h"
16 #include "base/memory/ref_counted.h" 16 #include "base/memory/ref_counted.h"
17 #include "base/memory/scoped_ptr.h" 17 #include "base/memory/scoped_ptr.h"
18 #include "base/observer_list.h" 18 #include "base/observer_list.h"
19 #include "base/time/time.h"
19 #include "base/timer/timer.h" 20 #include "base/timer/timer.h"
20 #include "content/browser/service_worker/embedded_worker_instance.h" 21 #include "content/browser/service_worker/embedded_worker_instance.h"
21 #include "content/browser/service_worker/service_worker_cache_listener.h" 22 #include "content/browser/service_worker/service_worker_cache_listener.h"
22 #include "content/browser/service_worker/service_worker_script_cache_map.h" 23 #include "content/browser/service_worker/service_worker_script_cache_map.h"
23 #include "content/common/content_export.h" 24 #include "content/common/content_export.h"
24 #include "content/common/service_worker/service_worker_status_code.h" 25 #include "content/common/service_worker/service_worker_status_code.h"
25 #include "content/common/service_worker/service_worker_types.h" 26 #include "content/common/service_worker/service_worker_types.h"
26 #include "third_party/WebKit/public/platform/WebServiceWorkerEventResult.h" 27 #include "third_party/WebKit/public/platform/WebServiceWorkerEventResult.h"
27 28
28 class GURL; 29 class GURL;
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 IDMap<StatusCallback, IDMapOwnPointer> push_callbacks_; 288 IDMap<StatusCallback, IDMapOwnPointer> push_callbacks_;
288 289
289 ControlleeMap controllee_map_; 290 ControlleeMap controllee_map_;
290 ControlleeByIDMap controllee_by_id_; 291 ControlleeByIDMap controllee_by_id_;
291 base::WeakPtr<ServiceWorkerContextCore> context_; 292 base::WeakPtr<ServiceWorkerContextCore> context_;
292 ObserverList<Listener> listeners_; 293 ObserverList<Listener> listeners_;
293 ServiceWorkerScriptCacheMap script_cache_map_; 294 ServiceWorkerScriptCacheMap script_cache_map_;
294 base::OneShotTimer<ServiceWorkerVersion> stop_worker_timer_; 295 base::OneShotTimer<ServiceWorkerVersion> stop_worker_timer_;
295 base::OneShotTimer<ServiceWorkerVersion> update_timer_; 296 base::OneShotTimer<ServiceWorkerVersion> update_timer_;
296 bool is_doomed_; 297 bool is_doomed_;
298 base::Time creation_time_;
jsbell 2014/10/08 19:26:41 Where is this used?
dmurph 2014/10/11 00:02:26 Oops, removed.
297 299
298 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; 300 base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_;
299 301
300 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion); 302 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerVersion);
301 }; 303 };
302 304
303 } // namespace content 305 } // namespace content
304 306
305 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_ 307 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_VERSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698