| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 GlobalCacheStorage_h | 5 #ifndef GlobalCacheStorage_h |
| 6 #define GlobalCacheStorage_h | 6 #define GlobalCacheStorage_h |
| 7 | 7 |
| 8 #include "wtf/Allocator.h" | 8 #include "platform/wtf/Allocator.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 | 11 |
| 12 class CacheStorage; | 12 class CacheStorage; |
| 13 class ExceptionState; | 13 class ExceptionState; |
| 14 class LocalDOMWindow; | 14 class LocalDOMWindow; |
| 15 class WorkerGlobalScope; | 15 class WorkerGlobalScope; |
| 16 | 16 |
| 17 class GlobalCacheStorage { | 17 class GlobalCacheStorage { |
| 18 STATIC_ONLY(GlobalCacheStorage); | 18 STATIC_ONLY(GlobalCacheStorage); |
| 19 | 19 |
| 20 public: | 20 public: |
| 21 static CacheStorage* caches(LocalDOMWindow&, ExceptionState&); | 21 static CacheStorage* caches(LocalDOMWindow&, ExceptionState&); |
| 22 static CacheStorage* caches(WorkerGlobalScope&, ExceptionState&); | 22 static CacheStorage* caches(WorkerGlobalScope&, ExceptionState&); |
| 23 }; | 23 }; |
| 24 | 24 |
| 25 } // namespace blink | 25 } // namespace blink |
| 26 | 26 |
| 27 #endif // GlobalCacheStorage_h | 27 #endif // GlobalCacheStorage_h |
| OLD | NEW |