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

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

Issue 617003003: Make WebServiceWorkerResponse support ResponseType (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Put WebServiceWorkerResponseType enum in its own file (so browser can load it) Created 6 years, 2 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 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/Body.h" 10 #include "modules/serviceworkers/Body.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 Response* clone() const; 47 Response* clone() const;
48 48
49 void populateWebServiceWorkerResponse(WebServiceWorkerResponse&); 49 void populateWebServiceWorkerResponse(WebServiceWorkerResponse&);
50 50
51 virtual void trace(Visitor*) OVERRIDE; 51 virtual void trace(Visitor*) OVERRIDE;
52 52
53 private: 53 private:
54 explicit Response(const Response&); 54 explicit Response(const Response&);
55 explicit Response(ExecutionContext*); 55 explicit Response(ExecutionContext*);
56 Response(ExecutionContext*, FetchResponseData*); 56 Response(ExecutionContext*, FetchResponseData*);
57 Response(ExecutionContext*, const WebServiceWorkerResponse&);
58 57
59 virtual PassRefPtr<BlobDataHandle> blobDataHandle() OVERRIDE; 58 virtual PassRefPtr<BlobDataHandle> blobDataHandle() OVERRIDE;
60 59
61 const Member<FetchResponseData> m_response; 60 const Member<FetchResponseData> m_response;
62 const Member<Headers> m_headers; 61 const Member<Headers> m_headers;
63 }; 62 };
64 63
65 } // namespace blink 64 } // namespace blink
66 65
67 #endif // Response_h 66 #endif // Response_h
OLDNEW
« no previous file with comments | « Source/modules/serviceworkers/FetchResponseDataTest.cpp ('k') | Source/modules/serviceworkers/Response.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698