tree: 78b72213edf7087b44bb7b187dc6a02bd4de7b7b [path history] [tgz]
  1. app/
  2. browser/
  3. common/
  4. public/
  5. renderer/
  6. shell/
  7. test/
  8. tools/
  9. utility/
  10. API_OWNERS
  11. BUILD.gn
  12. grit_strings_whitelist.txt
  13. OWNERS
  14. PRESUBMIT.py
  15. README.md
  16. variables.gni
  17. weblayer_resources.grd
weblayer/README.md

WebLayer

WebLayer is a high level embedding API to support building a browser.

Unlike src/content, which is only concerned with a sandboxed multi-process web platform, WebLayer includes modern browser features and Google integration. It's the reusable version of Chrome, which might share some portions of the UI and also its support for all the modern HTML5 and browser features (e.g. UI for permissions, autofill, safe browsing etc...).

While it's built on top of src/content, the expectation is that the API will hide the Content API.

Resources and Documentation

Mailing list: weblayer-dev@chromium.org

Bug tracker: Internals>WebLayer

Directory Structure

public the C++ and Java public API. These are the only files an app should use

shell sample app

‘test’ test harnesses and test-only helper code

‘tools’ helper scripts

‘app’ internal code which runs at the beginning of each process

browser internal code which runs in the browser process

common internal code which runs in the browser and child processes

renderer internal code which runs in the renderer process

utility internal code which runs in the utility process

Setting Up Your Build Environment

If you haven't done this already, you first need to set up an Android build. If you are a Google employee, reach out to weblayer-team@google.com for internal instructions. Otherwise follow the Android build instructions.

Building and Testing

To run the sample app:

$ autoninja -C out/Default run_weblayer_shell $ out/Default/bin/run_weblayer_shell

To run instrumentation tests:

$ autoninja -C out/Default weblayer_instrumentation_test_apk $ out/Default/bin/run_weblayer_instrumentation_test_apk

The test script will build and install all necessary APKs.