fune/toolkit/components/cookiebanners/cookieBanner.proto
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

25 lines
705 B
Protocol Buffer

syntax = "proto2";
option optimize_for = LITE_RUNTIME;
package mozilla.cookieBanner;
// Represent the SOCS cookie used to store GDPR choice on the google search.
message GoogleSOCSCookie {
// The GDPR choice. 1 means reject All and 2 means Accept or Custom.
required uint32 gdpr_choice = 1;
message extraData {
required uint32 unused1 = 1;
// The value Represents where does the consent is set. We will use this
// value to differentiate Accept and Custom.
required string platform = 2;
required string region = 3;
required uint32 unused2 = 4;
}
required extraData data = 2;
message timeData {
required uint64 timeStamp = 1;
}
required timeData time = 3;
}