mirror of
https://github.com/servo/servo.git
synced 2025-08-10 07:55:33 +01:00
Allow embedder to bypass devtools prompt
This commit is contained in:
parent
3f999ce785
commit
8cf2f14baa
16 changed files with 83 additions and 35 deletions
|
@ -19,8 +19,9 @@ enum DevtoolsMessageLevel { Error, Warn, None };
|
|||
class DevtoolsClient {
|
||||
|
||||
public:
|
||||
DevtoolsClient(hstring hostname, hstring port, DevtoolsDelegate &d)
|
||||
: mDelegate(d), mHostname(hostname), mPort(port){};
|
||||
DevtoolsClient(hstring hostname, hstring port, hstring token,
|
||||
DevtoolsDelegate &d)
|
||||
: mDelegate(d), mHostname(hostname), mToken(token), mPort(port){};
|
||||
|
||||
~DevtoolsClient() { Stop(); }
|
||||
void Run();
|
||||
|
@ -30,6 +31,7 @@ public:
|
|||
|
||||
private:
|
||||
hstring mPort;
|
||||
hstring mToken;
|
||||
hstring mHostname;
|
||||
DevtoolsDelegate &mDelegate;
|
||||
std::optional<DataReader> mDataReader;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue