README 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  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. Internally, the directory uses the Layered Components model:
  6. http://www.chromium.org/developers/design-documents/layered-components-design
  7. In practical terms, our division between content/ and core/ is usually just a
  8. question of whether the contents have a dependency on Mojo:
  9. * ./core/ -- preferred whenever possible
  10. * ./content/ -- code with a Mojo dependency
  11. * ./content/android/ -- Android bindings for code in either core/ or content/
  12. Intended consumers of this code are organized as follows:
  13. * chrome/android/.../chrome/browser/payments/ -- Android UI Implementation
  14. * chrome/browser/ui/views/payments/ -- Desktop UI implementation
  15. * content/browser/android/payments -- Android bindings for PaymentApps
  16. * content/browser/payments/ -- PaymentApps implementation
  17. * ios/chrome/browser/payments/ -- iOS UI implementation
  18. * ios/web/payments/ and ios/web/public/payments/ -- iOS communication layer,
  19. replacing Mojo