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

Side by Side Diff: third_party/WebKit/Source/modules/payments/PaymentRequest.cpp

Issue 1857143002: Oilpan: Remove RefCountedGarbageCollectedEventTargetWithInlineData (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #include "modules/payments/PaymentRequest.h" 5 #include "modules/payments/PaymentRequest.h"
6 6
7 #include "bindings/core/v8/ExceptionState.h" 7 #include "bindings/core/v8/ExceptionState.h"
8 #include "bindings/core/v8/JSONValuesForV8.h" 8 #include "bindings/core/v8/JSONValuesForV8.h"
9 #include "bindings/core/v8/ScriptPromiseResolver.h" 9 #include "bindings/core/v8/ScriptPromiseResolver.h"
10 #include "bindings/core/v8/ScriptState.h" 10 #include "bindings/core/v8/ScriptState.h"
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 return m_completeResolver->promise(); 201 return m_completeResolver->promise();
202 } 202 }
203 203
204 DEFINE_TRACE(PaymentRequest) 204 DEFINE_TRACE(PaymentRequest)
205 { 205 {
206 visitor->trace(m_details); 206 visitor->trace(m_details);
207 visitor->trace(m_options); 207 visitor->trace(m_options);
208 visitor->trace(m_shippingAddress); 208 visitor->trace(m_shippingAddress);
209 visitor->trace(m_showResolver); 209 visitor->trace(m_showResolver);
210 visitor->trace(m_completeResolver); 210 visitor->trace(m_completeResolver);
211 RefCountedGarbageCollectedEventTargetWithInlineData<PaymentRequest>::trace(v isitor); 211 EventTargetWithInlineData<PaymentRequest>::trace(visitor);
212 } 212 }
213 213
214 PaymentRequest::PaymentRequest(ScriptState* scriptState, const Vector<String>& s upportedMethods, const PaymentDetails& details, const PaymentOptions& options, c onst ScriptValue& data, ExceptionState& exceptionState) 214 PaymentRequest::PaymentRequest(ScriptState* scriptState, const Vector<String>& s upportedMethods, const PaymentDetails& details, const PaymentOptions& options, c onst ScriptValue& data, ExceptionState& exceptionState)
215 : m_scriptState(scriptState) 215 : m_scriptState(scriptState)
216 , m_supportedMethods(supportedMethods) 216 , m_supportedMethods(supportedMethods)
217 , m_details(details) 217 , m_details(details)
218 , m_options(options) 218 , m_options(options)
219 , m_clientBinding(this) 219 , m_clientBinding(this)
220 { 220 {
221 // TODO(rouslan): Also check for a top-level browsing context. 221 // TODO(rouslan): Also check for a top-level browsing context.
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 344
345 void PaymentRequest::cleanUp() 345 void PaymentRequest::cleanUp()
346 { 346 {
347 m_completeResolver.clear(); 347 m_completeResolver.clear();
348 m_showResolver.clear(); 348 m_showResolver.clear();
349 m_clientBinding.Close(); 349 m_clientBinding.Close();
350 m_paymentProvider.reset(); 350 m_paymentProvider.reset();
351 } 351 }
352 352
353 } // namespace blink 353 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698