2019-05-08 17:05:39 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
option cc_enable_arenas = true;
|
|
|
|
option java_outer_classname = "CDPProto";
|
|
|
|
option java_multiple_files = true;
|
2019-05-09 14:38:34 +00:00
|
|
|
option java_package = "net.loafle.oddscrawler.cdp";
|
|
|
|
option go_package = "cdp";
|
2019-05-08 17:05:39 +00:00
|
|
|
|
|
|
|
package oddscrawler;
|
|
|
|
|
|
|
|
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 {
|
|
|
|
string url = 1;
|
|
|
|
string referrer = 2;
|
|
|
|
TransitionType transitionType = 3;
|
|
|
|
string frameId = 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
message NavigateReply {
|
|
|
|
string frameId = 1;
|
|
|
|
string loaderId = 2;
|
|
|
|
string errorText = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
service CDPService {
|
2019-05-08 17:12:42 +00:00
|
|
|
rpc Navigate (NavigateRequest) returns (NavigateReply) {}
|
2019-05-08 17:05:39 +00:00
|
|
|
}
|