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

Side by Side Diff: third_party/WebKit/Source/modules/cachestorage/CacheStorage.h

Issue 2846843002: [blink] Unique pointers in Platform.h (Closed)
Patch Set: fix compilation (and again) Created 3 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CacheStorage_h 5 #ifndef CacheStorage_h
6 #define CacheStorage_h 6 #define CacheStorage_h
7 7
8 #include <memory> 8 #include <memory>
9 #include "bindings/core/v8/ScriptPromise.h" 9 #include "bindings/core/v8/ScriptPromise.h"
10 #include "modules/cachestorage/Cache.h" 10 #include "modules/cachestorage/Cache.h"
(...skipping 11 matching lines...) Expand all
22 class Cache; 22 class Cache;
23 class WebServiceWorkerCacheStorage; 23 class WebServiceWorkerCacheStorage;
24 24
25 class CacheStorage final : public GarbageCollectedFinalized<CacheStorage>, 25 class CacheStorage final : public GarbageCollectedFinalized<CacheStorage>,
26 public ScriptWrappable { 26 public ScriptWrappable {
27 DEFINE_WRAPPERTYPEINFO(); 27 DEFINE_WRAPPERTYPEINFO();
28 WTF_MAKE_NONCOPYABLE(CacheStorage); 28 WTF_MAKE_NONCOPYABLE(CacheStorage);
29 29
30 public: 30 public:
31 static CacheStorage* Create(GlobalFetch::ScopedFetcher*, 31 static CacheStorage* Create(GlobalFetch::ScopedFetcher*,
32 WebServiceWorkerCacheStorage*); 32 std::unique_ptr<WebServiceWorkerCacheStorage>);
33 ~CacheStorage(); 33 ~CacheStorage();
34 void Dispose(); 34 void Dispose();
35 35
36 ScriptPromise open(ScriptState*, const String& cache_name, ExceptionState&); 36 ScriptPromise open(ScriptState*, const String& cache_name, ExceptionState&);
37 ScriptPromise has(ScriptState*, const String& cache_name, ExceptionState&); 37 ScriptPromise has(ScriptState*, const String& cache_name, ExceptionState&);
38 ScriptPromise deleteFunction(ScriptState*, 38 ScriptPromise deleteFunction(ScriptState*,
39 const String& cache_name, 39 const String& cache_name,
40 ExceptionState&); 40 ExceptionState&);
41 ScriptPromise keys(ScriptState*, ExceptionState&); 41 ScriptPromise keys(ScriptState*, ExceptionState&);
42 ScriptPromise match(ScriptState*, 42 ScriptPromise match(ScriptState*,
(...skipping 19 matching lines...) Expand all
62 const Request*, 62 const Request*,
63 const CacheQueryOptions&); 63 const CacheQueryOptions&);
64 64
65 Member<GlobalFetch::ScopedFetcher> scoped_fetcher_; 65 Member<GlobalFetch::ScopedFetcher> scoped_fetcher_;
66 std::unique_ptr<WebServiceWorkerCacheStorage> web_cache_storage_; 66 std::unique_ptr<WebServiceWorkerCacheStorage> web_cache_storage_;
67 }; 67 };
68 68
69 } // namespace blink 69 } // namespace blink
70 70
71 #endif // CacheStorage_h 71 #endif // CacheStorage_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/testing/Internals.cpp ('k') | third_party/WebKit/Source/modules/cachestorage/CacheStorage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698