ResourceHandler API has been changed

This commit is contained in:
Cheng Zhao 2017-04-11 14:58:42 +09:00
parent 803120dae6
commit 5fb87f0c1e
2 changed files with 6 additions and 5 deletions

View file

@ -15,12 +15,12 @@ LayeredResourceHandler::LayeredResourceHandler(
LayeredResourceHandler::~LayeredResourceHandler() {} LayeredResourceHandler::~LayeredResourceHandler() {}
bool LayeredResourceHandler::OnResponseStarted( void LayeredResourceHandler::OnResponseStarted(
content::ResourceResponse* response, content::ResourceResponse* response,
bool* defer) { std::unique_ptr<content::ResourceController> controller) {
if (delegate_) if (delegate_)
delegate_->OnResponseStarted(response); delegate_->OnResponseStarted(response);
return next_handler_->OnResponseStarted(response, defer); next_handler_->OnResponseStarted(response, std::move(controller));
} }
} // namespace atom } // namespace atom

View file

@ -26,8 +26,9 @@ class LayeredResourceHandler : public content::LayeredResourceHandler {
~LayeredResourceHandler() override; ~LayeredResourceHandler() override;
// content::LayeredResourceHandler: // content::LayeredResourceHandler:
bool OnResponseStarted(content::ResourceResponse* response, void OnResponseStarted(
bool* defer) override; content::ResourceResponse* response,
std::unique_ptr<content::ResourceController> controller) override;
private: private:
Delegate* delegate_; Delegate* delegate_;