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

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

Issue 433793002: Introducing the WebServiceWorkerCache. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix running with partial implementation 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 | Annotate | Revision Log
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 Response_h 5 #ifndef Response_h
6 #define Response_h 6 #define Response_h
7 7
8 #include "bindings/core/v8/Dictionary.h" 8 #include "bindings/core/v8/Dictionary.h"
9 #include "bindings/core/v8/ScriptWrappable.h" 9 #include "bindings/core/v8/ScriptWrappable.h"
10 #include "modules/serviceworkers/FetchBodyStream.h" 10 #include "modules/serviceworkers/FetchBodyStream.h"
(...skipping 14 matching lines...) Expand all
25 class ResponseInit; 25 class ResponseInit;
26 26
27 class Response FINAL : public RefCountedWillBeGarbageCollected<Response>, public ScriptWrappable { 27 class Response FINAL : public RefCountedWillBeGarbageCollected<Response>, public ScriptWrappable {
28 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(Response); 28 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(Response);
29 public: 29 public:
30 static PassRefPtrWillBeRawPtr<Response> create(Blob*, const Dictionary&, Exc eptionState&); 30 static PassRefPtrWillBeRawPtr<Response> create(Blob*, const Dictionary&, Exc eptionState&);
31 static PassRefPtrWillBeRawPtr<Response> create(const String&, const Dictiona ry&, ExceptionState&); 31 static PassRefPtrWillBeRawPtr<Response> create(const String&, const Dictiona ry&, ExceptionState&);
32 static PassRefPtrWillBeRawPtr<Response> create(Blob*, const ResponseInit&, E xceptionState&); 32 static PassRefPtrWillBeRawPtr<Response> create(Blob*, const ResponseInit&, E xceptionState&);
33 33
34 static PassRefPtrWillBeRawPtr<Response> create(PassRefPtrWillBeRawPtr<FetchR esponseData>); 34 static PassRefPtrWillBeRawPtr<Response> create(PassRefPtrWillBeRawPtr<FetchR esponseData>);
35 35
dominicc (has gone to gerrit) 2014/08/11 01:40:41 Maybe tighten up the vertical whitespace here?
gavinp 2014/08/13 23:25:23 Done.
36 static PassRefPtrWillBeRawPtr<Response> create(const WebServiceWorkerRespons e&);
37
36 String type() const; 38 String type() const;
37 String url() const; 39 String url() const;
38 unsigned short status() const; 40 unsigned short status() const;
39 String statusText() const; 41 String statusText() const;
40 PassRefPtrWillBeRawPtr<Headers> headers() const; 42 PassRefPtrWillBeRawPtr<Headers> headers() const;
41 43
42 PassRefPtrWillBeRawPtr<FetchBodyStream> body(ExecutionContext*); 44 PassRefPtrWillBeRawPtr<FetchBodyStream> body(ExecutionContext*);
43 45
44 void populateWebServiceWorkerResponse(blink::WebServiceWorkerResponse&); 46 void populateWebServiceWorkerResponse(blink::WebServiceWorkerResponse&);
45 47
46 void trace(Visitor*); 48 void trace(Visitor*);
47 49
48 private: 50 private:
49 Response(); 51 Response();
50 explicit Response(PassRefPtrWillBeRawPtr<FetchResponseData>); 52 explicit Response(PassRefPtrWillBeRawPtr<FetchResponseData>);
53 explicit Response(const WebServiceWorkerResponse&);
51 54
52 RefPtrWillBeMember<FetchResponseData> m_response; 55 RefPtrWillBeMember<FetchResponseData> m_response;
53 RefPtrWillBeMember<Headers> m_headers; 56 RefPtrWillBeMember<Headers> m_headers;
54 RefPtrWillBeMember<FetchBodyStream> m_fetchBodyStream; 57 RefPtrWillBeMember<FetchBodyStream> m_fetchBodyStream;
55 }; 58 };
56 59
57 } // namespace blink 60 } // namespace blink
58 61
59 #endif // Response_h 62 #endif // Response_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698