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

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

Issue 1910373002: Create platform/mojo and move MojoHelper.h there (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase and add mojo/DEPS 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"
11 #include "core/EventTypeNames.h" 11 #include "core/EventTypeNames.h"
12 #include "core/dom/DOMException.h" 12 #include "core/dom/DOMException.h"
13 #include "core/dom/ExceptionCode.h" 13 #include "core/dom/ExceptionCode.h"
14 #include "core/events/Event.h" 14 #include "core/events/Event.h"
15 #include "core/events/EventQueue.h" 15 #include "core/events/EventQueue.h"
16 #include "modules/EventTargetModulesNames.h" 16 #include "modules/EventTargetModulesNames.h"
17 #include "modules/payments/PaymentItem.h" 17 #include "modules/payments/PaymentItem.h"
18 #include "modules/payments/PaymentResponse.h" 18 #include "modules/payments/PaymentResponse.h"
19 #include "modules/payments/PaymentsValidators.h" 19 #include "modules/payments/PaymentsValidators.h"
20 #include "modules/payments/ShippingAddress.h" 20 #include "modules/payments/ShippingAddress.h"
21 #include "modules/payments/ShippingOption.h" 21 #include "modules/payments/ShippingOption.h"
22 #include "mojo/public/cpp/bindings/interface_request.h" 22 #include "mojo/public/cpp/bindings/interface_request.h"
23 #include "mojo/public/cpp/bindings/wtf_array.h" 23 #include "mojo/public/cpp/bindings/wtf_array.h"
24 #include "platform/MojoHelper.h" 24 #include "platform/mojo/MojoHelper.h"
25 #include "public/platform/ServiceRegistry.h" 25 #include "public/platform/ServiceRegistry.h"
26 #include <utility> 26 #include <utility>
27 27
28 namespace mojo { 28 namespace mojo {
29 29
30 using blink::mojom::wtf::CurrencyAmount; 30 using blink::mojom::wtf::CurrencyAmount;
31 using blink::mojom::wtf::CurrencyAmountPtr; 31 using blink::mojom::wtf::CurrencyAmountPtr;
32 using blink::mojom::wtf::PaymentDetails; 32 using blink::mojom::wtf::PaymentDetails;
33 using blink::mojom::wtf::PaymentDetailsPtr; 33 using blink::mojom::wtf::PaymentDetailsPtr;
34 using blink::mojom::wtf::PaymentItem; 34 using blink::mojom::wtf::PaymentItem;
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 void PaymentRequest::cleanUp() 365 void PaymentRequest::cleanUp()
366 { 366 {
367 m_completeResolver.clear(); 367 m_completeResolver.clear();
368 m_showResolver.clear(); 368 m_showResolver.clear();
369 if (m_clientBinding.is_bound()) 369 if (m_clientBinding.is_bound())
370 m_clientBinding.Close(); 370 m_clientBinding.Close();
371 m_paymentProvider.reset(); 371 m_paymentProvider.reset();
372 } 372 }
373 373
374 } // namespace blink 374 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/battery/BatteryDispatcher.cpp ('k') | third_party/WebKit/Source/modules/webusb/USB.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698