ResourceHandler API has been changed
This commit is contained in:
parent
803120dae6
commit
5fb87f0c1e
2 changed files with 6 additions and 5 deletions
|
@ -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
|
||||||
|
|
|
@ -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_;
|
||||||
|
|
Loading…
Reference in a new issue