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

Side by Side Diff: third_party/WebKit/Source/modules/fetch/Request.h

Issue 2573523002: Rename request() method to getRequest(). (Closed)
Patch Set: Fixing a mistake I've made in USBDevice.cpp Created 4 years 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 "bindings/modules/v8/RequestOrUSVString.h" 10 #include "bindings/modules/v8/RequestOrUSVString.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698