Skip to content

Commit 455f5ed

Browse files
copybara-service[bot]Perfetto Team
andauthored
Copybara import from Chromium: proto and stdlib changes (#5516)
Copybara import from Chromium: proto and stdlib changes - a47c0ba2f4e7a2b17c588547d179bb970d990314 Sync feature protos. by Googler <noreply@google.com> - e60eb019e12ae4af87aa0dcddaee638104584e56 Sync feature protos. by Googler <noreply@google.com> - 23282a9c103a12446d1d3b1c038408b454638f68 Sync feature protos. by Max Curran <curranmax@chromium.org> COPYBARA_IMPORT=Project import generated by Copybara. GitOrigin-RevId: a47c0ba2f4e7a2b17c588547d179bb970d990314 Co-authored-by: Perfetto Team <copybara-servicebot@google.com>
1 parent f059f1e commit 455f5ed

2 files changed

Lines changed: 43 additions & 36 deletions

File tree

protos/third_party/chromium/optimization_guide/actions_data.proto

Lines changed: 32 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ option optimize_for = LITE_RUNTIME;
1616

1717
// DO NOT EDIT THIS FILE DIRECTLY!
1818
//
19-
// This file is generated in g3 and then synced to Chrome. Instead, please refer
20-
// to http://go/chrome-mqls-onboarding (Google-internal link), and then changes
21-
// will be synced with Chrome automatically.
19+
// This file is generated in g3 and then synced to Chrome. Instead, please refer to
20+
// http://go/chrome-mqls-onboarding (Google-internal link), and then changes will
21+
// be synced with Chrome automatically.
2222

2323
// The target of an action.
2424
// Next ID: 4
@@ -30,8 +30,7 @@ message ActionTarget {
3030
Coordinate coordinate = 2 [features = { field_presence: EXPLICIT }];
3131

3232
// Which document in a frame the action should be taken in.
33-
DocumentIdentifier document_identifier = 3
34-
[features = { field_presence: EXPLICIT }];
33+
DocumentIdentifier document_identifier = 3 [features = { field_presence: EXPLICIT }];
3534
}
3635

3736
// Mouse click action.
@@ -223,7 +222,8 @@ message ActivateTabAction {
223222

224223
// Creates a new window.
225224
// Next ID: 1
226-
message CreateWindowAction {}
225+
message CreateWindowAction {
226+
}
227227

228228
// Closes an existing window.
229229
// Next ID: 2
@@ -245,7 +245,8 @@ message ActivateWindowAction {
245245

246246
// Yields control to the user.
247247
// Next ID: 1
248-
message YieldToUserAction {}
248+
message YieldToUserAction {
249+
}
249250

250251
// Attempts to log in to the website.
251252
// Next ID: 3
@@ -297,8 +298,8 @@ message FormFillingRequest {
297298
// this field, but will fill other fields of the same autofill section with
298299
// the available data.
299300
//
300-
// TODO(crbug.com/452946211): This field is repeated to be able to support a
301-
// form that is spread over multiple autofill sections.
301+
// TODO(crbug.com/452946211): This field is repeated to be able to support a form that
302+
// is spread over multiple autofill sections.
302303
repeated ActionTarget trigger_fields = 1;
303304

304305
// Specifies which data is requested. The requested data type will be
@@ -383,8 +384,7 @@ message ScrollToAction {
383384
// Next ID: 5
384385
message ScriptToolAction {
385386
// The Document which provides the associated Tool.
386-
DocumentIdentifier document_identifier = 1
387-
[features = { field_presence: EXPLICIT }];
387+
DocumentIdentifier document_identifier = 1 [features = { field_presence: EXPLICIT }];
388388

389389
int32 tab_id = 2 [features = { field_presence: EXPLICIT }];
390390

@@ -397,20 +397,24 @@ message ScriptToolAction {
397397

398398
// Play media action plays the media session.
399399
// Next ID: 1
400-
message PlayMediaAction {}
400+
message PlayMediaAction {
401+
}
401402

402403
// Pause media action pauses the media session.
403404
// Next ID: 1
404-
message PauseMediaAction {}
405+
message PauseMediaAction {
406+
}
405407

406408
// Seek media action seeks the media session to the given seek time in
407409
// milliseconds from the beginning of the media. The seek time should be
408410
// non-negative.
409411
// Next ID: 3
410412
message SeekMediaAction {
411413
// TODO(crbug.com/490195093): Remove this field.
412-
int64 seek_time_microseconds = 1
413-
[deprecated = true, features = { field_presence: EXPLICIT }];
414+
int64 seek_time_microseconds = 1 [
415+
deprecated = true,
416+
features = { field_presence: EXPLICIT }
417+
];
414418

415419
int64 seek_time_milliseconds = 2 [features = { field_presence: EXPLICIT }];
416420
}
@@ -441,6 +445,7 @@ message LoadAndExtractContentAction {
441445
// Only one of these is allowed per action.
442446
// Next ID: 25
443447
message Action {
448+
444449
oneof action {
445450
ClickAction click = 1;
446451

@@ -526,13 +531,11 @@ message ScreenshotCollectionOptions {
526531

527532
// The format of the screenshot. If not set, the screenshot will be returned
528533
// as a jpeg image.
529-
ScreenshotImageFormat screenshot_format = 3
530-
[features = { field_presence: EXPLICIT }];
534+
ScreenshotImageFormat screenshot_format = 3 [features = { field_presence: EXPLICIT }];
531535

532536
// The compression quality of the screenshot. If not set, the screenshot will
533537
// be returned with medium compression quality.
534-
CompressionQuality compression_quality = 4
535-
[features = { field_presence: EXPLICIT }];
538+
CompressionQuality compression_quality = 4 [features = { field_presence: EXPLICIT }];
536539
}
537540

538541
// A single set of actions to be taken by Chrome. The response is ActionsResult.
@@ -550,15 +553,13 @@ message Actions {
550553
// TabObservation.
551554
// We may want more sophisticated control over which observations are
552555
// collected in the future.
553-
bool skip_async_observation_collection = 3
554-
[features = { field_presence: EXPLICIT }];
556+
bool skip_async_observation_collection = 3 [features = { field_presence: EXPLICIT }];
555557

556558
// Metadata that is associated with a task.
557559
TaskMetadata task_metadata = 4 [features = { field_presence: EXPLICIT }];
558560

559561
// Options for screenshot collection.
560-
ScreenshotCollectionOptions screenshot_options = 5
561-
[features = { field_presence: EXPLICIT }];
562+
ScreenshotCollectionOptions screenshot_options = 5 [features = { field_presence: EXPLICIT }];
562563
}
563564

564565
// Information about a chrome window.
@@ -588,8 +589,7 @@ message TabObservation {
588589
// The page content at the observation time.
589590
// This field is only populated if skip_async_observation_collection is false
590591
// in the Actions message.
591-
AnnotatedPageContent annotated_page_content = 2
592-
[features = { field_presence: EXPLICIT }];
592+
AnnotatedPageContent annotated_page_content = 2 [features = { field_presence: EXPLICIT }];
593593

594594
// The screenshot of the page at the time after the action.
595595
// This field is only populated if skip_async_observation_collection is false
@@ -610,11 +610,9 @@ message TabObservation {
610610
// in the Actions message.
611611
PageMetadata metadata = 6 [features = { field_presence: EXPLICIT }];
612612

613-
AnnotatedPageContentResult annotated_page_content_result = 7
614-
[features = { field_presence: EXPLICIT }];
613+
AnnotatedPageContentResult annotated_page_content_result = 7 [features = { field_presence: EXPLICIT }];
615614

616-
ScreenshotResult screenshot_result = 8
617-
[features = { field_presence: EXPLICIT }];
615+
ScreenshotResult screenshot_result = 8 [features = { field_presence: EXPLICIT }];
618616

619617
// Result codes of a tab observation as a whole. It may be possible to retry
620618
// an observation given specific error codes.
@@ -626,8 +624,7 @@ message TabObservation {
626624
TAB_OBSERVATION_TAB_WENT_AWAY = 1;
627625

628626
// The screenshot of the tab timed out.
629-
// TODO: crbug.com/462190108 - Deprecate, this should be a screenshot error
630-
// code.
627+
// TODO: crbug.com/462190108 - Deprecate, this should be a screenshot error code.
631628
TAB_OBSERVATION_SCREENSHOT_TIMEOUT = 2;
632629

633630
// The page crashed.
@@ -697,8 +694,7 @@ message ActionsResult {
697694
// The results of executing script tools.
698695
repeated ScriptToolResult script_tool_results = 5;
699696

700-
LatencyInformation latency_information = 6
701-
[features = { field_presence: EXPLICIT }];
697+
LatencyInformation latency_information = 6 [features = { field_presence: EXPLICIT }];
702698

703699
// Chrome reported information about the latency of steps while performing the
704700
// actions.
@@ -759,9 +755,9 @@ message ActionsResult {
759755
message BrowserStartTask {
760756
// The id of the tab the task should be started in. If not set, the task
761757
// will be started in a new tab.
762-
// TODO(crbug.com/421441072): Remove this field. This is only needed in the
763-
// short term since we need a mechanism to start tasks in a new tab, and the
764-
// model has not yet been trained to use CreateTabAction.
758+
// TODO(crbug.com/421441072): Remove this field. This is only needed in the short term
759+
// since we need a mechanism to start tasks in a new tab, and the model has
760+
// not yet been trained to use CreateTabAction.
765761
int32 tab_id = 1 [features = { field_presence: EXPLICIT }];
766762
}
767763

protos/third_party/chromium/optimization_guide/common_quality_data.proto

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2109,6 +2109,8 @@ enum AXStringListAttribute {
21092109
// This will be updated when there is a significant change in the parsing logic.
21102110
// Next ID: 3
21112111
enum AnnotatedPageContentVersion {
2112+
option allow_alias = true;
2113+
21122114
ANNOTATED_PAGE_CONTENT_VERSION_UNKNOWN = 0;
21132115

21142116
ANNOTATED_PAGE_CONTENT_VERSION_1_0 = 1;
@@ -2117,6 +2119,10 @@ enum AnnotatedPageContentVersion {
21172119
// TODO(crbug.com/490195093): Maintain both on the client until all users have been
21182120
// switched over.
21192121
ANNOTATED_PAGE_CONTENT_VERSION_ONLY_ACTIONABLE_ELEMENTS_1_0 = 2 [deprecated = true];
2122+
2123+
// The maximum valid version of the proto. This value includes deprecated
2124+
// versions to ensure backward compatibility with older clients.
2125+
ANNOTATED_PAGE_CONTENT_VERSION_MAX_VALID = 2;
21202126
}
21212127

21222128
// The extraction on the client can be configured to a specific mode. This
@@ -2415,6 +2421,9 @@ enum RedactionDecision {
24152421
// Is a non-empty field that autofill recognized as an OTP field and so must
24162422
// be redacted.
24172423
REDACTION_DECISION_REDACTED_IS_OTP = 8;
2424+
2425+
// Is a empty field that autofill recognized as an OTP field.
2426+
REDACTION_DECISION_UNREDACTED_EMPTY_OTP_FIELD = 9;
24182427
}
24192428

24202429
// The type of data that can be autofilled into a form.
@@ -2424,6 +2433,8 @@ enum CoarseAutofillFieldType {
24242433
COARSE_AUTOFILL_FIELD_TYPE_ADDRESS = 1;
24252434

24262435
COARSE_AUTOFILL_FIELD_TYPE_CREDIT_CARD = 2;
2436+
2437+
COARSE_AUTOFILL_FIELD_TYPE_OTP = 3;
24272438
}
24282439

24292440
// Indicates the type of media in the media data.

0 commit comments

Comments
 (0)