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

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

Issue 546153002: Patch on top of https://codereview.chromium.org/433793002/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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
« no previous file with comments | « Source/modules/serviceworkers/Request.cpp ('k') | Source/modules/serviceworkers/Response.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 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 21 matching lines...) Expand all
32 static Response* create(const WebServiceWorkerResponse&); 32 static Response* create(const WebServiceWorkerResponse&);
33 33
34 String type() const; 34 String type() const;
35 String url() const; 35 String url() const;
36 unsigned short status() const; 36 unsigned short status() const;
37 String statusText() const; 37 String statusText() const;
38 Headers* headers() const; 38 Headers* headers() const;
39 39
40 FetchBodyStream* body(ExecutionContext*); 40 FetchBodyStream* body(ExecutionContext*);
41 41
42 void populateWebServiceWorkerResponse(WebServiceWorkerResponse&); 42 void populateWebServiceWorkerResponse(WebServiceWorkerResponse&) const;
43 43
44 void trace(Visitor*); 44 void trace(Visitor*);
45 45
46 private: 46 private:
47 Response(); 47 Response();
48 explicit Response(FetchResponseData*); 48 explicit Response(FetchResponseData*);
49 explicit Response(const WebServiceWorkerResponse&); 49 explicit Response(const WebServiceWorkerResponse&);
50 50
51 Member<FetchResponseData> m_response; 51 Member<FetchResponseData> m_response;
52 Member<Headers> m_headers; 52 Member<Headers> m_headers;
53 Member<FetchBodyStream> m_fetchBodyStream; 53 Member<FetchBodyStream> m_fetchBodyStream;
54 }; 54 };
55 55
56 } // namespace blink 56 } // namespace blink
57 57
58 #endif // Response_h 58 #endif // Response_h
OLDNEW
« no previous file with comments | « Source/modules/serviceworkers/Request.cpp ('k') | Source/modules/serviceworkers/Response.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698