OLD | NEW |
1 # Headless Chromium | 1 # Headless Chromium |
2 | 2 |
3 Headless Chromium is a library for running Chromium in a headless/server | 3 Headless Chromium is a library for running Chromium in a headless/server |
4 environment. Expected use cases include loading web pages, extracting metadata | 4 environment. Expected use cases include loading web pages, extracting metadata |
5 (e.g., the DOM) and generating bitmaps from page contents -- using all the | 5 (e.g., the DOM) and generating bitmaps from page contents -- using all the |
6 modern web platform features provided by Chromium and Blink. | 6 modern web platform features provided by Chromium and Blink. |
7 | 7 |
8 See the [architecture design doc](https://docs.google.com/document/d/11zIkKkLBoc
ofGgoTeeyibB2TZ_k7nR78v7kNelCatUE) | 8 See the [architecture design doc](https://docs.google.com/document/d/11zIkKkLBoc
ofGgoTeeyibB2TZ_k7nR78v7kNelCatUE) |
9 for more information. | 9 for more information. |
10 | 10 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 points such as networking and the run loop. | 48 points such as networking and the run loop. |
49 | 49 |
50 The main embedder API classes are: | 50 The main embedder API classes are: |
51 | 51 |
52 - `HeadlessBrowser::Options::Builder` - Defines the embedding options, e.g.: | 52 - `HeadlessBrowser::Options::Builder` - Defines the embedding options, e.g.: |
53 - `SetMessagePump` - Replaces the default base message pump. See | 53 - `SetMessagePump` - Replaces the default base message pump. See |
54 `base::MessagePump`. | 54 `base::MessagePump`. |
55 - `SetProxyServer` - Configures an HTTP/HTTPS proxy server to be used for | 55 - `SetProxyServer` - Configures an HTTP/HTTPS proxy server to be used for |
56 accessing the network. | 56 accessing the network. |
57 | 57 |
58 ## Client API | 58 ## Client/DevTools API |
59 | 59 |
60 The headless client API is used to drive the browser and interact with loaded | 60 The headless client API is used to drive the browser and interact with loaded |
61 web pages. Its main classes are: | 61 web pages. Its main classes are: |
62 | 62 |
63 - `HeadlessBrowser` - Represents the global headless browser instance. | 63 - `HeadlessBrowser` - Represents the global headless browser instance. |
64 - `HeadlessWebContents` - Represents a single "tab" within the browser. | 64 - `HeadlessWebContents` - Represents a single "tab" within the browser. |
| 65 - `HeadlessDevToolsClient` - Provides a C++ interface for inspecting and |
| 66 controlling a tab. The API functions corresponds to [DevTools commands](https:
//developer.chrome.com/devtools/docs/debugger-protocol). |
| 67 See the [client API documentation](https://docs.google.com/document/d/1rlqcp8n
k-ZQvldNJWdbaMbwfDbJoOXvahPCDoPGOwhQ/edit#) |
| 68 for more information. |
OLD | NEW |