| OLD | NEW |
| (Empty) | |
| 1 This directory contains shared code used by multiple platforms' native |
| 2 implementations of PaymentRequest. In general, business logic (i.e., logic which |
| 3 manipulates data and is not specific to any particular platform's display of the |
| 4 data) should live here as much as possible. |
| 5 |
| 6 |
| 7 Internally, the directory uses the Layered Components model: |
| 8 |
| 9 http://www.chromium.org/developers/design-documents/layered-components-design |
| 10 |
| 11 |
| 12 In practical terms, our division between content/ and core/ is usually just a |
| 13 question of whether the contents have a dependency on Mojo: |
| 14 |
| 15 * ./core/ -- preferred whenever possible |
| 16 |
| 17 * ./content/ -- code with a Mojo dependency |
| 18 |
| 19 * ./content/android/ -- Android bindings for code in either core/ or content/ |
| 20 |
| 21 |
| 22 Intended consumers of this code are organized as follows: |
| 23 |
| 24 * chrome/android/.../chrome/browser/payments/ -- Android UI Implementation |
| 25 |
| 26 * chrome/browser/ui/views/payments/ -- Desktop UI implementation |
| 27 |
| 28 * content/browser/android/payments -- Android bindings for PaymentApps |
| 29 |
| 30 * content/browser/payments/ -- PaymentApps implementation |
| 31 |
| 32 * ios/chrome/browser/payments/ -- iOS UI implementation |
| 33 |
| 34 * ios/web/payments/ and ios/web/public/payments/ -- iOS communication layer, |
| 35 replacing Mojo |
| OLD | NEW |