fune/toolkit/components/protobuf
Tim Huang e0d2eb819c Bug 1874741 - Part 1: Add a protobuf implementation for parsing Google's SOCS cookie. r=anti-tracking-reviewers,pbz
This patch adds a protobuf implementation for parsing the SOCS cookies
from Google. Note that the protobuf definition for the SOCS cookie
isn't accurate, but it allows us to parse the cookie properly to get the
information we want.

Differential Revision: https://phabricator.services.mozilla.com/D205442
2024-03-29 23:15:11 +00:00
..
src/google/protobuf
14174.patch
COPYING.txt
moz.build
README.txt
regenerate_cpp_files.sh Bug 1874741 - Part 1: Add a protobuf implementation for parsing Google's SOCS cookie. r=anti-tracking-reviewers,pbz 2024-03-29 23:15:11 +00:00
upgrade_protobuf.sh

Protocol Buffers (protobuf) source is available at:

    https://github.com/google/protobuf

This code is covered under the BSD license (see COPYING.txt). Documentation is
available at https://developers.google.com/protocol-buffers/.

The tree's current version of the protobuf library is 21.6.

We do not include the protobuf tests or the protoc compiler.

--------------------------------------------------------------------------------

# Upgrading the Protobuf Library

1. Get a new protobuf release from https://github.com/google/protobuf/releases

2. Run `$ ./toolkit/components/protobuf/upgrade_protobuf.sh ~/path/to/release/checkout/of/protobuf`.

3. Update the moz.build to export the new set of headers and add any new .cc
   files to the unified sources and remove old ones. Note that we only
   need:
   - files contained in the `libprotobuf_lite_la_SOURCES` target
   (https://github.com/protocolbuffers/protobuf/blob/main/src/Makefile.am)
   - the header files they need
   - gzip streams (for devtools)

4. Re-generate all .pb.cc and .pb.h files using `$ ./toolkit/components/protobuf/regenerate_cpp_files.sh`.