| OLD | NEW |
| 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 #import "ios/chrome/browser/payments/payment_request_manager.h" | 5 #import "ios/chrome/browser/payments/payment_request_manager.h" |
| 6 | 6 |
| 7 #include "base/ios/block_types.h" | 7 #include "base/ios/block_types.h" |
| 8 #include "base/ios/ios_util.h" | 8 #include "base/ios/ios_util.h" |
| 9 #import "base/mac/bind_objc_block.h" | 9 #import "base/mac/bind_objc_block.h" |
| 10 #include "base/mac/foundation_util.h" | 10 #include "base/mac/foundation_util.h" |
| 11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
| 12 #include "base/strings/sys_string_conversions.h" | 12 #include "base/strings/sys_string_conversions.h" |
| 13 #import "base/values.h" | 13 #import "base/values.h" |
| 14 #include "components/autofill/core/browser/autofill_manager.h" | 14 #include "components/autofill/core/browser/autofill_manager.h" |
| 15 #include "components/autofill/core/browser/personal_data_manager.h" | 15 #include "components/autofill/core/browser/personal_data_manager.h" |
| 16 #include "components/autofill/ios/browser/autofill_driver_ios.h" | 16 #include "components/autofill/ios/browser/autofill_driver_ios.h" |
| 17 #include "components/payments/core/payment_address.h" | 17 #include "components/payments/core/payment_address.h" |
| 18 #include "ios/chrome/browser/autofill/personal_data_manager_factory.h" | 18 #include "ios/chrome/browser/autofill/personal_data_manager_factory.h" |
| 19 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" | 19 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" |
| 20 #import "ios/chrome/browser/payments/js_payment_request_manager.h" | 20 #import "ios/chrome/browser/payments/js_payment_request_manager.h" |
| 21 #include "ios/chrome/browser/payments/payment_request.h" | 21 #include "ios/chrome/browser/payments/payment_request.h" |
| 22 #import "ios/chrome/browser/payments/payment_request_coordinator.h" | 22 #import "ios/chrome/browser/payments/payment_request_coordinator.h" |
| 23 #include "ios/chrome/browser/procedural_block_types.h" | 23 #include "ios/chrome/browser/procedural_block_types.h" |
| 24 #include "ios/web/public/favicon_status.h" | 24 #include "ios/web/public/favicon_status.h" |
| 25 #include "ios/web/public/navigation_item.h" | 25 #include "ios/web/public/navigation_item.h" |
| 26 #include "ios/web/public/navigation_manager.h" | 26 #include "ios/web/public/navigation_manager.h" |
| 27 #include "ios/web/public/payments/payment_request.h" | 27 #include "ios/web/public/payments/payment_request.h" |
| 28 #include "ios/web/public/ssl_status.h" | 28 #include "ios/web/public/ssl_status.h" |
| 29 #import "ios/web/public/url_scheme_util.h" | 29 #import "ios/web/public/url_scheme_util.h" |
| 30 #import "ios/web/public/web_state/crw_web_view_proxy.h" | |
| 31 #import "ios/web/public/web_state/js/crw_js_injection_receiver.h" | 30 #import "ios/web/public/web_state/js/crw_js_injection_receiver.h" |
| 31 #import "ios/web/public/web_state/ui/crw_web_view_proxy.h" |
| 32 #include "ios/web/public/web_state/url_verification_constants.h" | 32 #include "ios/web/public/web_state/url_verification_constants.h" |
| 33 #include "ios/web/public/web_state/web_state.h" | 33 #include "ios/web/public/web_state/web_state.h" |
| 34 #import "ios/web/public/web_state/web_state_observer_bridge.h" | 34 #import "ios/web/public/web_state/web_state_observer_bridge.h" |
| 35 | 35 |
| 36 #if !defined(__has_feature) || !__has_feature(objc_arc) | 36 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 37 #error "This file requires ARC support." | 37 #error "This file requires ARC support." |
| 38 #endif | 38 #endif |
| 39 | 39 |
| 40 namespace { | 40 namespace { |
| 41 // Command prefix for injected JavaScript. | 41 // Command prefix for injected JavaScript. |
| (...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 570 - (void)webState:(web::WebState*)webState | 570 - (void)webState:(web::WebState*)webState |
| 571 didCommitNavigationWithDetails: | 571 didCommitNavigationWithDetails: |
| 572 (const web::LoadCommittedDetails&)load_details { | 572 (const web::LoadCommittedDetails&)load_details { |
| 573 [self dismissUI]; | 573 [self dismissUI]; |
| 574 _isScriptInjected = NO; | 574 _isScriptInjected = NO; |
| 575 [self enableCurrentWebState]; | 575 [self enableCurrentWebState]; |
| 576 [self initializeWebViewForPaymentRequest]; | 576 [self initializeWebViewForPaymentRequest]; |
| 577 } | 577 } |
| 578 | 578 |
| 579 @end | 579 @end |
| OLD | NEW |