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

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

Issue 516603004: [ServiceWorker] Support setting body to Request object in ServiceWorker. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: incorporated yhirano's comment 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
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 Request_h 5 #ifndef Request_h
6 #define Request_h 6 #define Request_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 28 matching lines...) Expand all
39 PassRefPtrWillBeRawPtr<FetchRequestData> request() { return m_request; } 39 PassRefPtrWillBeRawPtr<FetchRequestData> request() { return m_request; }
40 40
41 String method() const; 41 String method() const;
42 String url() const; 42 String url() const;
43 PassRefPtrWillBeRawPtr<Headers> headers() const { return m_headers; } 43 PassRefPtrWillBeRawPtr<Headers> headers() const { return m_headers; }
44 PassRefPtrWillBeRawPtr<FetchBodyStream> body(ExecutionContext*); 44 PassRefPtrWillBeRawPtr<FetchBodyStream> body(ExecutionContext*);
45 String referrer() const; 45 String referrer() const;
46 String mode() const; 46 String mode() const;
47 String credentials() const; 47 String credentials() const;
48 48
49 void setBodyBlobHandle(PassRefPtr<BlobDataHandle>);
yhirano 2014/09/01 06:21:56 Is this function used?
horo 2014/09/01 07:29:32 Yes. It is called in createRequestWithRequestData(
yhirano 2014/09/01 08:36:30 Sorry I overlooked it.
50
49 void trace(Visitor*); 51 void trace(Visitor*);
50 52
51 private: 53 private:
52 explicit Request(PassRefPtrWillBeRawPtr<FetchRequestData>); 54 explicit Request(PassRefPtrWillBeRawPtr<FetchRequestData>);
53 explicit Request(const WebServiceWorkerRequest&); 55 explicit Request(const WebServiceWorkerRequest&);
54 56
55 RefPtrWillBeMember<FetchRequestData> m_request; 57 RefPtrWillBeMember<FetchRequestData> m_request;
56 RefPtrWillBeMember<Headers> m_headers; 58 RefPtrWillBeMember<Headers> m_headers;
57 RefPtrWillBeMember<FetchBodyStream> m_fetchBodyStream; 59 RefPtrWillBeMember<FetchBodyStream> m_fetchBodyStream;
58 }; 60 };
59 61
60 } // namespace blink 62 } // namespace blink
61 63
62 #endif // Request_h 64 #endif // Request_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698