OLD | NEW |
---|---|
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 Loading... | |
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 |
OLD | NEW |