Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chromecast / browser / cast_resource_dispatcher_host_delegate.cc
blob9a935fb3923cdaa7868edfad4d0ecf5e34c6ea3c
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chromecast/browser/cast_resource_dispatcher_host_delegate.h"
7 #include "chromecast/browser/cast_browser_process.h"
8 #include "chromecast/net/connectivity_checker.h"
9 #include "net/base/net_errors.h"
10 #include "net/url_request/url_request.h"
12 namespace chromecast {
13 namespace shell {
15 void CastResourceDispatcherHostDelegate::RequestComplete(
16 net::URLRequest* url_request) {
17 if (!url_request->status().is_success()) {
18 LOG(ERROR) << "Failed to load resource " << url_request->url()
19 << "; status:" << url_request->status().status() << ", error:"
20 << net::ErrorToShortString(url_request->status().error());
21 CastBrowserProcess::GetInstance()->connectivity_checker()->Check();
25 } // namespace shell
26 } // namespace chromecast