OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #include "chromecast/browser/cast_resource_dispatcher_host_delegate.h" |
| 6 |
| 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" |
| 11 |
| 12 namespace chromecast { |
| 13 namespace shell { |
| 14 |
| 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(); |
| 22 } |
| 23 } |
| 24 |
| 25 } // namespace shell |
| 26 } // namespace chromecast |
OLD | NEW |