Chromium Code Reviews| 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 | |
|
dominicc (has gone to gerrit)
2014/08/11 01:40:41
No.
gavinp
2014/08/13 23:25:23
No!
| |
| 6 #define Request_h | 7 #define Request_h |
| 7 | 8 |
| 8 #include "bindings/core/v8/Dictionary.h" | 9 #include "bindings/core/v8/Dictionary.h" |
| 9 #include "bindings/core/v8/ScriptWrappable.h" | 10 #include "bindings/core/v8/ScriptWrappable.h" |
| 10 #include "modules/serviceworkers/FetchRequestData.h" | 11 #include "modules/serviceworkers/FetchRequestData.h" |
| 11 #include "modules/serviceworkers/Headers.h" | 12 #include "modules/serviceworkers/Headers.h" |
| 12 #include "platform/heap/Handle.h" | 13 #include "platform/heap/Handle.h" |
| 13 #include "platform/weborigin/KURL.h" | 14 #include "platform/weborigin/KURL.h" |
| 14 #include "wtf/RefCounted.h" | 15 #include "wtf/RefCounted.h" |
| 15 #include "wtf/RefPtr.h" | 16 #include "wtf/RefPtr.h" |
| (...skipping 23 matching lines...) Expand all Loading... | |
| 39 PassRefPtrWillBeRawPtr<FetchRequestData> request() { return m_request; } | 40 PassRefPtrWillBeRawPtr<FetchRequestData> request() { return m_request; } |
| 40 | 41 |
| 41 String method() const; | 42 String method() const; |
| 42 String url() const; | 43 String url() const; |
| 43 PassRefPtrWillBeRawPtr<Headers> headers() const { return m_headers; } | 44 PassRefPtrWillBeRawPtr<Headers> headers() const { return m_headers; } |
| 44 // FIXME: Support body. | 45 // FIXME: Support body. |
| 45 String referrer() const; | 46 String referrer() const; |
| 46 String mode() const; | 47 String mode() const; |
| 47 String credentials() const; | 48 String credentials() const; |
| 48 | 49 |
| 50 void populateWebServiceWorkerRequest(WebServiceWorkerRequest&); | |
| 51 | |
| 49 void trace(Visitor*); | 52 void trace(Visitor*); |
| 50 | 53 |
| 51 private: | 54 private: |
| 52 explicit Request(PassRefPtrWillBeRawPtr<FetchRequestData>); | 55 explicit Request(PassRefPtrWillBeRawPtr<FetchRequestData>); |
| 53 explicit Request(const blink::WebServiceWorkerRequest&); | 56 explicit Request(const blink::WebServiceWorkerRequest&); |
| 54 | 57 |
| 55 RefPtrWillBeMember<FetchRequestData> m_request; | 58 RefPtrWillBeMember<FetchRequestData> m_request; |
| 56 RefPtrWillBeMember<Headers> m_headers; | 59 RefPtrWillBeMember<Headers> m_headers; |
| 57 }; | 60 }; |
| 58 | 61 |
| 59 } // namespace blink | 62 } // namespace blink |
| 60 | 63 |
| 61 #endif // Request_h | 64 #endif // Request_h |
| OLD | NEW |