2019-05-11 03:05:39 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package v1;
|
|
|
|
|
|
|
|
import "google/protobuf/timestamp.proto";
|
|
|
|
|
|
|
|
enum TransitionType {
|
|
|
|
link = 0;
|
|
|
|
typed =1;
|
|
|
|
address_bar = 2;
|
|
|
|
auto_bookmark = 3;
|
|
|
|
auto_subframe = 4;
|
|
|
|
manual_subframe = 5;
|
|
|
|
generated = 6;
|
|
|
|
auto_toplevel = 7;
|
|
|
|
form_submit = 8;
|
|
|
|
reload = 9;
|
|
|
|
keyword = 10;
|
|
|
|
keyword_generated = 11;
|
|
|
|
other = 12;
|
|
|
|
}
|
|
|
|
|
|
|
|
message NavigateRequest {
|
2019-05-11 05:09:54 +00:00
|
|
|
string api = 1;
|
|
|
|
string url = 2;
|
|
|
|
string referrer = 3;
|
|
|
|
TransitionType transitionType = 4;
|
2019-05-11 09:24:39 +00:00
|
|
|
string frameID = 5;
|
2019-05-11 03:05:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message NavigateReply {
|
2019-05-11 05:09:54 +00:00
|
|
|
string api = 1;
|
2019-05-11 09:24:39 +00:00
|
|
|
string frameID = 2;
|
|
|
|
string loaderID = 3;
|
2019-05-11 05:09:54 +00:00
|
|
|
string errorText = 4;
|
2019-05-11 03:05:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
service CDPService {
|
|
|
|
rpc Navigate (NavigateRequest) returns (NavigateReply);
|
|
|
|
}
|