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 #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 "bindings/modules/v8/RequestOrUSVString.h" | 10 #include "bindings/modules/v8/RequestOrUSVString.h" |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 79 PassRefPtr<EncodedFormData> attachedCredential() const { | 79 PassRefPtr<EncodedFormData> attachedCredential() const { |
| 80 return m_request->attachedCredential(); | 80 return m_request->attachedCredential(); |
| 81 } | 81 } |
| 82 | 82 |
| 83 DECLARE_VIRTUAL_TRACE(); | 83 DECLARE_VIRTUAL_TRACE(); |
| 84 | 84 |
| 85 private: | 85 private: |
| 86 Request(ScriptState*, FetchRequestData*, Headers*); | 86 Request(ScriptState*, FetchRequestData*, Headers*); |
| 87 Request(ScriptState*, FetchRequestData*); | 87 Request(ScriptState*, FetchRequestData*); |
| 88 | 88 |
| 89 const FetchRequestData* request() const { return m_request; } | 89 const FetchRequestData* getRequest() const { return m_request; } |
|
yhirano
2016/12/16 14:52:37
This is an inline trivial getter. My understanding
Łukasz Anforowicz
2016/12/16 17:15:03
1. We plan to use a clang tool to rewrite most ide
dcheng
2016/12/20 00:49:49
FWIW, I've asked jyasskin to amend the New Blink S
| |
| 90 static Request* createRequestWithRequestOrString(ScriptState*, | 90 static Request* createRequestWithRequestOrString(ScriptState*, |
| 91 Request*, | 91 Request*, |
| 92 const String&, | 92 const String&, |
| 93 RequestInit&, | 93 RequestInit&, |
| 94 ExceptionState&); | 94 ExceptionState&); |
| 95 | 95 |
| 96 String mimeType() const override; | 96 String mimeType() const override; |
| 97 void refreshBody(ScriptState*); | 97 void refreshBody(ScriptState*); |
| 98 | 98 |
| 99 const Member<FetchRequestData> m_request; | 99 const Member<FetchRequestData> m_request; |
| 100 const Member<Headers> m_headers; | 100 const Member<Headers> m_headers; |
| 101 }; | 101 }; |
| 102 | 102 |
| 103 } // namespace blink | 103 } // namespace blink |
| 104 | 104 |
| 105 #endif // Request_h | 105 #endif // Request_h |
| OLD | NEW |