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

Side by Side Diff: Source/modules/serviceworkers/Cache.h

Issue 708703002: Service Worker: Cache.put() consumes request/response bodies (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Inline hasBody methods Created 6 years, 1 month 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
« no previous file with comments | « Source/modules/serviceworkers/Body.h ('k') | Source/modules/serviceworkers/Cache.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 Cache_h 5 #ifndef Cache_h
6 #define Cache_h 6 #define Cache_h
7 7
8 #include "bindings/core/v8/ScriptPromise.h" 8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "bindings/core/v8/ScriptWrappable.h" 9 #include "bindings/core/v8/ScriptWrappable.h"
10 #include "bindings/modules/v8/UnionTypesModules.h" 10 #include "bindings/modules/v8/UnionTypesModules.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 void trace(Visitor*) { } 48 void trace(Visitor*) { }
49 49
50 private: 50 private:
51 explicit Cache(WebServiceWorkerCache*); 51 explicit Cache(WebServiceWorkerCache*);
52 52
53 ScriptPromise matchImpl(ScriptState*, const Request*, const CacheQueryOption s&); 53 ScriptPromise matchImpl(ScriptState*, const Request*, const CacheQueryOption s&);
54 ScriptPromise matchAllImpl(ScriptState*, const Request*, const CacheQueryOpt ions&); 54 ScriptPromise matchAllImpl(ScriptState*, const Request*, const CacheQueryOpt ions&);
55 ScriptPromise addImpl(ScriptState*, const Request*); 55 ScriptPromise addImpl(ScriptState*, const Request*);
56 ScriptPromise addAllImpl(ScriptState*, const Vector<const Request*>); 56 ScriptPromise addAllImpl(ScriptState*, const Vector<const Request*>);
57 ScriptPromise deleteImpl(ScriptState*, const Request*, const CacheQueryOptio ns&); 57 ScriptPromise deleteImpl(ScriptState*, const Request*, const CacheQueryOptio ns&);
58 ScriptPromise putImpl(ScriptState*, const Request*, Response*); 58 ScriptPromise putImpl(ScriptState*, Request*, Response*);
59 ScriptPromise keysImpl(ScriptState*); 59 ScriptPromise keysImpl(ScriptState*);
60 ScriptPromise keysImpl(ScriptState*, const Request*, const CacheQueryOptions &); 60 ScriptPromise keysImpl(ScriptState*, const Request*, const CacheQueryOptions &);
61 61
62 OwnPtr<WebServiceWorkerCache> m_webCache; 62 OwnPtr<WebServiceWorkerCache> m_webCache;
63 }; 63 };
64 64
65 } // namespace blink 65 } // namespace blink
66 66
67 #endif // Cache_h 67 #endif // Cache_h
OLDNEW
« no previous file with comments | « Source/modules/serviceworkers/Body.h ('k') | Source/modules/serviceworkers/Cache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698