Copybara import from Chromium: proto and stdlib changes
- bc33759b2064bf70cbe90d3c95897d16d67ab734 Sync feature protos. by Karthika Pai <karthikapai@google.com>
COPYBARA_IMPORT=Project import generated by Copybara.
GitOrigin-RevId: bc33759b2064bf70cbe90d3c95897d16d67ab734
diff --git a/protos/third_party/chromium/optimization_guide/actions_data.proto b/protos/third_party/chromium/optimization_guide/actions_data.proto
index 80ba913..1f89511 100644
--- a/protos/third_party/chromium/optimization_guide/actions_data.proto
+++ b/protos/third_party/chromium/optimization_guide/actions_data.proto
@@ -9,16 +9,14 @@
import "components/optimization_guide/proto/features/common_quality_data.proto";
option java_outer_classname = "ActionsProto";
-
option java_package = "org.chromium.components.optimization_guide.features.proto";
-
option optimize_for = LITE_RUNTIME;
// DO NOT EDIT THIS FILE DIRECTLY!
//
-// This file is generated in g3 and then synced to Chrome. Instead, please refer to
-// http://go/chrome-mqls-onboarding (Google-internal link), and then changes will
-// be synced with Chrome automatically.
+// This file is generated in g3 and then synced to Chrome. Instead, please refer
+// to http://go/chrome-mqls-onboarding (Google-internal link), and then changes
+// will be synced with Chrome automatically.
// This API should eventually converge with go/unified-browser-control-api.
// Please check with erikchen@ before making modifications.
@@ -33,7 +31,8 @@
Coordinate coordinate = 2 [features = { field_presence: EXPLICIT }];
// Which document in a frame the action should be taken in.
- DocumentIdentifier document_identifier = 3 [features = { field_presence: EXPLICIT }];
+ DocumentIdentifier document_identifier = 3
+ [features = { field_presence: EXPLICIT }];
}
// Mouse click action.
@@ -219,8 +218,7 @@
// Creates a new window.
// Next ID: 1
-message CreateWindowAction {
-}
+message CreateWindowAction {}
// Closes an existing window.
// Next ID: 2
@@ -242,8 +240,7 @@
// Yields control to the user.
// Next ID: 1
-message YieldToUserAction {
-}
+message YieldToUserAction {}
// Attempts to log in to the website.
// Next ID: 2
@@ -265,7 +262,8 @@
// Next ID: 5
message ScriptToolAction {
// The Document which provides the associated Tool.
- DocumentIdentifier document_identifier = 1 [features = { field_presence: EXPLICIT }];
+ DocumentIdentifier document_identifier = 1
+ [features = { field_presence: EXPLICIT }];
int32 tab_id = 2 [features = { field_presence: EXPLICIT }];
@@ -278,13 +276,11 @@
// Play media action plays the media session.
// Next ID: 1
-message PlayMediaAction {
-}
+message PlayMediaAction {}
// Pause media action pauses the media session.
// Next ID: 1
-message PauseMediaAction {
-}
+message PauseMediaAction {}
// Seek media action seeks the media session to the given seek time in
// microseconds from the beginning of the media. The seek time should be
@@ -306,7 +302,8 @@
}
// The document which controls the media session.
- DocumentIdentifier document_identifier = 1 [features = { field_presence: EXPLICIT }];
+ DocumentIdentifier document_identifier = 1
+ [features = { field_presence: EXPLICIT }];
// The id of the tab which contains the document.
int32 tab_id = 2 [features = { field_presence: EXPLICIT }];
@@ -361,47 +358,6 @@
}
}
-// Deprecated. Use Actions instead.
-// A single set of actions to be taken by Chrome before responding.
-// Next ID: 4
-message BrowserAction {
- // The actions to be taken by Chrome.
- repeated Action actions = 1;
-
- // The task id of the action.
- int32 task_id = 2 [features = { field_presence: EXPLICIT }];
-
- // The id of the tab the action will be taken in.
- // TODO(crbug.com/421441072): Remove this field once all models are using tab_id in
- // actions.
- int32 tab_id = 3 [features = { field_presence: EXPLICIT }];
-}
-
-// Deprecated. Use ActionsResult instead.
-// The state of the browser after an action is taken.
-// Currently only used for extension APIs, but should directly reflect the
-// production state of the browser returned in glic.mojom.
-// Next ID: 7
-message BrowserActionResult {
- // The page content at the time after the action.
- AnnotatedPageContent annotated_page_content = 1 [features = { field_presence: EXPLICIT }];
-
- // The screenshot of the page at the time after the action.
- bytes screenshot = 2 [features = { field_presence: EXPLICIT }];
-
- // The mime type of the |screenshot|.
- string screenshot_mime_type = 3 [features = { field_presence: EXPLICIT }];
-
- // The result of the action.
- int32 action_result = 4 [features = { field_presence: EXPLICIT }];
-
- // The task id of the action.
- int32 task_id = 5 [features = { field_presence: EXPLICIT }];
-
- // The id of the tab the action was taken in.
- int32 tab_id = 6 [features = { field_presence: EXPLICIT }];
-}
-
// A single set of actions to be taken by Chrome. The response is ActionsResult.
// Next ID: 3
message Actions {
@@ -437,7 +393,8 @@
int32 id = 1 [features = { field_presence: EXPLICIT }];
// The page content at the observation time.
- AnnotatedPageContent annotated_page_content = 2 [features = { field_presence: EXPLICIT }];
+ AnnotatedPageContent annotated_page_content = 2
+ [features = { field_presence: EXPLICIT }];
// The screenshot of the page at the time after the action.
bytes screenshot = 3 [features = { field_presence: EXPLICIT }];
@@ -490,7 +447,8 @@
// The results of executing script tools.
repeated ScriptToolResult script_tool_results = 5;
- LatencyInformation latency_information = 6 [features = { field_presence: EXPLICIT }];
+ LatencyInformation latency_information = 6
+ [features = { field_presence: EXPLICIT }];
// Chrome reported information about the latency of steps while performing the
// actions.
@@ -551,9 +509,9 @@
message BrowserStartTask {
// The id of the tab the task should be started in. If not set, the task
// will be started in a new tab.
- // TODO(crbug.com/421441072): Remove this field. This is only needed in the short term
- // since bluedog needs a mechanism to start tasks in a new tab, and the model
- // has not yet been trained to use CreateTabAction.
+ // TODO(crbug.com/421441072): Remove this field. This is only needed in the
+ // short term since bluedog needs a mechanism to start tasks in a new tab, and
+ // the model has not yet been trained to use CreateTabAction.
int32 tab_id = 1 [features = { field_presence: EXPLICIT }];
}