Implement protocol.uninterceptProtocol

This commit is contained in:
Cheng Zhao 2015-08-13 20:19:02 +08:00
parent 773e932e98
commit 741c8f3d98
2 changed files with 27 additions and 1 deletions

View file

@ -162,6 +162,10 @@ class Protocol : public mate::Wrappable {
return PROTOCOL_OK;
}
// Restore the |scheme| to its original protocol handler.
void UninterceptProtocol(const std::string& scheme, mate::Arguments* args);
ProtocolError UninterceptProtocolInIO(const std::string& scheme);
// Convert error code to JS exception and call the callback.
void OnIOCompleted(const CompletionCallback& callback, ProtocolError error);