As everyone already knows, Google released a new open-source web browser called Chrome.
Having interest in code reuse, I downloaded the source code and examined all the open-source libraries used.
Google Chrome browser shows excellent example of code reuse. I found that they use at least 25 different software libraries!
Here is the full list of libraries, along with relative paths to source code and short library descriptions. Many of the libraries have been patched by googlers; look for README.google files in each library directory for information about changes.
Library | Relative Path | Description |
---|---|---|
An open-source multi-platform crash reporting system. | ||
/src/googleurl | A small library for parsing and canonicalizing URLs. | |
Skia | Vector graphics engine. | |
/src/v8 | Google's open source JavaScript engine. V8 implements ECMAScript as specified in ECMA-262, 3rd edition, and runs on Windows XP and Vista, Mac OS X 10.5 (Leopard), and Linux systems that use IA-32 or ARM processors. V8 can run standalone, or can be embedded into any C++ application. | |
Open source web browser engine. | ||
Netscape Portable Runtime (NSPR) provides a platform-neutral API for system level and libc like functions. | ||
Network Security Services (NSS) is a set of libraries designed to support cross-platform development of security-enabled client and server applications. Applications built with NSS can support SSL v2 and v3, TLS, PKCS #5, PKCS #7, PKCS #11, PKCS #12, S/MIME, X.509 v3 certificates, and other security standards. | ||
Spell checker and morphological analyzer library and program designed for languages with rich morphology and complex word compounding or character encoding. | ||
C++ library for developing Windows applications and UI components. It extends ATL (Active Template Library) and provides a set of classes for controls, dialogs, frame windows, GDI objects, and more. | ||
/src/testing/gtest | Google's framework for writing C++ tests on a variety of platforms (Linux, Mac OS X, Windows, Windows CE, and Symbian). Based on the xUnit architecture. Supports automatic test discovery, a rich set of assertions, user-defined assertions, death tests, fatal and non-fatal failures, various options for running the tests, and XML test report generation. | |
bsdiff and bspatch are tools for building and applying patches to binary files. | ||
bzip2 compresses files using the Burrows-Wheeler block sorting text compression algorithm, and Huffman coding. | ||
/src/third_party/icu38 | ICU is a mature, widely used set of C/C++ and Java libraries providing Unicode and Globalization support for software applications. | |
Library for handling the JPEG (JFIF) image format. | ||
PNG image format library. It supports almost all PNG features, is extensible, and has been extensively tested for over 13 years. | ||
XML C parsing library. | ||
XSLT C library. | ||
LZMA is the default and general compression method of 7z format in the 7-Zip program. | ||
A collection of high performance c-string transformations (in this case, base 64 encoding/decoding), frequently 2x faster than standard implementations (if they exist at all). | ||
Cross-platform plugin architecture used by many web browsers. | ||
Application programming interface (API) for writing multithreaded applications | ||
Open Source software construction tool—that is, a next-generation build tool. Think of SCons as an improved, cross-platform substitute for the classic Make utility with integrated functionality similar to autoconf/automake and compiler caches such as ccache. | ||
Software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine. | ||
Free Python library that implements SSL 3.0, TLS 1.0, and TLS 1.1. TLS Lite supports non-traditional authentication methods such as SRP, shared keys, and cryptoIDs in addition to X.509 certificates. Note: Python is not a part of Chrome. It's used for testing various parts of Chrome browser, such as code coverage, dependencies, measures page load times, compares generated html, etc. | ||
zlib is designed to be a free, general-purpose, legally unencumbered -- that is, not covered by any patents -- lossless data-compression library for use on virtually any computer hardware and operating system. |
They have done a really good job making these libraries work together. As someone said, "good coders code, great reuse."
I also found some other exciting things in the source, which I will soon post about. I recommend that yousubscribe to my rss feed, if you are interested!
Talking about Chrome, I am waiting for Google to add capability to write extensions for their browser! I already made a list of extensions that I will try to create as soon as they add this feature.